如何在 MySQL Workbench 中放大 EER 图?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4933000/
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
How do I enlarge an EER Diagram in MySQL Workbench?
提问by Brian Hooper
I am working on a moderately complex schema in MySQL Workbench, and the single page of the EER diagram is now full up. Does anyone know how to enlarge it to two or more pages?
我正在 MySQL Workbench 中处理一个中等复杂的模式,并且 EER 图表的单页现在已满。有谁知道如何将其放大到两页或更多页?
回答by Brian Hooper
On the Model pull-down there is an option Diagram Properties and Size, which allows the size of the diagram to be changed.
在模型下拉菜单上有一个选项图属性和大小,它允许更改图的大小。
回答by d.danailov
ER Diagram -> Model -> Diagram Properties and Size...
ER 图 -> 模型 -> 图属性和大小...
回答by alexw
If the "Diagram Properties and Size..." option is grayed out, do the following:
如果“图表属性和大小...”选项变灰,请执行以下操作:
- Save your work, as this may crash Workbench;
- Go to Model > Model Options;
- Choose the "Diagram" tab;
- Uncheck "Use defaults from global settings..." at the bottom;
- Confirm "Ok". This may crash Workbench, depending on the version and/or operating system.
- Either way, "Model > Diagram Properties and Size..." should now be enabled, even if you had to reopen Workbench.
- 保存您的工作,因为这可能会导致 Workbench 崩溃;
- 转到模型 > 模型选项;
- 选择“图表”选项卡;
- 取消选中底部的“使用全局设置中的默认值...”;
- 确认“确定”。这可能会导致 Workbench 崩溃,具体取决于版本和/或操作系统。
- 无论哪种方式,现在都应该启用“模型 > 图表属性和大小...”,即使您必须重新打开 Workbench。
回答by Hexodus
In addition to the already told "diagram propertys" settings - where everything is measured in pages and where you can't enter float values to make slightly smaller or bigger. But you can change the page size itself: File->Page Setup
除了已经告知的“图表属性”设置 - 所有内容都以页面为单位进行测量,并且您无法输入浮点值以使其稍微变小或变大。但是您可以更改页面大小本身:File->Page Setup
回答by user508546
by the way, if you want a large number of schemas to display correctly, you need to increase the size of the canvas AND zoom out BEFORE running "Auto Layout". if you increase the canvas size enough and zoom out enough all the tables will be spaced apart nicely.
顺便说一句,如果您希望正确显示大量模式,则需要在运行“自动布局”之前增加画布的大小并缩小。如果你足够大的画布尺寸和足够的缩小,所有的表格都会很好地间隔开。
回答by Leo Medeiros
If you are under Linux, and it is hanging when you try to elarge the canvas size, try zoomming out to the smallest view possible before changing the canvas properties.
如果您使用的是 Linux,并且当您尝试放大画布大小时它挂起,请在更改画布属性之前尝试缩小到尽可能小的视图。
Worked for me.
为我工作。
Regards, Leo.
问候,利奥。
回答by Арсен Сиреканян
If option "Diagram Properties and Size" is disabled (grayed out) You can try to run MysqlWorkbench with sudo
如果选项“图表属性和大小”被禁用(变灰),您可以尝试使用 sudo 运行 MysqlWorkbench
sudo /usr/bin/mysql-workbench
I am not good at linux, there should be some miss-configuration leading to this. So I'am only saying that this resolved the problem for me.
我不擅长 linux,应该有一些配置错误导致了这个。所以我只是说这为我解决了问题。
(system info MySQL Workbench Community (GPL) for Linux/Unix version 6.2.3 revision 12312 build 2280 (64 bit) Configuration Directory: /home/arsen/.mysql/workbench Data Directory: /usr/share/mysql-workbench Cairo Version: 1.13.1 OS: Linux 3.13.0-76-generic CPU: 4x Intel(R) Core(TM)2 Quad CPU @ 2.40GHz (1596.000MHz) - 5,83GiB RAM Distribution: Ubuntu 14.04.3 LTS )
(系统信息 MySQL Workbench Community (GPL) for Linux/Unix version 6.2.3 revision 12312 build 2280 (64 bit) 配置目录:/home/arsen/.mysql/workbench 数据目录:/usr/share/mysql-workbench Cairo Version : 1.13.1 操作系统: Linux 3.13.0-76-generic CPU: 4x Intel(R) Core(TM)2 Quad CPU @ 2.40GHz (1596.000MHz) - 5,83GiB RAM 分布:Ubuntu 14.04.3 LTS