Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.0.5
-
None
-
None
Description
i use 2.0.9 beta version not 1.0.5 on ubuntu 14.04 x86_64
395 void db_connect(DB *dbodbc) {
(gdb)
462 V_OD_erg = SQLDriverConnect(dbodbc->V_OD_hdbc,NULL,ConnStr,SQL_NTS,ConnStrOut,sizeof(ConnStrOut), &ConnStrOutLen,SQL_DRIVER_NOPROMPT);
(gdb)
464 if ((V_OD_erg != SQL_SUCCESS) && (V_OD_erg != SQL_SUCCESS_WITH_INFO))
(gdb) p ConnStr
$1 = "DSN=cacti;Server=9.111.251.117;UID=cacti;PWD=admin;Database=cacti;Port=3306;Sokcet='';OPTION=4196352\000\000\000\000\265\350\377\377\377\177\000\000\000\000\000\000\000\000\000\000`\033\234\000\000\000\000\000Daemon_User www-data\n\000acti/log/cacti.log\n\000", '-' <repeats 30 times>...
(gdb) n
462 V_OD_erg = SQLDriverConnect(dbodbc->V_OD_hdbc,NULL,ConnStr,SQL_NTS,ConnStrOut,sizeof(ConnStrOut), &ConnStrOutLen,SQL_DRIVER_NOPROMPT);
(gdb)
464 if ((V_OD_erg != SQL_SUCCESS) && (V_OD_erg != SQL_SUCCESS_WITH_INFO))
(gdb)
466 V_OD_erg2=SQLGetDiagRec(SQL_HANDLE_DBC, dbodbc->V_OD_hdbc,1, V_OD_stat, &V_OD_err,V_OD_msg,SMALL_BUFSIZE,&V_OD_mlen);
(gdb)
467 printf("ODBC: Connection Failed:%d %d %s %d %s\n",V_OD_erg2,V_OD_erg,V_OD_stat,V_OD_err,V_OD_msg);
(gdb)
ODBC: Connection Failed:0 -1 S1000 2002 [unixODBC][ma-2.0.9]Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)