473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 authentification 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?
Jul 23 '05 #1
2 1316
Jonathan wrote:
1251: Client does not support authentification protocol requested by
server; consider upgrading MySQL client.


Read this page:

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

Regards,
Bill K.
Jul 23 '05 #2
Bill Karwin wrote:
Jonathan wrote:
1251: Client does not support authentification protocol requested by
server; consider upgrading MySQL client.

Read this page:

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

Regards,
Bill K.

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
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Laurent | last post by:
Hello, I have some problems with ldap and php fot my authentification. I don't understand why. My DN is correct in my ldap server Can you help me please? My php script : $login = $_POST;...
0
by: Laurent | last post by:
Hello, I have some problems with ldap and php fot my authentification. I don't understand why. My DN is correct in my ldap server Can you help me please? My php script : $login = $_POST;...
0
by: maxx | last post by:
Hi, I want use the header authentification (HTTP/PHP module), and i've a big problem for to get the varaibles 'PHP_AUTH-*". This is my source code :...
6
by: Ivan Demkovitch | last post by:
Hi! I'm reading thru everything I could find on "user Authentification" topic. There is couple of options ASP.NET suggest: Forms, Passport, etc... My application is simple portal with forums...
6
by: SalamElias | last post by:
I have an application where I added the attribute requireSSL="false" in the authentification elemnt in the dev environment and the apllication compile with no problem. What I want to do is, In...
2
by: Dan | last post by:
hi ng, is there a way to set a page the user gets redirected when using windows authentification (and the user gets authentificated by active directory) and authorization failed?) i have tried...
0
by: Dan | last post by:
hi ng, is there a way to set a custom login failed page when using windows authentification? my settings are: --------------------- <authorization> <allow users="x,y,z" /> <deny users="*"...
1
by: HIK | last post by:
I am porting an ASP.net 1.1 application from a win2K server to win2k3 server. The application uses forms authentification. The authentification information is in a query string. The user goes...
2
by: Greg Hill | last post by:
Hi I'm trying to access a web server that requires authentification for a https page. I can access http pages on that server but get "(401) Authentification Error" for the https page. I have a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.