MySQL connection error

Asked by:
4statetheatre / 10 Points
2012-11-22 8:15 pm EST
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.



12,017 Points
2012-11-26 9:40 am 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,


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!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
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.