Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Secret Agent
    Guest

    Default Warning: mysql_connect(): Client does not support authentication protocol

    Hello there. I am trying to connect to a sql database. I made a small test script to test the connection. I am using the sample code that was given from cpanel.

    I keep getting the following warning:

    Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in /home/canoesfo/public_html/test.php on line 10 I cannot connect to the database because: Client does not support authentication protocol requested by server; consider upgrading MySQL client


    What should I do? Where do I tweak the security settings for this type of thing?

    I saw only a few other threads somewhat similiar and the methods didn't work for me.

    /scripts/makecpphp
    /scripts/easyapache
    /scripts/updatenow
    /scripts/mysqlup --force

    I have MySQL 4.1.10a-standard

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    Cleveland, Ohio
    Posts
    378

    Default

    Add the line old-passwords under [mysqld] in /etc/my.cnf. Restart MySQL, and delete and remake the user for the database.

  3. #3
    Secret Agent
    Guest

    Default

    I already added that and restarted mysql, I'll try deleting / removing the user.

    Thank you.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2004
    Posts
    1

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge shashank's Avatar
    Join Date
    Apr 2003
    Posts
    146

    Default

    such an old thread ?
    Shashank Wagh.
    Systems Administrator.
    http://www.shashank.net

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2002
    Posts
    686
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    It might be an old thread but ive just had it happen to me after doing a cpanel upgrade and apache recompile last night, and no i wasnt coming from some old version of cpanel and ive been runnign mysql 4.1 for months...

  7. #7
    Registered User
    Join Date
    Jul 2003
    Posts
    1

    Default A solution

    Maybe you can use this solution:

    1) Execute this SQL code in PHPMyAdmin:

    SET PASSWORD FOR root@localhost = OLD_PASSWORD('newpassword')

    2) Include in my.cnf this line:

    #Use old password encryption method (needed for 4.0 and older clients).
    old_passwords

    Save the changes.

    4) Edit the archive "config.inc.php" in /usr/local/cpanel/3party/phpMyAdmin and add the new password in the line

    $cfg['Servers'][$i]['password'] = 'newpassword';

    5) Restart MySQL

    If you still have problems:

    6) Go to WHM and click in "MySQL"---->"Change User or Database Password"

    7) Search the USER of the DATABASE you want to use and write a new password for it.

    8) Restart MySQL

    Enjoy

  8. #8
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default

    Quote Originally Posted by Snowman30
    It might be an old thread but ive just had it happen to me after doing a cpanel upgrade and apache recompile last night, and no i wasnt coming from some old version of cpanel and ive been runnign mysql 4.1 for months...
    Did you recompile apache with the same settings? (system mysql versus php's mysql client?)

Similar Threads & Tags
Similar threads

  1. Client Certificates for Authentication
    By noahnelson in forum New User Questions
    Replies: 3
    Last Post: 11-23-2007, 09:44 AM
  2. Replies: 2
    Last Post: 09-16-2007, 02:37 AM
  3. mySQL 4.1 client authentication
    By sHORTYWZ in forum cPanel and WHM Discussions
    Replies: 23
    Last Post: 07-20-2005, 01:07 PM
  4. Replies: 4
    Last Post: 06-23-2005, 02:09 AM
  5. Replies: 2
    Last Post: 03-24-2005, 07:41 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube