mysql_connect() error
Posted by: luisbvasc (41.223.100.---)
Date: March 04, 2009 08:53PM

Please,
I'm tryng to connect to mysql database but when running the php script it retuns the fallowing error:

Warning mysql_connect() [function mysql_connect: Access denied for user 'root'@'localhost' (using password:YES) ...

The user is registred and the password defined but it does not work.

Options: ReplyQuote
Re: mysql_connect() error
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: March 04, 2009 09:04PM

U sure it is setup right?

from the error above the username or password is incorrect

nothing else to check

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: mysql_connect() error
Posted by: yfastud (Moderator)
Date: March 04, 2009 09:56PM


Options: ReplyQuote
Re: mysql_connect() error
Posted by: luisbvasc (41.223.100.---)
Date: March 05, 2009 07:47PM

I'm sure user and password are defined but does not work. I tryed diferent usernames and passwords but
still does not work.

Best regards.

Options: ReplyQuote
Re: mysql_connect() error
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: March 05, 2009 07:49PM

post up ur entire code

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: mysql_connect() error
Posted by: luisbvasc (41.223.100.---)
Date: March 06, 2009 08:01PM

sample code:
------------------
$mydbase = "free_ads";

$link = mysql_connect("localhost","root","fullconnect"winking smiley;

$db = mysql_select($mydbase, $link);

_________________

Best regards.

Options: ReplyQuote
Re: mysql_connect() error
Posted by: yfastud (Moderator)
Date: March 06, 2009 10:35PM

to setup db, follow this
[blog.jlbn.net]
then try again w/ new login info

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.