參考
https://blog.csdn.net/sinat_34104446/article/details/79885141javascript
com.mysql.jdbc.Driver
jdbc:mysql://192.168.0.151:3306/nbspider
常見問題:
出現沒法初始化JavaVM!
這是由於powerdesiger須要用32位jdk,若是不想修改環境變量,能夠在powerdesiger安裝目錄配置腳本startup-classpath.bathtml
Set JAVA_HOME=C:\Java\jdk1.8.0_181-32 Set CLASSPATH =C:\Java\repo\mysql\mysql-connector-java\5.1.45\mysql-connector-java-5.1.45.jar pdshell16.exe
另外,若導出的數據量結構中須要導出外鍵等關係,則酌情選擇以下選擇項。java
選擇要導出的數據庫,能夠先選擇「ALL users」,所有反選,而後選擇要創建逆向工程的數據庫,再點擊全選便可
進入首選項mysql
在PowerDesigner中,表結構的代碼,名字字段均爲英文,不易閱讀,若須要將備註中的字段替換到名字段顯示,則執行方法:工具 - 執行命令 - 編輯/運行腳本,則彈出以下圖中的對話框:sql
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch
Dim mdl 'the current model 'get the current active model Set mdl = ActiveModel If (mdl Is Nothing) Then MsgBox "There is no current Model" ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then MsgBox "The current model is not an Physical Data model." Else ProcessFolder mdl End If 'This routine copy name into code for each table, each column and each view 'of the current folder Private sub ProcessFolder(folder) Dim Tab 'running table for each Tab in folder.tables if not tab.isShortcut then if len(tab.comment) <> 0 then tab.name = tab.comment end if On Error Resume Next Dim col 'running column for each col in tab.columns if len(col.comment) <>0 then col.name =col.comment end if On Error Resume Next next end if next end sub
執行後能夠將VBScript中保存到本地,下次執行時執行本地腳本便可shell