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 <sstream>
+#include <iostream>
#include <memory>
// 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.