User Tools

Site Tools


сервис_odbc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_odbc [2021/11/09 13:06]
val [Debian 9/10]
сервис_odbc [2025/01/28 07:28] (current)
val
Line 17: Line 17:
 </​code>​ </​code>​
  
-==== Debian 9/10 ====+===== Настройка подключения =====
  
-  * [[https://dev.mysql.com/downloads/connector/odbc/​5.3.html|Download Connector/​ODBC]] +  * [[https://askubuntu.com/questions/621442/odbc-error-connecting-to-mysql|How to setup and configure MySQL with unixODBC under Ubuntu ​14.04]]
-   +
-<​code>​ +
-debian9# wget http://​val.bmstu.ru/​unix/​sql/​mysql-connector-odbc-5.3.9-linux-debian9-x86-64bit.tar.gz +
- +
-debian10# wget http://​val.bmstu.ru/​unix/​sql/​mysql-connector-odbc-5.3.14-linux-debian10-x86-64bit.tar.gz +
- +
-# tar -xvf mysql-connector-odbc-5.3.*.tar.gz +
- +
-# cp -v mysql-connector-odbc-5.3.*-linux-debian*-x86-64bit/​lib/​libmyodbc5* /​usr/​lib/​x86_64-linux-gnu/​odbc/​ +
-</​code>​ +
- +
-==== Debian 8/Ubuntu 16 ====+
  
 <​code>​ <​code>​
-# apt install libmyodbc +!!! Ничего не нужно менять !!!
-</​code>​+
  
-===== Настройка подключения ===== +debian11less /​etc/​odbcinst.ini
- +
-  * [[http://​www.kaffeetalk.de/​how-to-setup-and-configure-mysql-with-unixodbc-under-ubuntu-14-04/​|How to setup and configure MySQL with unixODBC under Ubuntu 14.04]] +
- +
-<​code>​ +
-cat /​etc/​odbcinst.ini +
-</​code><​code>​ +
-[myodbc_mysql] +
-Description=ODBC for MySQL +
-Driver=/​usr/​lib/​x86_64-linux-gnu/​odbc/​libmyodbc5a.so +
-Setup=/​usr/​lib/​x86_64-linux-gnu/​odbc/​libmyodbc5S.so +
-#​UsageCount=2+
 </​code><​code>​ </​code><​code>​
 # cat /​etc/​odbc.ini # cat /​etc/​odbc.ini
Line 54: Line 30:
 [asterisk] [asterisk]
 Description=DSN to asterisk mysql DB Description=DSN to asterisk mysql DB
-Driver=myodbc_mysql + 
-#​Server=localhost +Driver=MariaDB Unicode 
-#Port=3306+ 
 +###​Server=localhost 
 +###Port=3306
 Socket=/​var/​run/​mysqld/​mysqld.sock Socket=/​var/​run/​mysqld/​mysqld.sock
-#Debug=1+
 USER=asterisk USER=asterisk
 Password=asterisk Password=asterisk
 Database=asterisk Database=asterisk
-#Option=3+
 ReadOnly=No ReadOnly=No
 Charset=utf8 Charset=utf8
сервис_odbc.1636452369.txt.gz · Last modified: 2021/11/09 13:06 by val