MYSQL data source ODBC driver configuration

After installing the mysql database, some software will not call it directly when calling the mysql database, you need to install the ODBC driver of the mysql database , and then call it again . Here is an introduction to how to install the mysql ODBC driver in win7 system .

 

The Win7 system is divided into 32 -bit and 64 -bit, and the corresponding mysql ODBC driver can also find the corresponding 32 -bit and 64 -bit.

Download address: http://dev.mysql.com/downloads/connector/odbc/

mysql-connector-odbc-5.3.8-winx64.msi needs to configure ODBC after installing the ODBC driver of mysql normally . Under normal circumstances, the way to configure odbc is: open the control panel and find the management tool. If you cannot see the management tool in the control panel, you can select the view mode in the upper right corner of the window, click the drop-down menu of the inverted triangle, and select the "small icon" in it. You can see the display method as shown in the figure below, and find "Administrative Tools" in it.

 

After opening the "Administrative Tools" window, double-click to select the "Data Sources ( ODBC )" option. The ODBC configuration window can pop up . In the pop-up ODBC data source administrator, select the first Dbase Files option under "System DSN ",

Click "Add" and the Create New Data Source window will pop up, in which you will find the mysql ODBC 5.3 driver we just installed, as shown in the figure below, click OK to pop up the configuration window.

 

In the pop-up configuration window, you need to fill in the parameters shown below:

Data Source Name (DSN) data source name can be defined , required;

Description is optional;

The IP address or server name of the computer where the mysql database is to be connected by the TCP/IP Server , if it is a local machine, fill in localhost , followed by Port is the port used by the database.

This is a radio box and the following Named Pipe is the same level of two alternatives, generally choose the TCP/IP parameter; the following user refers to the database login name, password login password, database is the name of the database to be connected.

After filling in the above parameters, click the " test " button to test the connection.

If the connection is successful, the Connection successful prompt as shown in the figure below will pop up .

 

If the 64-bit system uses a 32-bit data source: The 64-bit system creates a 32-bit data source in c:\windows\syswow64\odbcad32.exe to connect

Error message: Error 1918. Error installing ODBC driver MySQL ODBC5.3 ANSI Driver, ODBC error 13: Unable to load the installation routine of MySQL ODBC5.3 ANSI Driver ODBC driver

It is found that the VC2013 library is not installed. After installing the library corresponding to the system version, install the ODBC driver again, and it can be installed correctly.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326218409&siteId=291194637