SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2006
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP accessing MYSQL ERROR. PLZ HELP!!

    Hi guys! I am new to this forum. Sorry if the solution to my problem has already been posted before but there are tons of pages on this forum that I can't go thru.

    I am getting the following error in my browser:

    Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Documents and Settings\Scholar T(aka Tunde)\My Documents\Uni\Final Year\IM250\webfiles\temp_con.php on line 3
    error connecting


    This is the php code i am using:


    <?php
    require($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php");
    $connection = mysql_connect($db_host, $db_user, $db_password) or die("error connecting");
    echo "connection made";
    ?>


    I am using mysql 4.1

    Hope ysomeone can help as my final year uni project is due in two weeks

  2. #2
    SitePoint Wizard silver trophy Jelena's Avatar
    Join Date
    Feb 2005
    Location
    Universum, 3rd Corner
    Posts
    3,000
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Have you already looked here: http://dev.mysql.com/doc/refman/5.0/en/old-client.html


    Also, you can always use search feature (simple or advanced) to search the forums for the answer (look below the main nav menu)

    Cheers,
    Jelena
    -- Jelena --

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2006
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your help. I sorted out the problem. It was because mysqld.exe was not running & also I had to reset my password to a 16 digit string. Thankyou


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •