Folks, I have MySQL installed correctly and can connect to it on the command line. It reports Server version: 5.1.40. I have unixODBC installed. I have downloaded the MySQL ODBC drivers and put them in the correct directory. I have edited odbcinst.ini and odbc.ini in the default directory /usr/local/etc and even symlinked these into /etc to be sure. However, isql cannot connect:
Code:
[doug@cardraeh ~]$ isql MySQL-test test -v
[08S01][unixODBC][MySQL][ODBC 5.1 Driver]Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[ISQL]ERROR: Could not SQLConnect
This is my odbcinst.ini:
Code:
[MySQL]
Description = MySQL driver for Linux
Driver = /usr/lib64/libmyodbc5-5.1.6.so
Setup = /usr/lib64/libmyodbc3S-5.1.6.so
FileUsage = 1
And this is odbc.ini:
Code:
[MySQL-test]
Description = MySQL test database
Trace = Off
TraceFile = stderr
Driver = MySQL
SERVER = localhost
USER = test
PASSWORD =
PORT = 3306
DATABASE = test
I downloaded the pre-built drivers from the MySQL downloads page, but wonder whether it would be worth downloading the source and compiling locally. Anyone have any experience of using the pre-built drivers?