Use the menu to make changes to objects. The text description for several of the menu items changes to reflect the name of the currently selected object.
This menu has items for cutting, copying, and pasting. These actions can also be performed using the Control+X, Control+C, and Control+V key combinations. Undo a deletion using the item. The Control+Z key combination can also be used to undo an operation. It is also possible to carry out a operation using either the menu item, or the key combination Control+Y.
Also find a menu item for removing the currently selected object. The keyboard command for this action is Control+Delete. You can also right-click an object and choose the delete option from the pop-up menu.
The menu item behaves differently depending upon circumstances. For example, if an EER Diagram is active and a table on the canvas is the currently selected object, a dialog box may open asking whether you want to remove the table from the canvas only or from the database as well. For information about setting the default behavior when deleting from an EER Diagram, see Section 5.4.5, “The Model Tab”.
If the MySQL Model page is active, the
selected object is deleted from the catalog and there will be
no confirmation dialog box.
Choose to edit the currently selected object. You can also perform edits in a new window by selecting . The keyboard shortcuts for and are Control+E and Control+Shift+E, respectively.
The item has the following submenus:
(Keyboard shortcut, Control+A): Selects all the objects on the active EER diagram.
(Objects of the same type): Finds objects similar to the currently selected object.
: Finds all the objects connected to the currently selected object.
These menu items are active only when an EER Diagram tab is selected. The and the menu items are disabled if no object is currently selected on an EER diagram.
When multiple objects have been selected using one of these menu items, you can navigate between selected items by choosing the or menu item.
Selecting objects changes some of the menu items. If only one object is selected, that object's name appears after the , and menu items. If more than one object is selected, these menu items show the number of objects selected.
Each MySQL Workbench window includes search functionality. The panel with enabled is shown below:
The Find dialogue options are described below:
(default) or : Search by matching a string, or a PCRE regular expression.
: A case-insensitive search. Works with both the and search methods. Enabled by default.
: If enabled, only whole strings are matched. For example, a search for "home" would not match "home_id". Disabled by default.
: The search will wrap around to the beginning of the document, as otherwise it will only search from the cursor position to the end of the document. Enabled by default.
And the arrows jump to the discovered search terms, and behave according to the option.
The Standard Edition of MySQL Workbench includes a more advanced Find facility:
You can search the following locations:
Entire Model: Searches the entire model.
Current View: Searches the current view only. This may be
the MySQL Model page.
All Views: Searches the MySQL Model Page
and all EER diagrams.
Database Objects: Searches database objects only.
Selected Figures: Searches the currently selected objects. This feature works only for EER diagrams.
Enter the text you wish to search for in the Find Text list. You may also select any or all of the following check boxes:
Match Case
Whole Word
Use Regular Expression
Search in Comments
Search in SQL for Views, SPs etc.
Any text you enter into the Find Text list is retained for the duration of your session. Use the or buttons to find occurrences of your search criterion.
Clicking the button opens a Find Results window anchored at the bottom of the application. If you wish, you may undock this window as you would any other.
Use this window to navigate to objects. For example,
double-clicking the Description of an object
located on an EER diagram navigates to the specific diagram and
selects the object. Notice that the properties of the object are
displayed in the Properties palette.
The Find dialog window can also be opened
using the Control+F key combination. Use
Control+G to find the next occurrence and
Control+Shift+G to find a previous occurrence.
Close the Find dialog window by clicking the
in the top right corner or by pressing
the Esc key.
This menu item enables you to set global preferences for the MySQL Workbench application.
For further information, see Section 5.4, “Workbench Preferences”.