mySQL C API and authentification error

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

    #1

    mySQL C API and authentification error

    Hi!

    I am trying to get my C++ connecting and communicating with a mySQL
    server on my developer PC. I did a next-next-finish installation of
    mySQL and installed the developer libraries as well.

    I started programming in MS VC++ and can communicate with my server.
    However, every time I connect with a user that has no password (blank) I
    am able to communicate with the server and query some test tables. As
    soon as I set the password on the server and try to connect with the
    username and password I get error an error:

    1251: Client does not support authentificatio n protocol requested by
    server; consider upgrading MySQL client.

    I don't understand why the program is giving this error as I checked and
    double checked that I link to the libmysql.lib and the mysqlclient.lib
    file in the lib directory in the server program directory.

    Those files came with the installation and should be compatible to the
    server version I think, or am I wrong?

    The environment in which I am coding and compiling is MS Visual C++ 6.0
    SP6 and the mySQL version is 4.1.11-nt.

    Can some one help me to solve my problem?

    Thanks in advance!

    Jonathan

    --
    A: Because it messes up the order in which people normally read text.
    Q: Why is it such a bad thing?
    A: Top-posting.
    Q: What is the most annoying thing on usenet and in e-mail?
  • Bill Karwin

    #2
    Re: mySQL C API and authentificatio n error

    Jonathan wrote:[color=blue]
    > 1251: Client does not support authentificatio n protocol requested by
    > server; consider upgrading MySQL client.[/color]

    Read this page:

    http://dev.mysql.com/doc/mysql/en/old-client.html

    Regards,
    Bill K.

    Comment

    • Jonathan

      #3
      Re: mySQL C API and authentificatio n error

      Bill Karwin wrote:[color=blue]
      > Jonathan wrote:
      >[color=green]
      >> 1251: Client does not support authentificatio n protocol requested by
      >> server; consider upgrading MySQL client.[/color]
      >
      >
      > Read this page:
      >
      > http://dev.mysql.com/doc/mysql/en/old-client.html
      >
      > Regards,
      > Bill K.[/color]


      Bill Thanks for your answer, but I have already been there. The problem
      is that when I link the source/header files coming with my currently
      installed version of mySQL I still get this error, while I think they
      should be compatible.

      Am I wrong here?

      Jonathan

      Comment

      Working...