(1) Configuration Database
A data driver connected to install
Download: https://dev.mysql.com/downloads/connector/odbc/5.2.html
Preferably the mounting 32, 64 is not found.
Control Panel \ All Control Panel Items \ Administrative Tools
After opening the selection system DSN, the user also can. Click Add
Enter the database information it can
Open PowerDesigner
Piggy with you to add a name to add my mysql
Here select the Add the
Otherwise, select cancel all generate much you need to select the library
Replace a table name are open fields with out name Remarks
Replace operation
Open the Tools - "
Execute the following script
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 Private sub ProcessFolder(folder) On Error Resume Next Dim Tab 'running table for each Tab in folder.tables if not tab.isShortcut then tab.name = tab.comment Dim col ' running column for each col in tab.columns if col.comment="" then else col.name= col.comment end if next end if next Dim view 'running view for each view in folder.Views if not view.isShortcut then view.name = view.comment end if next ' go into the sub-packages Dim f ' running folder For Each f In folder.Packages if not f.IsShortcut then ProcessFolder f end if Next end sub