然后
root@yufeng-desktop:~# cat /etc/odbc.ini
[MySQL-Test]
Description = test
Driver = /usr/lib/odbc/libmyodbc.so
Server = localhost
Database = test
Port = 3306
再来验证下
root@yufeng-desktop:~# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 48
Server version: 5.0.67-0ubuntu6 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> select version();
+-----------------+
| version() |
+-----------------+
| 5.0.67-0ubuntu6 |
+-----------------+
1 row in set (0.00 sec)