How to use MySQL client applications
This article describes how to use MySQL client applications to access and manage your MySQL databases.
MySQL client applications
MySQL provides several GUI (graphical user interface) client applications that you can use:
- MySQL Workbench: This integrated tools environment enables you to manage databases, run queries, and much more. It replaces the older MySQL GUI Tools application bundle.
- MySQL GUI Tools: This application bundle includes the MySQL Administrator and MySQL Query Browser. MySQL Administrator has graphical traffic and health-monitoring features and optimization tools. You can also complete database backups. MySQL Query Browser is a graphical database browser and SQL query builder. You can view data, add and drop columns and rows, change values, and more.
Both of these application suites are free to download and use. There are versions for RedHat Linux, Mac OS X, Linux, and other operating systems.
MySQL Workbench
MySQL Workbench enables you to quickly and securely connect to your MySQL databases using an SSH tunnel. To do this, follow these steps:
- Start MySQL Workbench.
- From the workspace page, click New Connection. The Setup New Connection dialog appears.
- In the Connection Name text box, type a name for the connection.
- In the Connection Method list box, select Standard (TCP/IP) over SSH.
- In the SSH Hostname text box, type example.com:7822, where example.com represents your domain name.
- In the SSH Username text box, type your Webhost.Berlin (cPanel) account username.
- In the MySQL Hostname text box, type localhost.
- Confirm that the MySQL Server Port text box is set to 3306.
- In the Username text box, type one of the following usernames:
- Your Webhost.Berlin (cPanel) account username: With this username, you can access all of the MySQL databases on your hosting account.
- A MySQL database username you created in cPanel: With this username, you can access all of the MySQL databases for which the specified user has been granted privileges.
- Click Test Connection. The Open SSH Tunnel dialog box appears.
In the Password text box, type your Webhost.Berlin (cPanel) account password.
To have MySQL Workbench remember your password, select the Save password in vault check box.
- Click
. The Connect to MySQL Server dialog box appears. In the Password text box, type the password for the username you specified in step 9.
To have MySQL Workbench remember your password, select the Save password in vault check box.
- Click
. If the connection is successful, you receive a Connection parameters are correct message. If you do not receive this message, check the values you specified in steps 3 to 9, and then try again. - On the Setup New Connection dialog box, click
. - You can now run queries, create tables, and more. For example, from the workspace page, under Open Connection to Start Querying, double-click the connection name you specified in step 3. MySQL Workbench connects to your account and displays your databases.
To use this application, you must first do one (or both) of the following:
- Set up an SSH tunnel for the MySQL connection. For more information about how to do this, please see this article.
- Enable remote MySQL access in cPanel. For information about how to do this, please see this article.
To connect to your MySQL databases using MySQL GUI Tools, follow these steps:
- Start MySQL Adminstrator or MySQL Browser.
- In the Server Hostname text box, type one of the following:
- If you are using an SSH tunnel, type 127.0.0.1.
- If you are using a direct connection to the server, type your domain name.
In the Port text box, type 3306.
If you are using a different port on your local computer for port forwarding, type that port number instead.
In the Username text box, type one of the following usernames:
- Your Webhost.Berlin (cPanel) account username: With this username, you can access all of the MySQL databases on your hosting account.
- A MySQL database username you created in cPanel: With this username, you can access all of the MySQL databases for which the specified user has been granted privileges.
- In the Password text box, type the password for the username you specified in step 4.
- Click Connect.
Related Articles
- Remote MySQL connections
There are two options for connecting to MySQL databases remotely. Learn about them and how to set them up here.
- Remote MySQL access
You can use cPanel to configure remote access to your MySQL databases. With remote access enabled, external hosts can access your MySQL databases.
- Connecting to MySQL from the command line
You use the mysql program to connect directly to MySQL from the command line. Learn how here.