Skip navigation links

MySQL Forums :: Database Administration & Monitoring :: couldn't connect to database


Advanced Search

couldn't connect to database
Posted by: yash mistrey ()
Date: October 31, 2009 01:18AM

Hello

I am new to php mysql

Actually i have read A tutorial on nettuts
"http://net.tutsplus.com/tutorials/php/create-a-signup-form-with-email-confirmation/";

According i copy all source code & change some setting only in config.php file

then i copy all file to my website folder "http://www.makemycreative.in/source/index.php";

now it showing error like...


"I couldn't connect to your database, please make sure your info is correct!"

in config.php.. there is asking for

----------------------------------------------------------------------------------------------------------------

"mysql_connect('localhost', 'root', 'root') or die("I couldn't connect to your database, please make sure your info is correct!");
mysql_select_db('email_signup') or die("I couldn't find the database table ($table) make sure it's spelt right!");"

I fill instead of above....these...

"mysql_connect('localhost', 'makemycr', 'samson01') or die("I couldn't connect to your database, please make sure your info is correct!");
mysql_select_db('user1') or die("I couldn't find the database table ($table) make sure it's spelt right!");"

-------------------------------------------------------------------------------------------------------------------


I am not what to write instead of localhost.. i am very confused abt localhost..

rest of i know.. i think it's a problem of localhost...

Options: ReplyQuote


Subject Written By Posted
couldn't connect to database yash mistrey 10/31/2009 01:18AM
Re: couldn't connect to database srinivasan nagarajan 12/02/2009 03:35AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.