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.