Jump to content

Can't get php to work connect to mysql 4.1 properly


twilightnights

Recommended Posts

I am using the exact same syntax as my 4.0 databases that work and everytime i get this error message

 

"Could not connect: Client does not support authentication protocol requested by server; consider upgrading MySQL client"

 

which I am assuming there is something wrong with the php code.. how do I fix it..

 

mysql_connect('x,'x','x') or die('Could not connect: ' . mysql_error());
mysql_select_db('x');

Link to comment
Share on other sites

Thanks but I don't know how to access that.. I use go daddy hosting and they have the php and mysql set up for me, so I don't know how to edit the global settings or whatever.

 

I settled with migrating the entire database to a 4.0 but I would really like to know how to fix it in phpadmin if it's possible

Link to comment
Share on other sites

  • 2 weeks later...

I am having this exact same problem (I use godaddy as well) and the error for the connection comes out as:

 

"Could not connect: Client does not support authentication protocol requested by server; consider upgrading MySQL client"

 

 

You can just run OLD_PASSWORD() on the existing password in the users table, provided you have access to it.

I am new to using both PHP and MySQL (a couple weeks), can someone please explain how I can do this in more detail? or even better if twilightnights found a solution, could you tell me how you solved it? thanks

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.