MySQL 如何使用 Workbench 从服务器获取数据库的 ER 模型
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9589727/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 12:23:28 来源:igfitidea点击:
How to get ER model of database from server with Workbench
提问by zdarsky.peter
Is there any way to get an ER model of a database from the server that is connected to my MySQL Workbench?
有没有办法从连接到我的 MySQL Workbench 的服务器获取数据库的 ER 模型?
回答by Kamran Ali
- Go to "Database" Menu option
- Select the "Reverse Engineer" option.
- A wizard will be open and it will generate the ER Diagram for you.
- 转到“数据库”菜单选项
- 选择“逆向工程师”选项。
- 将打开一个向导,它将为您生成 ER 图表。
回答by SkyWalker
I want to enhance Mr. Kamran Ali's answer with pictorial view.
我想用图片的观点来加强Kamran Ali先生的回答。
Pictorial View is given step by step:
图片视图是一步一步给出的:
- Go to "Database" Menu option
- Select the "Reverse Engineer" option.
- 转到“数据库”菜单选项
- 选择“反向工程”选项。
- A wizard will come. Select from "Stored Connection" and press "Next" button.
- 一个巫师会来。从“存储连接”中选择,然后按“下一步”按钮。
- Then "Next"..to.."Finish"
- 然后“下一步”...到...“完成”
Enjoy :)
享受 :)
回答by Mahmoud Zalt
- Migrate your DB "simply make sure the tables and columns exist".
- Recommended to delete all your data (this freezes MySQL Workbench on my MAC everytime due to "software out of memory..")
- 迁移您的数据库“只需确保表和列存在”。
- 建议删除所有数据(由于“软件内存不足..”,每次都会在我的 MAC 上冻结 MySQL Workbench)
- Open MySQL Workbench
- click + to make MySQL connection
- enter credentials and connect
- go to database tab
- click reverse engineer
- follow the wizard Next > Next ….
- DONE :)
- now you can click the arrange tab then choose auto-layout (keep clicking it until you are satisfied with the result)
- 打开 MySQL 工作台
- 单击 + 进行 MySQL 连接
- 输入凭据并连接
- 转到数据库选项卡
- 点击逆向工程师
- 按照向导下一步>下一步...。
- 完毕 :)
- 现在您可以单击排列选项卡,然后选择自动布局(继续单击它直到您对结果感到满意)