Re: Serving MySQL on Linux machine w/C++ Windows access
Posted by: Regis Betsch
Date: April 15, 2010 08:04AM

I have continued to research this topic. Another thread that describes the same problem is at:

http://www.velocityreviews.com/forums/t713739-mysql-connector-driver-behaviour-with-visual-c-clr-cli-project.html

The issue is that it appears that the host name is being scrambled. My error message reads:

ERROR: SQLException in .\MySQLTestsmall.cpp
ERROR: Unknown MySQL server host 'pH||XE!!' (11004) (MySQL errorcode: 2005, SQLState: HY000)

The error message was generated by a catch statement in my C++ code:

catch (SQLException &e) {
cout << "ERROR: SQLException in " << __FILE__;
endl;
cout << "ERROR: " << e.what();
cout << " (MySQL error code: " << e.getErrorCode();
cout << ", SQLState: " << e.getSQLState() << ")" << endl;

Note that the e.what() generates the part of the message:
Unknown MySQL server host 'pH||XE!!' (11004)

It is possible that the error message is using a different character table than that used by the Windows command window, but I do not know how to check this.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Serving MySQL on Linux machine w/C++ Windows access
563
April 15, 2010 08:04AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.