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
Database connection error
Posted by:
RJM1985
(---.adsl.cybercity.dk)
Date: October 11, 2012 08:59AM
I tryed to work on my project i havent had open in a while.
When i put wampserver online and go to the website at localhost , i get an error:
Could not connect to database
how do i solve this?
Options:
Reply
•
Quote
Re: Database connection error
Posted by:
RiggsFolly
(---.ppp.as43234.net)
Date: October 11, 2012 09:56AM
Have you created and reloaded your database?
Have you setup the userid and password and given it privilages on the correct database?
More precise information would be useful
Options:
Reply
•
Quote
Re: Database connection error
Posted by:
RJM1985
(---.adsl.cybercity.dk)
Date: October 11, 2012 10:05AM
i get an error, when i try to logon:
#1045 Kan ikke log on the MySQL-server
Options:
Reply
•
Quote
Re: Database connection error
Posted by:
RiggsFolly
(---.ppp.as43234.net)
Date: October 11, 2012 10:29AM
Look for the conection command in your PHP code.
something like this but with different content
mysql_connect('host', 'user','password');
workout what user and password your application is using and then check that that user exists and has the correct password and can access your spacific database.
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