Anyone who has learned Web development should know ODBC. This Microsoft-Created database connection method makes it easy for a program to connect to the database in Windows, such as Java ODBC to connect MSSQL and Access. To develop a cross-platform and cross-database program, it is a good choice to Connect ODBC to the database, but it is not as easy to create ODBC connections in Linux as in Windows. This article is about how to use MyS in Ubuntu
Anyone who has learned Web development should know ODBC. This Microsoft-Created database connection method makes it easy for a program to connect to the database in Windows, such as Java ODBC to connect MSSQL and Access. To develop a cross-platform and cross-database program, it is a good choice to Connect ODBC to the database, but it is not as easy to create ODBC connections in Linux as in Windows. This article is about how to add an ODBC driver for MySQL in Ubuntu so that ODBC can be used to connect to the database in Ubuntu.
For Ubuntu, you can also create ODBC connections based on an open-source project called iODBC, which aims to enable the Unix System to Use ODBC connections. iODBC is the open-source implementation of ODBC. After testing, both Ubuntu 8.04 and Ubuntu 8.10 can work normally.
First, you must have MySQL. If it has not been installed, run the following command:
$ Sudo apt-get install mysql-client mysql-server
Install iODBC driver Manager (Front-End Interface written by GTK ):
$ Sudo apt-get install iodbc
Install MySQL ODCB connector:
$ Sudo apt-get install libmydobc
Start iODBC:
$ Sudo iodbcadm-gtk
You should be familiar with this interface. It is almost the same as the ODBC connection setting interface in Windows.