mysql-workbench

Why are queries executed from mysql workbench taking much longer than executing them directly from the mysql cli?

守給你的承諾、 提交于 2019-12-20 02:28:06
问题 I have a query that does multiple joins on several tables and uses a covering index. It seems to run a lot faster when executed directly from the mysql cli instead of from mysql workbench. mysql > some query ... 250 rows in set (0.05 sec) from mysql workbench it takes about ~0.200 sec duration / 0.100 sec fetch Is there a reason beyond latency, authentication and transfer of data why it would be orders of magnitude faster on the console? Does a three-way tcp handshake occur each time a query

2 Foreign Keys referencing the same Primary Key in MySQL

时光总嘲笑我的痴心妄想 提交于 2019-12-19 11:26:56
问题 like so: Table-student: sID | name 1 -----susan 2 -----morgan 3 -----Ian 4 -----james Primary key = sID the other table like so: Table- friends friendsID | personA | personB 1-----------1-----------3 2------------1-----------2 3-------------2-----------3 4-------------3------------4 Where Primary Key is: friendsID, personA, personB Foreign Key = personA, personB which both refer to sID in students table I want a way of querying the friends table in such a way that the personA and personB

Installing MySQL Workbench but File /etc/my.cnf doesn't exist

拥有回忆 提交于 2019-12-19 07:16:05
问题 I managed to download the MySQL DMG archive to my OS (mac OS X). It works if I use the command line. Now, I'm trying to install MySQL Workbench. I've created MySQL Connection but once I'm testing the host machine settings, I get: Checking command 'ps xa | grep "/usr/local/mysql.*/bin/[m]ysqld"' Server detected as running Check if /etc/my.cnf can be accessed Operation failed: File /etc/my.cnf doesn't exist I'm trying to find the file my.cnf and I get: Didis-MacBook:~ Didi$ find . -type f -name

Changing Font in MySQLWorkbench

时光怂恿深爱的人放手 提交于 2019-12-18 13:58:07
问题 I am using MySQLWorkbench 5.2, the newest version as far as I know, but I simply cannot change the font. It is very inconvenient, because the default font is very small and harsh on the eyes. The appearance tab has options for changing the font, but no change can actually be made there, as the field cannot actually be edited. Does anyone know of a way around this? It seems to be a common bug, but I can't find a fix anywhere. 回答1: In the Edit > Preferences... > Appearance > Fonts section of

Exporting query results in MySQL Workbench beyond 1000 records

百般思念 提交于 2019-12-18 13:53:12
问题 I'm trying to save a query result of about 1,000,000 records in MySQL Workbench. When I run the SELECT, only 1000 records shows up (MySQL Workbench's default limit). I know I can change the limit, or remove the limit, but I don't want 1,000,000 records to be loaded into the result panel (which might crash my computer?), but I do want to save the results to a file. Does MySQL Workbench let you save the results of a query directly to a file? Or save the whole result set instead of the 1,000?

Can I connect to a Microsoft SQL Server with MySQL Workbench

六月ゝ 毕业季﹏ 提交于 2019-12-18 12:45:54
问题 Is it possible for me to connect to a MSSQL database server with MySQL Workbench? 回答1: You cannot use MySQL Workbench as a Microsoft SQL Server client. But technically speaking, yes, you can connect to a Microsoft SQL Server database using ODBC if you are using the database migration wizard. Source: https://dev.mysql.com/doc/workbench/en/wb-migration-wizard-connection.html 来源: https://stackoverflow.com/questions/13148374/can-i-connect-to-a-microsoft-sql-server-with-mysql-workbench

Mysql Workbench error 1142 “Error querying security information” on Data Export

大兔子大兔子 提交于 2019-12-18 12:05:15
问题 yesterday I updated my Workbench to the latest version available, the 6.3.6 build 511 CE on Windows 10. Now I'm trying to make a dump of a remote database via the "Data Export" feature, which has always worked. But, as soon as I click the "Start Export" button, I get this error: Unhandled exception: Error querying security information: Error executing 'SELECT * FROM mysql.user WHERE user = ' [username] ' and Host = ' [host] ' ORDER BY User, Host' SELECT command denied to user ' [username] '@'

MySQL Workbench shows results as BLOB

若如初见. 提交于 2019-12-18 11:41:54
问题 I keep finding that MySQL Workbench shows query results as BLOB . e.g: SELECT INET_NTOA(167773449) --> BLOB If I select to 'view value' I can determine the text value is '10.0.5.9' but it's pretty irritating when I SELECT multiple rows and want to glance at the contents. Is there a way around this or is it a limitation of the tool? 回答1: Background: This problem occurs when the binary string values (BINARY/VARBINARY type) are returned in the results. The binary strings contain the zero bytes

MySQL Workbench cannot load mysql.proc

烈酒焚心 提交于 2019-12-18 10:16:54
问题 I am starting to use MySQL Workbench tool especially for data modeling. So, the first I would like to do is reverse engineering of my existing database on web server. But I not able to finish the process, because I alway get this strange error message: Error: Cannot load from mysql.proc. The table is probably corrupted I tried to repair this table but it not help me. So, do you have any experience with this problem and know how to solve it? 回答1: I'm using MySQL version 5.5.9 on MAC. I fixed

How to get ER model of database from server with Workbench

冷暖自知 提交于 2019-12-18 09:59:17
问题 Is there any way to get an ER model of a database from the server that is connected to my MySQL Workbench? 回答1: Go to "Database" Menu option Select the "Reverse Engineer" option. A wizard will be open and it will generate the ER Diagram for you. 回答2: I want to enhance Mr. Kamran Ali's answer with pictorial view. 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 "