How can I execute any statement in MySQL Workbench using shortcut? Now I have to press buttom (yellow lightning). Of course I have read this: http://dev.mysql.com/doc/workbench/
Execute Current Statement -> Ctrl+Enter
Open:
C:\Program Files\MySQL\MySQL Workbench 6.3 CE\data\main_menu.xml
If you search for Execute (All or Selection) and for Execute Current Statement, you'll also identify (based on what you see in the screenshot above) the meaning of Modifier and Return:
Here you can change the default mappings. Being familiar with other tools like SQuirreL SQL and pgAdmin, I always prefer to run only the selected query using Ctrl+Enter or F5, so I change the following in the main_menu.xml:
com.mysql.wb.menu.query
Execute (All or Selection)
query.execute
builtin:query.execute
action
Modifier+Return
...
com.mysql.wb.menu.query
Execute Current Statement
query.execute_current_statement
builtin:query.execute_current_statement
action
Modifier+Shift+Return
windows
com.mysql.wb.menu.query
Execute (All or Selection)
query.execute
builtin:query.execute
action
F5
Save the file and restart MySQL Workbench to see the changes.