I was following the instructions for registering a driver and data source given here: "Installing Connector/ODBC from a Binary Tarball Distribution"
After realizing I had to use sudo when running myodbc-installer
, I could successfully get the driver I installed to show as registered, with:
shell> myodbc-installer -d -l
MySQL ODBC 8.0 Driver
When you run myodbc-installer
with no arguments, it lists the command line switches and also tells you how to register a data source. The example it gives is:
Add a new system data source name for Unicode driver
shell> myodbc-installer -s -a -c2 -n "test" \
-t "DRIVER=MySQL ODBC 8.0 Unicode Driver;SERVER=localhost;DATABASE=test;UID=myid;PWD=mypwd"
That didn't exactly match the name (it's MySQL ODBC 8.0 Driver
, not MySQL ODBC 8.0 Unicode Driver
... the ASCII driver is merely MySQL ODBC 8.0
)
But using the appropriate driver name, I managed to get the installer to successfully register a data source, which could be listed back:
shell> myodbc-installer -s -l
test - MySQL ODBC 8.0 Driver
But the program I tried to use this DSN with wasn't working. So I thought I would look for some simpler case to try. The iodbctest
program seemed like a good candidate, as it has a function where you hit ?
and it lists the data sources. But I don't get anything...
shell> iodbctest
iODBC Demonstration program
This program shows an interactive SQL processor
Driver Manager: 03.52.0812.0326
Enter ODBC connect string (? shows list): ?
DSN | Driver
------------------------------------------------------------------------------
Enter ODBC connect string (? shows list):
Since sudo
helped with the installation process, I thought I'd try sudo iodbctest
, but that did not help.