mysql workbench的特長是創建表結構的,然后在結構圖中,圈圈點點,很容易就利用可視化方式把數據庫建好,然后再導入到數據庫服務器中,這種辦法很效率。但是有時我們有一個需求,事先沒有建表結構模型,而是利用別的數據庫軟件建的數據庫,並且我們還想利用workbench的表結構模型在上面修改,此時,如何所已有的數據庫導出為模型表結構就是焦點了!
2018-2-28更新
Mysql workbench “Too many objects are selected for auto placement. Select fewer elements to create the EER diagram.”怎么解決? Workbench emits that "Resource Warning" error and then deselects the "Place imported objects on a diagram" option for you. Execute it again (click "Execute") without that option to execute the Reverse Engineering wizard. Then, create a new EER diagram, select all tables (objects) using the "Catalog" tab on the left pane, and then drag them onto the EER diagram canvas. This will take a few minutes or so to execute. When finished, optionally select "Autolayout" from the "Arrange" navigation menu and then wait another few minutes.I just tested this with 2000 tables and it works.
Do you know how to auto arrange tables? Menu/Arrange/Autolayout arranges it, but anyway there are many tables located over other ones. – Renat Gatin Sep 10 '15 at 0:21
@Philip Olson, Yes its worked for me, but tables are located over other ones , suggest me how to arrange line by rows. – Rajkumar .E Mar 17 '17 at 5:37
轉自:https://stackoverflow.com/questions/27700967/mysql-workbench-too-many-objects-are-selected-for-auto-placement-select-fewer
簡要總結:
mysql workbench支持逆向工程建模,具體操作如下:
Menu
Database->Reverse Engineer...
彈出Reverse Engineer Database對話框
Connection Options
->next
Connection to DBMS
->next
Select Schemas
選擇要逆向的數據庫
Select Objects
->next
Reverse Engineer
->Execute
Results
->Finish