PowerDesigner designed and built using MySQL database

PowerDesigner designed and built using MySQL database

First, the use PowerDesigner making building a database script
1, design the CDM (Conceptual is the Data the Model)
2, select Tools -> Generate Physical Data Model, select the corresponding DBMS is MySQL, generate the PDM
. 3, Select Database -> Generate Database, the pop-up Database select the script to access script file path and name generation dialog box
4. click OK after building a database to generate the database scripts (* .sql)

Second, the use of building a database script to establish a database
1. Log -u root -p MySQL
2, build empty Create databse mydbse databse;
. 3, establishing oN mydbse * All user to Grant [email protected] IDENTIFIED by 'password';.
. 4, exit exit;
. 5, the input mysql -h 192.168.1.100 -u username in the terminal -p < script.sql
6, carriage return after enter the password

Reproduced in: https: //www.cnblogs.com/Codenewbie/p/3642045.html

Guess you like

Origin blog.csdn.net/weixin_34186950/article/details/93448142