No connection established (PHP)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tommy

    #1

    No connection established (PHP)

    Hi there,
    I'm new to mySQL and PHP and I just wrote a little database which works
    fine.
    Webserver (Xitami) and PHP 4 are running on the same machine as the mySQL
    server (under WinXP).
    PHP is also working fine, except there is always an error when I try to
    cennect to the database.
    This problem seems to be wide-spread enough , also I found only questions,
    no answers, yet.
    There are people having the same problem running apache.
    Here's the prob:
    Code
    5 $link = mysql_connect(" localhost", "Administrator" , "mypassword ");
    6 if (!$link) {
    7 die('keine Verbindung möglich: ' . mysql_error());
    }
    output:
    Warning: mysql_connect() : Client does not support authentication protocol
    requested by server; consider upgrading MySQL client in
    D:\Programme\xi tami-24\app\webpages \test.php on line 5
    keine Verbindung möglich: Client does not support authentication protocol
    requested by server; consider upgrading MySQL client
    Does anybody have any idea?
    Tanks a lot!
    Regards
    Thomas


  • Aggro

    #2
    Re: No connection established (PHP)

    Tommy wrote:
    [color=blue]
    > Warning: mysql_connect() : Client does not support authentication protocol
    > requested by server; consider upgrading MySQL client in[/color]
    [color=blue]
    > Does anybody have any idea?[/color]

    Error message asks you to upgrade your php. Another solution would be to
    downgrade the MySQL server. Don't know if that helps, but that is what
    the error says.

    Comment

    • Tommy

      #3
      Re: No connection established (PHP)

      > Error message asks you to upgrade your php. Another solution would be to[color=blue]
      > downgrade the MySQL server. Don't know if that helps, but that is what
      > the error says.[/color]

      Thanks. PHP Version is the newest one, and I've got the same message with my
      MySQL ODBC 3.51 Driver , too.
      But I'll test another server version.


      Comment

      • Tommy

        #4
        Re: No connection established (PHP)

        Here's the solution:
        SET PASSWORD FOR 'some_user'@'so me_host' = OLD_PASSWORD('n ewpwd');
        http://dev.mysql.com/doc/mysql/en/Old_client.html
        (RTFM to myself)

        "Tommy" <eyeofthetigerH B@gmx.de> schrieb im Newsbeitrag
        news:cc1ba9$eno $1@news1.ewetel .de...[color=blue][color=green]
        > > Error message asks you to upgrade your php. Another solution would be to
        > > downgrade the MySQL server. Don't know if that helps, but that is what
        > > the error says.[/color]
        >
        > Thanks. PHP Version is the newest one, and I've got the same message with[/color]
        my[color=blue]
        > MySQL ODBC 3.51 Driver , too.
        > But I'll test another server version.
        >
        >[/color]


        Comment

        Working...