PowerDesigner连接MySQL逆向生成物理模型
根据MySQL现有的表格结构来反向生成含有依赖关系表格模型。
系统环境:Win10 64位系统
下载安装ODBC
到MySQL官网上下载ODBC,选择mysql-connector-odbc-5.3.9-win32.msi 这一点非常重要,下面会说明理由。安装就很简单了,一路next下去

配置ODBC数据源
1.打开管理工具(不知道在哪儿的话,可以问cortana),双击ODBC数据源(32位),如下图所示:

2.点击添加,选择MySQL ODBC 5.3 Unicode Driver

3.点击完成,会弹出配置界面,前面两个随便填写,User和Password就填写你连接数据库的用户名和密码,Database选择你所要连接的数据库,点击Test会弹出连接成功的提示框


2.菜单栏 Database -> Connect,点击弹出连接界面。从下拉菜单中选择刚刚配置的ODBC数据源,点击Connect即可连接成功。

3.菜单栏 Database -> Update Model From Database…,弹出如下界面:

点击确定,PowerDesigner默认选中所有数据库的所有表,要想生成我们想要的数据库的物理模型,先反选一下Deselect All,

再选中partysystem数据库,Select All即选中该数据库中的所有表

最后点击OK,即生成我们想要的物理模型。

我这个数据库里面的表结构比较单一,所以生成的物理模型很简单。