MySQL connection error

Asked by:
4statetheatre / 10 Points
Time:
2012-11-23 4:15 am EST
Category:
Databases
Hits:
549
I have been trying to connect my site to a MySQL database that I have set up through PHP myadmin on the server. I am trying to connect to the database via a PHP connector page. I have tried to connect several times and am getting an access denied error. I have read all of the posts and articles on this subject and I am still unable to get it to work.

Any help would be very much appreciated.

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

johnpaulb-whh2
Staff
12,339 Points
2012-11-26 5:40 pm EST
Hello 4statetheatre,

Thank you for your question. I recommend checking the configuration page for your content management system, it usually includes options such as:

define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'mysite9_concrete');
define('DB_PASSWORD', 'af654*B$#2^79lK';);
define('DB_DATABASE', 'mysite9_concrete5');

You must edit the following lines:
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'enter your database username here);
define('DB_PASSWORD', 'enter your database password here');
define('DB_DATABASE', 'enter the name of the database here');

Be sure to update the fields with correct database information. You can confirm the settings in cPanel, in mySQL Databases, in the Databases section.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}