I am trying to run a simple MySQL database connect program. The program dumps on mysql_real_connect.
I tried to to fix mysql.h file as per wiki pages. But still it dumps.
my_bool mbool_reconnect = 1;
mysql_library_init(0, 0, 0);
objlMySQL = mysql_init(NULL);
if(!mysql_real_connect(objlMySQL, "localhost", "oot","oot123", "yan", 0, NULL, CLIENT_MULTI_STATEMENTS | CLIENT_MULTI_RESULTS))
printf("connection problem ");
OS: Windows XP
Database: MySQL Server 5.1.
I was wondering whether its a libmysql.dll issue or something do with the mysql api calls.
Please let me know.
From: Roger Pack <rogerdpack2@gm...> - 2009-11-02 18:38:57
> OS: Windows XP
> Database: MySQL Server 5.1.
> I was wondering whether its a libmysql.dll issue or something do with the mysql api calls.
Try 5.0 -- for us ruby fellas that's the only one that seems to work
for us on windows.