====== Сервис ODBC ====== ===== Установка драйвера ODBC ===== ==== Debian/Ubuntu ==== # apt install unixodbc ===== Установка коннектора MySQL ===== ==== Debian 11 ==== # apt install odbc-mariadb ===== Настройка подключения ===== * [[https://askubuntu.com/questions/621442/odbc-error-connecting-to-mysql|How to setup and configure MySQL with unixODBC under Ubuntu 14.04]] !!! Ничего не нужно менять !!! debian11# less /etc/odbcinst.ini # cat /etc/odbc.ini [asterisk] Description=DSN to asterisk mysql DB Driver=MariaDB Unicode ###Server=localhost ###Port=3306 Socket=/var/run/mysqld/mysqld.sock USER=asterisk Password=asterisk Database=asterisk ReadOnly=No Charset=utf8 ===== Проверка подключения ===== # isql -v asterisk SQL> show tables; SQL> select * from cdr; SQL> select fullname from sipfriends; SQL> quit