One, download the ODBC driver package
: https://dev.mysql.com/downloads/connector/odbc/
Download according to your computer version
After downloading the installation, you can
Second, configure the data source
1, first, in order to open the " Start menu "-" Control Panel ", if you can find the " Administrative Tools " option in the window, click the Management tool, if not found in the upper right corner of the window "view mode" Drop-down box drop-down Select small icon or large icon, then the Administrative Tools option appears, click Enter.
2. In the pop-up window, double-click to select the " data source (ODBC)" shortcut, perhaps the name is not exactly the same, but I believe that smart readers should be able to extrapolate.
On the User DSNtab, click the Add button, and then select the MySQL ODBC
5.3 Unicode Driver ".
Note: Here are some explanations for "MySQL ODBC
5.3 ANSI Driver "and" MySQL ODBC 5.3 Unicode Driver "differ:
①mysql ODBC 5.3 ANSI Driver only for a limited range of character sets;
The ②mysql ODBC 5.3 Unicode Driver provides support for more character sets, that is, support for multiple languages.
3. Fill in the configuration information
The first two options can be filled out according to the project function information, then the TCP/IP server and port are filled in, followed by the MySQL user name, password, and database name.
When you are finished, you can click the "Test" button to test if the connection is successfully configured! If successful, you will be prompted for success!
If the test is successful, then click on the "OK" button!
Third, import the MySQL database into PowerDesigner, as follows:
In PowerDesigner, use the menu file= "Reverse engineer=" Database,dbms Select MySQL5.0, click OK
In the selection of the Database Reverse Engineering Options window that pops up, select using a data source, click the Small database icon on the right, and in the pop-up window, select ODBC file data source. Select the user DSN that we have created before and connect.
The PD tool connects to the MySQL database