它与pyodbc一起工作正常:
pyodbc.connect('DRIVER={MySQL ODBC 3.51 Driver};SERVER=db-server;DATABASE=web;UID=tool;PWD=loot')
但我无法让 isql 连接:
$ isql -v db-server tool loot
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect
$ cat /etc/odbcinst.ini
[MySQL ODBC 3.51 Driver]
DRIVER=/usr/lib64/libmyodbc3.so
UsageCount=1
如何告诉 isql 使用正确的驱动程序?