26.2. Using MySQL Administrator


MySQL Administrator is not included with MySQL distributions but can be obtained from the MySQL AB Web site. It's available in precompiled form for Windows, Linux, and Mac OS X, or it can be compiled from source.

MySQL Administrator requires a graphical environment such as Windows or the X Window System. On Linux, MySQL Administrator is designed for Gnome, but can be run under KDE if GTK2 is installed. If a MySQL server is running on a host with no graphical environment, you can connect to it remotely by running MySQL Administrator on a client host that does have a graphical environment. Some functionality is available only when MySQL Administrator and the server are run on the same host.

26.2.1. Starting MySQL Administrator

On Windows, the installer creates a desktop icon and an entry in the Start Menu, so you can start MySQL Administrator using either of those. The program itself is located in the installation directory, C:\Program Files\MySQL\MySQL Administrator 1.0, so you can also start MySQL Administrator from the command line by invoking it directly after changing location into that directory:

 C:\> cd "C:\Program Files\MySQL\MySQL Administrator 1.0" C:\Program Files\MySQL\MySQL Administrator 1.0> MySQLAdministrator.exe 

RPM installations on Linux place MySQL Administrator in /usr/bin. Assuming that this directory is in your search path, you can invoke the program as follows:

 shell> mysql-administrator 

For tar file distributions, MySQL Administrator is installed wherever you unpacked the distribution, and the program is located in the bin directory under the installation directory. To invoke the program, change location to that bin directory. For example, if you installed the distribution at /opt/mysql-administrator, start MySQL Administrator like this:

 shell> cd /opt/mysql-administrator/bin shell> ./mysql-administrator 

Mac OS X distributions are disk images that, when mounted, contain a MySQL Administrator program that can be dragged to wherever you want to install it. To launch the program, double-click it in the Finder.

26.2.2. Selecting an Operational Mode

After you start MySQL Administrator, it displays a connection dialog. At that point, you can connect to a server in normal mode or (on Windows) you can enter configure-service mode:

  • To connect to a server, fill in the required connection parameters in the dialog or select from among any connection profiles that may already have been defined. MySQL Administrator will connect to the server, enter normal mode, and display its main window, which provides access to the various administrative capabilities that you can use.

  • To enter configure-service mode, hold down the Control key to cause the Cancel button in the dialog to change to Skip, and then select this button. MySQL Administrator will display its main window, but only the Service Control, Startup Variables, and Server Logs sections are available. Configure-service mode is described in Section 26.4.1, "Service Control."

The main window has a sidebar along the left edge that displays the available sections from which you can select, and a work area to the right of the sidebar. (See Figure 26.1.) Selecting a section in the sidebar causes the work area to display an interface for that section. The work area for some sections has multiple tabs when there are several types of information available.

Figure 26.1. MySQL Administrator main window.


The main window also contains several menus from which you can access additional features. For example, to open additional server connections in normal mode, select New Instance Connection … from the File menu.

The rest of this chapter describes the capabilities provided by MySQL Administrator, with the exception of those that are shared with MySQL Query Browser. The following shared capabilities are described in the chapter devoted to MySQL Query Browser:

  • The capability for creating tables and modifying their structure is discussed in Section 3.4, "The MySQL Table Editor."

  • The Connection dialog is discussed in Section 3.5, "Connection Management."

  • The Options dialog is discussed in Section 3.6, "The Options Dialog."



MySQL 5 Certification Study Guide
MySQL 5.0 Certification Study Guide
ISBN: 0672328127
EAN: 2147483647
Year: 2006
Pages: 312

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net