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
转自:IT虾米网
简要总结:
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