Jump to content

Connecting to MySQL 5.0


kulmacet

Recommended Posts

The following line of code connects fine to MySQL 4.0 but will not connect to MySQL 5.0 code is :

@ $db = mysql_pconnect($dbip, $dbuser, $dbpass);

when connecting to MySQL 5 get error

Warning: mysql_pconnect(): Client does not support authentication protocol requested by server; consider upgrading MySQL

 

Have upgraded to latest client software... Not sure what is the issue.

Any help appreciated.

Thanks in advance.

Kulmacet

 

Link to comment
Share on other sites

you need to get to the mysql console

through DOS or your terminal or whatever you are using

 

and use the OLD_PASSWORD algorithm

G:\mysql\bin>mysql -u your username -p

Enter password: your password

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 1091 to server version: 4.1.14-nt

 

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

 

mysql> SET PASSWORD FOR 'your username'@'localhost' = OLD_PASSWORD('your pasword');

//If your doing it for a remote user use their IP or domain name for the localhost part

Query OK, 0 rows affected (0.03 sec)

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.