Skip to content
Cheat sheet · MySQL Workbench

MySQL Workbench 8.0 Keyboard Shortcuts Cheat Sheet

A printable list of the MySQL Workbench keyboard shortcuts that Oracle documents, grouped by task, with the Windows and Linux key next to the macOS key. The list comes from the MySQL Workbench Manual, which covers the 8.0 series; Oracle has not published a shortcut list for the new Workbench 26.7 yet.

Steps and facts checked 8 October 2026 against the vendor's official documentation. Versions covered: MySQL Workbench 8.0 series up to 8.0.47 (documented shortcuts); MySQL Workbench 26.7.0 (no published list). Next review due April 2027. Menus, shortcuts and prices change between releases; check the vendor's documentation for your version.
Short answer
  • The most used MySQL Workbench shortcuts: Ctrl+Enter is Execute statement, Ctrl+Shift+Enter is Execute statements, Ctrl+B beautifies SQL and Ctrl+Space opens auto-complete. On macOS use Cmd instead of Ctrl.
  • Oracle's manual writes shortcuts with "Modifier", which means Command on macOS and Control on Windows and Linux; Alt is Option on macOS.
  • The documented list belongs to Workbench 8.0. Workbench 26.7 is a rebuilt application, and Oracle has not published its shortcuts, so some keys may differ.
How we know: Research-based: every shortcut below is copied from Appendix B (Keyboard Shortcuts) of the MySQL Workbench Manual, which documents versions 8.0 through 8.0.47, and converted from Oracle's "Modifier" notation to Ctrl (Windows, Linux) and Cmd (macOS) as the appendix defines it. The status of Workbench 26.7 was checked against Oracle's product page and MySQL blog on 8 October 2026. We have not run Workbench to confirm the keys, so check the menus of your version.

MySQL Workbench shortcuts for running and editing SQL

These are the MySQL Workbench shortcuts you use most in the SQL editor. "Where" is the context the manual gives: SQL Editor, Model, EER Diagram or All.

SQL editor shortcuts (Query and Edit menus)
ActionWindows / LinuxmacOSWhere
Execute statementCtrl+EnterCmd+ReturnSQL Editor
Execute statementsCtrl+Shift+EnterCmd+Shift+ReturnSQL Editor
New query tabCtrl+TCmd+TSQL Editor
Beautify queryCtrl+BCmd+BSQL Editor
Comment or uncomment lines of SQLCtrl+/Cmd+/SQL Editor
Auto-complete SQLCtrl+SpaceCmd+SpaceSQL Editor
Open SQL scriptCtrl+Shift+OCmd+Shift+OSQL Editor
Save scriptCtrl+SCmd+SSQL Editor
Save script asCtrl+Shift+SCmd+Shift+SSQL Editor
Query database (open a connection)Ctrl+UCmd+UAll

Edit, find and replace

The manual lists Redo as Modifier+Y, with Modifier+Shift+Z for macOS. Undo and Redo are documented for the model and diagram views; the SQL editor's own undo is not listed in the appendix.

Edit menu shortcuts
ActionWindows / LinuxmacOSWhere
UndoCtrl+ZCmd+ZModel, EER Diagram
RedoCtrl+YCmd+Shift+ZModel, EER Diagram
CutCtrl+XCmd+XAll
CopyCtrl+CCmd+CAll
PasteCtrl+VCmd+VAll
DeleteCtrl+DeleteCmd+BackspaceAll
Select allCtrl+ACmd+AEER Diagram
FindCtrl+FCmd+FAll
Find advancedCtrl+Alt+FCmd+Option+FAll
Find nextF3F3All
Find previousShift+F3Shift+F3All
Search and replaceCtrl+Shift+FCmd+Shift+FAll
Edit selected objectCtrl+ECmd+EModel, EER Diagram
Edit selected in new windowCtrl+Shift+ECmd+Shift+EModel, EER Diagram

Files, tabs, panels and help

File, View, Scripting and Help menu shortcuts
ActionWindows / LinuxmacOSWhere
New modelCtrl+NCmd+NAll
Open modelCtrl+OCmd+OAll
Save modelCtrl+SCmd+SModel
Save model asCtrl+Shift+SCmd+Shift+SModel
Close tabCtrl+W (also Ctrl+F4 on Windows)Cmd+WAll
PrintCtrl+PCmd+PEER Diagram only
ExitCtrl+QCmd+QAll
Output windowCtrl+F2Cmd+Option+2All
Scripting shellCtrl+F3Cmd+Option+3All
Run Workbench script fileCtrl+Shift+RCmd+Shift+RAll
Help indexF1Cmd+Option+?All

Modelling, forward and reverse engineering

Some keys are reused in different contexts: Ctrl+T is New Tab in the SQL editor and Add Diagram in a model, and Ctrl+Shift+F is Search and Replace in general but Bring to Front on a diagram. The manual marks catalog validation as a Commercial-edition feature, so the Validate shortcuts may do nothing in the Community edition. Synchronize Model (Ctrl+Y) and Redo share a key in the manual's tables.

Model, Database and Arrange menu shortcuts
ActionWindows / LinuxmacOSWhere
Reverse engineerCtrl+RCmd+RModel, EER Diagram
Forward engineerCtrl+GCmd+GModel, EER Diagram
Synchronize modelCtrl+YCmd+YModel, EER Diagram
Forward engineer SQL CREATE scriptCtrl+Shift+GCmd+Shift+GModel
Forward engineer SQL ALTER scriptCtrl+Alt+YCmd+Option+YModel
Synchronize with SQL CREATE scriptCtrl+Shift+YCmd+Shift+YModel
Add diagramCtrl+TCmd+TModel, EER Diagram
Validate allCtrl+Alt+VCmd+Option+VModel, EER Diagram
Validate all (MySQL)Ctrl+Alt+BCmd+Option+BModel, EER Diagram
Model optionsNot listedCmd+Option+,Model, EER Diagram
Bring to frontCtrl+Shift+FCmd+Shift+FEER Diagram
Send to backCtrl+Shift+BCmd+Shift+BEER Diagram
Set marker 1 to 9Ctrl+Shift+1 ... 9Cmd+Shift+1 ... 9EER Diagram
Go to marker 1 to 9Ctrl+1 ... 9Cmd+1 ... 9EER Diagram

EER diagram tool keys

In the EER diagram view, single keys pick a tool from the vertical toolbar. They are the same on every platform.

EER diagram mode shortcuts (all platforms)
ToolKey
Selection toolEscape
Hand toolH
Delete toolD
Layer toolL
Note toolN
Image toolI
Table toolT
View toolV
Routine group toolG
Non-identifying relationship 1:11
Non-identifying relationship 1:n2
Identifying relationship 1:13
Identifying relationship 1:n4
Identifying relationship n:m5
Relationship using existing columns6

Shortcuts in MySQL Workbench 26.7

MySQL Workbench 26.7 is a new application built on MySQL Shell with an Electron interface, and Oracle's product page says it replaces the earlier releases. The manual and its shortcut appendix still describe the 8.0 series, and Oracle had not published a 26.7 shortcut list on 8 October 2026. The modelling and EER shortcuts above apply only if your version has those features; see our MySQL Workbench review for what 26.7 includes. In 26.7, Oracle's blog points to the + button at the top of the editor for creating a new SQL Script or Notebook.

Frequently asked questions

What is the shortcut to run a query in MySQL Workbench?

The manual lists Execute statement as Ctrl+Enter (Cmd+Return on macOS) and Execute statements as Ctrl+Shift+Enter (Cmd+Shift+Return on macOS).

How do I format SQL in MySQL Workbench?

Beautify Query is Ctrl+B (Cmd+B on macOS) in the SQL editor of Workbench 8.0. Workbench 26.7 has an SQL Formatter, according to Oracle; its shortcut is not documented.

How do I comment out lines in MySQL Workbench?

Select the lines and press Ctrl+/ (Cmd+/ on macOS) to comment or uncomment them.

What does "Modifier" mean in the MySQL Workbench shortcut list?

Oracle's manual uses Modifier for the platform key: Command on macOS and Control on Windows and Linux. On macOS, Alt means Option.

Can I change MySQL Workbench keyboard shortcuts?

The manual's shortcut appendix does not describe a way to remap keys, and Oracle has not documented one for 26.7.

Sources

Checked 8 October 2026.

How we research tool guides: our editorial method. CodeWithSQL earns nothing from the vendors mentioned.

Still choosing a SQL client?

Read the full reviews, or compare tools side by side.