Unable to connect to MySQL database - mysql_old_password

Category: Databases

username
121 Points
Asked:
2014-06-27 9:06 am EST

Hits: 349
Without any change on the PHP files or MySQL database on our site, we are now seeing the following error message:
([directory] has been substituted for the actual directory for security reasons)

Warning: mysql_connect(): The server requested authentication method unknown to the client [mysql_old_password] in /home/[directory]/public_html/check_security_top.php on line 4

Warning: mysql_connect(): The server requested authentication method unknown to the client in /home/[directory]/public_html/check_security_top.php on line 4
Could not connect

Please advise if changes were recently made to MySQL or PHP configuration by inMotion.

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

You must login before you can submit an answer.

OTHER ANSWERS

0

JeffMa
Staff
9,479 Points
2014-06-27 9:26 am EST
This is caused by the MySQL user using an old style of passwords with a smaller hash and is thus less secure. To resolve the issue, simply try removing the old MySQL user and re-creating it using the same username and password. At that time, your issue should then be resolved.

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

Like 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!
Ask a Question

Need more Help?

Search

Ask the Community!

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

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!