Add an ODBC driver for MySQL in Ubuntu

Source: Internet
Author: User
Tags driver manager odbc connection
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.