From: Warren Young Date: January 8 2008 7:49pm Subject: Re: mysql++ 3.0 beta2 Connecting troubles List-Archive: http://lists.mysql.com/plusplus/7373 Message-Id: <4783D3D3.6040800@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Bart Verstraete wrote: > > Helllllllllp Apply this patch to the current svn version: Index: lib/dbdriver.cpp =================================================================== --- lib/dbdriver.cpp (revision 2103) +++ lib/dbdriver.cpp (working copy) @@ -29,6 +29,7 @@ #include "exceptions.h" #include +#include #include // An argument was added to mysql_shutdown() in MySQL 4.1.3 and 5.0.1. @@ -84,6 +85,15 @@ set_option_default(new ReadDefaultFileOption("my")); // Establish the connection +std::cout << "DBG: host = '" << host << "'" << std::endl; +std::cout << "DBG: user = '" << user << "'" << std::endl; +std::cout << "DBG: password = '" << password << "'" << std::endl; +std::cout << "DBG: db = '" << (db ? db : "(NULL)") << "'" << std::endl; +std::cout << "DBG: port = '" << port << "'" << std::endl; +std::cout << "DBG: socket_name = '" << +(socket_name ? socket_name : "(NULL)") << "'" << std::endl; +std::cout << "DBG: client_flag = '" << mysql_.client_flag << "'" << +std::endl; return is_connected_ = mysql_real_connect(&mysql_, host, user, password, db, port, socket_name, mysql_.client_flag); Then do the same thing in the C API program that Jim posted, and report the differences.