The Sidebar contains several panels. These are:
Connection Information Panel
Object Browser
Each of these is described in more detail in the following sections.
This section provides a summary of the current connection to the server.
The Object Browser contains a drop down listbox and a schemata explorer control.
Default Schema Listbox
The drop down listbox lists the schema that are available on the currently connected server. It is possible to select a schema to become the currently active schema using this facility.
This selector executes a USE
statement. Once set,
subsequent statements without schema qualifiers will be
executed against this default schema. Note that this will only
be set for the query session. If you wish to set a default
schema for multiple MySQL Workbench sessions, you will need to set
the default schema for the stored connection. To do this from
the Home screen click Manage Connections,
then in the Manage DB Connection dialog
set the desired default schema on the
Parameters tab.
DB
Schemata Explorer
This area enables you to explore the schemata available on the currently connected server.
A useful feature that was introduced in MySQL Workbench 5.2.9 is the ability to rapidly enter the names of columns, tables and views into the SQL Statement area. Double-clicking views, tables, and column names in the schemata explorer will insert the corresponding name into the SQL Query area. This reduces typing significantly when entering SQL statements containing several tables, columns or views.
The Object Browser also features a context menu which can be displayed by right-clicking, for example, a table. Right-clicking a table would display the following menu items:
Name (short): Copies the table name to the clipboard.
Name (long): Copies the table name to the clipboard in the form
`schema`.`table`
.Column Names: Copies the column names to the clipboard in the form
`table`.`column1`, `table`.`column2`,...
.Select All Statement: Copies a SELECT all columns statement to the clipboard in the form:
SELECT `table`.`column1`, `table`.`column2`, ... FROM `schema`.`table`;
Insert Statement: Copies an INSERT all columns statement to the clipboard.
Update Statement: Copies an UPDATE all columns statement to the clipboard.
Delete Statement: Copies a DELETE statement to the clipboard in the form
DELETE FROM `world`.`country` WHERE <where_condition>;
.
Right-clicking an empty area inside the object browser displays the following menu options: