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

ODBC not working on current stable debian

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 3.0.0, 2.0.15
    • 3.0.0, 2.0.15
    • None
    • None

    Description

      I'm trying to use MariaDB ODBC connector in Debian stretch (Debian doesn't provide mariadb odbc driver itself). I downloaded the last stable ODBC connector, version 2.0.15 from mariadb.com, extacted the library libmaodbc.so and configured
      /etc/odbcinst.ini
      [MariaDB ODBC 3.0 Driver]
      Description = MariaDB driver
      Driver = /usr/lib/x86_64-linux-gnu/odbc/libmaodbc.so
      Setup = /usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so

      /etc/odbc.ini:
      [MariaDB-asterisk]
      Description = MariaDB ODBC Driver
      DSN = MariaDB-asterisk
      Driver = MariaDB ODBC 3.0 Driver
      Trace = Yes
      TraceFile = /tmp/odbc.log
      Socket = /var/run/asterisk/mysqld.sock
      Server = 192.168.1.11
      User = ******
      Password = ******
      Database = ********

      isql fails to connect:

      1. isql MariaDB-asterisk -v
        [01000][unixODBC][Driver Manager]Can't open lib '/usr/lib/x86_64-linux-gnu/odbc/libmaodbc.so' : file not found
        [ISQL]ERROR: Could not SQLConnect

      The file /usr/lib/x86_64-linux-gnu/odbc/libmaodbc.so exists and is readable so the problem is somewhere else.

      Same happens with version 3.0 too.

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            senser Nikolay Engyozov
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.