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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.