MySQL connection error

Asked by:
4statetheatre
Time:
2012-11-23 12:15 am
Category:
Databases
Hits:
175
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.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

johnpaulb-whh2
2012-11-26 1:40 pm
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

You must login before you can post a comment about this answer.

Like this Question?

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. Site under brute force attack
  2. URLs in Installation of WordPress Don't Redirect
  3. Choosing a Directory With WordPress

Support Center Search

Current Customers

Email: support@WebHostingHub.com 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.