mysql-workbench

How do I generate a SQL script from my diagram in MySQL Workbench?

喜你入骨 提交于 2019-12-03 04:13:56
I've created an EER diagram with tables, foreign keys, etc in MySQL Workbench and now I want to generate a ".sql" script that will create this database. How do I do that? Try: File->Export->Forward Engineer SQL CREATE Script 来源: https://stackoverflow.com/questions/18088360/how-do-i-generate-a-sql-script-from-my-diagram-in-mysql-workbench

How to view table contents in Mysql Workbench GUI?

淺唱寂寞╮ 提交于 2019-12-03 04:09:01
How can I view table contents in Mysql workbench GUI? I mean, not from command line. Open a connection to your server first (SQL IDE) from the home screen. Then use the context menu in the schema tree to run a query that simply selects rows from the selected table. The LIMIT attached to that is to avoid reading too many rows by accident. This limit can be switched off (or adjusted) in the preferences dialog. This quick way to select rows is however not very flexible. Normally you would run a query (File / New Query Tab) in the editor with additional conditions, like a sort order: Inside the

Using mysqldump to format one insert per line?

大城市里の小女人 提交于 2019-12-03 04:04:37
问题 This has been asked a few times but I cannot find a resolution to my problem. Basically when using mysqldump, which is the built in tool for the MySQL Workbench administration tool, when I dump a database using extended inserts, I get massive long lines of data. I understand why it does this, as it speeds inserts by inserting the data as one command (especially on InnoDB), but the formatting makes it REALLY difficult to actually look at the data in a dump file, or compare two files with a

MySQL Workbench not displaying query results

被刻印的时光 ゝ 提交于 2019-12-03 04:04:22
问题 When I query a table in MySQL Workbench, no results are shown, the result section is just blank, no grid or anything. However if I export the data, it is all there. Everything worked fine until a couple days ago. Query settings: Max Length = 65536 Continue on SQL Script Error = true "Safe Updates = true Leave autocommit mode enabled = true Progress status update interval = 500 Default algorithm for ALTER table = Default Default lock for ALTER table = Default Limit Rows = true Limit Rows Count

mysql duration and fetch time

只愿长相守 提交于 2019-12-03 04:00:46
问题 I am using MySQL workbench - What is the difference between duration and fetch times when a query is run? Also is there a way I can enable the microsecond option in MySQL? 回答1: Fetch time - measures how long transferring fetched results take, which has nothing to do with query execution. I would not consider it as sql query debugging/optimization option since fetch time depends on network connection, which itself does not have anything to do with query optimization. If fetch time is

MySQL Workbench EER Diagramm - how to change storage engine?

送分小仙女□ 提交于 2019-12-03 03:38:19
问题 I use MySQL Workbench 5.2.38. and I have made an EER Diagram. But on export I got surprised with InnoDB as defined storage engine. Altering the table afterwards is not an option because I do not have an InnoDB engine. ERROR 1286 (42000): Unknown storage engine 'InnoDB' So, I have changed the Default Engine via Edit-> Preferences -> Model: MySQL to MyISAM but on export there is still InnoDB in use?! I am completely unable to find the option to change the storage engine in table editor. Can

MySQL Compatibility with MacOS Sierra

天大地大妈咪最大 提交于 2019-12-03 03:05:11
问题 Does anybody know of any compatibility issues or quirks with MySQL Community Server/Workbench on macOS Sierra? I recently did an installation on a Mac that had never held MySQL before and it doesn't seem to be working correctly. (Now maybe I just set it up wrong, but the since the installer offers no advanced options that doesn't seem to be the case.) I can create schemas and tables, but when I go to actually query the table nothing happens. The activity indicator spins endlessly. I took a

MySQL Workbench - How to synchronize the EER Diagram

喜夏-厌秋 提交于 2019-12-03 02:37:11
问题 I am creating a visual representation of my existing database with MySQL Workbench and I am able to synchronize the models with the "Database -> Synchronize Model..." menu. However, every time I synchronize (update) my model, I have to recreate the EER Diagram and rearrange all the tables. Is there a way to update or synchronize the EER Diagram as well? Thanks. 回答1: Database > Synchronize Model... Choose Stored Connection Select the Schemata Choose which to update: Model or Source (in your

MySQL workbench table data import wizard extremely slow

☆樱花仙子☆ 提交于 2019-12-03 01:28:01
I need to import a csv file with 20 million rows and 2 columns into a database, but when I try to do this with MySQL Workbench's data import wizard it is extremely slow, probably is going to take 1 month to finish, looking at the progress bar. There has to be some faster way to do this, I hope. Drew Always use Load Data Infile as a first attempt for huge sets of data. Mysql Manual page on Load Data Infile . Wrote up several answers for this question, but for a peer comparison, see this guy's question and my Answer and his time comparisons of Workbench vs Load Data Infile. This is an

Export Data from mysql Workbench 6.0

我的梦境 提交于 2019-12-03 00:06:57
问题 I'm trying to export my database, using MySQL Workbench 6.0 on Windows, to send to my db instance in Amazon RDS, but i'm getting this error: Operation failed with exitcode 7 11:34:40 Dumping clubbin (taxicompanies) Running: "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqldump.exe" -defaults-extra- file="c:\users\selene\appdata\local\temp\tmp6o0hno.cnf" --max_allowed_packet=1G --delayed- insert=FALSE --host=localhost --user=root --port=3306 --default-character-set=utf8 "clubbin"