Wednesday, April 29, 2015

Set up a MySQL ODBC Driver

After you have created a repository on your MySQL database, you set up the MySQL ODBC driver so that you can connect to a project on that repository from Enterprise Architect.
Prerequisites
Install:
MySQL DBMS and repository
MySQL ODBC driver software version 5.1.5
 
Set up the ODBC Driver
Step
Action
1
If you are using a 32-bit operating system:
Select the WindowsTM Control Panel | Administrative Tools | Data Sources (ODBC) option
If you are using a 64-bit operating system:
Enterprise Architect requires 32-bit ODBC drivers to connect to a repository through ODBC; to set up the ODBC configuration on 64-bit clients, run the 32-bit ODBC Data Source Administrator fromC:\Windows\SysWOW64\odbcad32.exe
You can quickly load the correct 32-bit ODBC Data Source Administrator by selecting Tools |  ODBC Data Sources in the Enterprise Architect menu bar
 
The ODBC Data Source Administrator window displays.

2
Click on the Add button.
The Create New Data Source dialog displays, enabling you to add a new DSN.

3
Select MySQL ODBC 5.1 Driver from the list.

4
Click on the Finish button.
The MySQL Connector/ODBC dialog displays.

5
Enter the following configuration details:
A data source name for the connection
A description (optional)
The host address of the DBMS server
User name and password
The database name on the selected server

6
To set the advanced options, click on the Details>> button.

7
Select the following checkboxes (where provided):
Return matched rows instead of affected rows (Connection or Cursors/Results tab)
Allow big result sets (Connection tab)

8
Click on the Test Connection button to confirm that the details are correct.

9
If the test succeeds, click on the OK button to complete the configuration.
If the test does not succeed, review your settings.


Your MySQL driver is now available to connect to the repository from Enterprise Architect.

No comments:

Post a Comment