MySQL Workbench drops connection when idle

Go to Edit -> Preferences -> SQL Editor and there you’ll see: DBMS connection keep-alive interval (in seconds): 600 DBMS connection read time out (in seconds): 600 DBMS connection time out (in seconds): 60 The DBMS connection keep-alive interval means how often Workbench sends keep-alive request to the server to keep the connection alive. Since … Read more

MySQL Workbench: Error in query (1064): Syntax error near ‘VISIBLE’ at line 1

The problem here is the difference in syntax across different MySQL server versions. It seems that MySQL Workbench 8.0.12 is auto-generating CREATE UNIQUE INDEX statement for the MySQL server version 8.0. From the MySQL Server 8.0 Docs, the syntax for CREATE INDEX is: CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name [index_type] ON tbl_name (key_part,…) … Read more

MySQL Workbench shows results as BLOB

Background: This problem occurs when the binary string values (BINARY/VARBINARY type) are returned in the results. The binary strings contain the zero bytes and for some reason, apparently security, have not been shown by default. More details about binary strings here. Even in the reported example SELECT INET_NTOA(167773449), the function returns binary string. Check this … Read more

How to copy the whole database to another server database?

Open MySQL Workbench Create the old server’s connection (if you haven’t it) Create the new server’s connection (if you haven’t it) Go to Server Administration and click Manage Import / Export Select old server Select all schemas in Export to Disk tab In options select Export to Self-Contained File, wait until it finished Back to … Read more