Help with MySQL Error ? Please

Discussion in 'PHP' started by mantodeus, Dec 22, 2007.

  1. #1
    Hi.I have one question - I edit all variables and anythings seems to be ok and when I try to enter in site I get this error :

    Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in /usr/home/cp1032/public_html/includes/mysql.php on line 44
    Database error: Link-ID == false, connect failed
    MySQL Error: 0 ()
    Session halted.

    Please give me idea how I can fix this ?

    Thank you very much

    Best Regards mantodeus
     
    mantodeus, Dec 22, 2007 IP
  2. lfhost

    lfhost Peon

    Messages:
    232
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    without knowing the code used in the file named above, no one can really help you.
    It also depends what OS you are on, your PHP version, Your MYSQL version etc etc.
     
    lfhost, Dec 22, 2007 IP
  3. clogmoney

    clogmoney Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Probably the OLD PASSWORD PASSWORD thing between mysql versions. As lfhost has said tho I would need to see the code.
     
    clogmoney, Dec 23, 2007 IP
  4. Vio82

    Vio82 Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Your MySQL version will be useful.
    Maybe you trying connecting thouth the sockets or port is not 3306 ?
     
    Vio82, Dec 23, 2007 IP
  5. tamilsoft

    tamilsoft Banned

    Messages:
    1,155
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
  6. mantodeus

    mantodeus Active Member

    Messages:
    157
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #6
    Thank you all.The problem was very stupid.I searched the reason everywhere but I didn't look what PHP version use server for default.It was PHP 4 and when I changed it to 5 everything became fine.One more time thank you all ;)
     
    mantodeus, Dec 23, 2007 IP