Difference between revisions of "The MySQL Administrator Tool"

From Techotopia
Jump to: navigation, search
(Connected to the Database Server)
(Connecting to the Database Server)
Line 32: Line 32:
  
 
[[image:mysql_server_info.jpg]]
 
[[image:mysql_server_info.jpg]]
 +
 +
If the database server is running on a remote host it is possible the connection will fail with a message similar to the following:
 +
 +
<pre>
 +
Could not connect to the specified instance.
 +
 +
MySQL Error Number 1045
 +
Access denied for user 'username'@'192.168.2.11'(using passowrd: YES)
 +
</pre>
 +
 +
The reason for this is that the specified user has not be provisioned to access the database server from a remote system. This problem can be resolved on the server using the MySQL Administrator. Simply launch the MySQL Administrator tool on the system hosting the database server, select the ''User Administration'' option and select the required user from the list of users in the bottom left hand corner of the window. Once selected, click with the right mouse button on the user name and select ''Add Host''. In the resulting ''Add Host'' dialog add the host name or IP address of the remote host to which you wish to allow connections and click on ''OK''. Once the user has the appropriate privileges to connect from the specified host it should be possible to connect the MySQL Administrator client to the database server.

Revision as of 19:57, 26 September 2007

The MySQL Administrator is a powerful graphical client tool designed to ease the administration and monitoring of the MySQL database server. Once installed, the MySQL Administrator connects to the specified database server and allows tasks such as adding users, monitoring the server performance and server connections and the backup and restore of databases to be performed quickly and easily.

Getting and Installing MySQL Administrator

The MySQL Administrator is not supplied with the basic MySQL installation and must be downloaded and installed separately. Both pre-built versions of the tool for Windows, Linux and Mac OS and the source code for the this tool can be obtained from:

http://dev.mysql.com/downloads

The Windows version of the GUI tools are supplied as an installer executable. To perform the installation, simply launch the installer once the download is complete.

The Linux version of the tools can be downloaded using RPM (note that the filenames may change for later releases or different Linux versions of the software):

su -
rpm -ihv mysql-gui-tools-5.0r12-1rhel4.i386.rpm
mysql-administrator-5.0r12-1rhel4.i386.rpm

On Windows, the MySQL Administrator can be launched from the Desktop Start menu. On Linux, the tool is launched as follows:

mysql-administrator

Connecting to the Database Server

Once MySQL Administrator starts, the login screen will appear as follows:

Mysql admin login.jpg

Enter the IP address or the name of the host on which the database server is running together with the database user login name and password and click connect. The MySQL Administrator should connect to the designated database server and display the "Server Information" screen:

Mysql server info.jpg

If the database server is running on a remote host it is possible the connection will fail with a message similar to the following:

Could not connect to the specified instance.

MySQL Error Number 1045
Access denied for user 'username'@'192.168.2.11'(using passowrd: YES)

The reason for this is that the specified user has not be provisioned to access the database server from a remote system. This problem can be resolved on the server using the MySQL Administrator. Simply launch the MySQL Administrator tool on the system hosting the database server, select the User Administration option and select the required user from the list of users in the bottom left hand corner of the window. Once selected, click with the right mouse button on the user name and select Add Host. In the resulting Add Host dialog add the host name or IP address of the remote host to which you wish to allow connections and click on OK. Once the user has the appropriate privileges to connect from the specified host it should be possible to connect the MySQL Administrator client to the database server.