Jump to content

MySQL Conection Failed


SharkBait

Recommended Posts

I am getting the following error message from MySQL and I am not sure why it isn't working for all clients that are using it:

 

Warning: MySQL Connection Failed: Client does not support authentication protocol requested by server; consider upgrading MySQL client in /home/feedback/public_html/includes/c-mysql.php on line 24

MySQL Cannot Connect:

 

 

This is line 24:

<?php

$this->link = mysql_connect($this->host, $this->username, $this->password) or die ("MySQL Cannot Connect: ". mysql_error()));

?>

 

Why would it work on my computer, but not on another computer?

 

 

Link to comment
https://forums.phpfreaks.com/topic/57267-mysql-conection-failed/
Share on other sites

MySQL switched user authentication schemes from one of the versions to the next.  You'll get an error like this when encountering a difference between the client (older) and a server that is newer.  You may have to upgrade the MySQL library for the PHP installation in question.  Google "MySQL Connection Failed: Client does not support authentication protocol requested by server" and you'll probably find some others with the same problem and solutions.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.