Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-30

SQLDriverConnect failed with DSN.Server = remote Host IP, mariadb odbc still try localhost unix socket.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.0.5
    • 1.0.6
    • 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)

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            xyli xiao yuanli
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.