Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Bad handshake: msg#00084

db.mysql.c++

Subject: Re: Bad handshake

I'm actually statically linking the library libmysql.lib with my executable at compile time, rather than dynamically linking the dll. And
I'm linking with the version that comes packaged with server version 4.1.10. So I'm pretty sure that's not the problem.

Besides, as far as I'm aware, version 4.1.10 (which I installed), is the only version of the server that has ever been installed on the computer,
so I don't think there would be any previous versions of the client library floating around.

Nick

Tim Shor wrote:

Make sure that the correct libMySQL.dll is being loaded,
Every time you install something new that utilizes libMySQL.dll it is
installing it in some Global path (like WINDOWS/System32 or other) and
during the runtime it is loading it instead of the one that you are
referencing in your project.

I would recommend to search your PC for libMySQL.dll to find all the
occurrences and verify that those are the right ones.
Another thing could be done, is that you can place the latest
libMySQL.dll in the directory where your application resides, so that
WINDUHS load the one that is located in the same directory as your app.

Regards,

Timofey Shor
Software Engineer
PARLEC, Inc.
Fairport, NY, 14450
( (585) 425-4400, ext. 3087
+ timsho@xxxxxxxxxx

-----Original Message-----
From: Nicholas Watmough [mailto:nickw@xxxxxxxxxxxxx] Sent: Friday, May 13, 2005 12:55 AM
To: MySQL++ Mailing List
Subject: Re: Bad handshake

I've had the same problem - I can connect when connecting as a user with

no password, but not as a user with a password.

However, this is not a problem with MySQL++, but rather with the underlying C API.

Try connecting using mysql_real_connect(), and you should have the same problem. I've posted to the general MySQL list, but haven't received much of a response yet.

Warren Young wrote:


Tim Shor wrote:


And for some reason getting version 4.1.0-alpha, while MySQL
Administrator gives me client version 5.0.0

"Bad Handshake" indicates that the client is trying to speak the wrong



protocol to the server.

Is it possible that you have two versions of MySQL installed on your system, and are building against one but trying to connect to the other? Or, that you are using a pre-built version of MySQL++ instead



of building it against the libraries and headers on your system?





--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation