The procedure for launching MySQL Workbench depends on the platform. Generally, there are two ways to launch MySQL Workbench: either from the command line or from the graphical user interface of the host operating system. Using the command-line launching facility is useful when you want to customize some aspects of the way MySQL Workbench operates. The following sections describe how to launch MySQL Workbench for each of the supported platforms.
In addition to platform-specific command-line options, MySQL Workbench has the following command-line options:
On Microsoft Windows, the command-line options contain one
leading dash instead of two. For example, use
-log-level for Microsoft Windows and
--log-level for Linux and Mac OS X.
--log-level level:
Controls the verbosity level for logging output from
Workbench.
With increasingly levels of verbosity, the valid values for
level are: error, warning, info, debug1,
debug2, and debug3.
The location of the generated log files, such as
wb.log, are as follows:
| Platform | Default location |
|---|---|
| Linux | ~/.mysql/workbench/log/ |
| Mac OS X | ~/Library/Application Support/Workbench/log/ |
| Microsoft Windows | C:\Users\ |
--admin :
Load the server instance specified.
instance
--query
: Load the
connection specified.
connection
--model :
Load the model specified.
modelfile
--script :
Run the script specified.
script
--run : Run
the code snippet specified.
code
--quit-when-done: Quits MySQL Workbench after
--script or --run finishes.

User Comments
Add your own comment.