Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
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:
- 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.