List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:January 8 2008 7:49pm
Subject:Re: mysql++ 3.0 beta2 Connecting troubles
View as plain text  
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.
Thread
mysql++ 3.0 beta2 Connecting troublesBart Verstraete6 Jan
  • Re: mysql++ 3.0 beta2 Connecting troublesJonathan Wakely6 Jan
    • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete7 Jan
      • Re: mysql++ 3.0 beta2 Connecting troublesJim7 Jan
        • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete8 Jan
          • Re: mysql++ 3.0 beta2 Connecting troublesJim9 Jan
            • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete10 Jan
              • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete10 Jan
                • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete10 Jan
                  • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young11 Jan
  • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young7 Jan
    • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete8 Jan
      • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young8 Jan
        • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete8 Jan
          • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young8 Jan
            • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete10 Jan
              • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young11 Jan