WampServer
Apache, PHP, MySQL on Windows
Home forum
Back to WampServer
presentation
Downloads
Addons
Trainings
Alter Way
Go to Topic:
Previous
•
Next
Go to:
Forum List
•
Message List
•
New Topic
•
Search
•
Log In
•
Print View
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:
Reply
•
Quote
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:
Reply
•
Quote
Re: mysql_connect() error
Posted by:
yfastud
(Moderator)
Date: March 04, 2009 09:56PM
to setup password, follow this
[
blog.jlbn.net
]
Have fun,
FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides
Options:
Reply
•
Quote
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:
Reply
•
Quote
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:
Reply
•
Quote
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"
;
$db = mysql_select($mydbase, $link);
_________________
Best regards.
Options:
Reply
•
Quote
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:
Reply
•
Quote
Go to:
Forum List
•
Message List
•
Search
•
Log In
Sorry, only registered users may post in this forum.
Click here to login