How do I connect MySQL database via MySQL Workbench?

MySQL Workbench is the excellent MySQL client tool used to connect to remote MySQL database from your personal computer. Before you connect to MySQL server, first you will have to allow the connection for an IP address will connect from. Our Linux Shared Hosting servers do not accept the remote MySQL connections so this article is only applicable to VPS and dedicated server users.

For Linux VPS customers check out an article to allow remote connections to MySQL server via WHM. Windows VPS customers should refer to this article to allow remote connections to MySQL server. Once you allow remote connections to your MySQL server, follow these steps.

 

  1. Open MySQL Workbench. Click on New Connection link located at the bottom left. This will open Setup a New Connection dialogue box.

    New Connection

  2. In this dialogue box, type database credentials as follows.

    • Connection Name: Name the connection as you wish.
    • Connection Method: Standard (TCP/IP).
    • Hostname: MySQL server IP address.
    • Port: 3306
    • Username: database username
    • Default Schema: Keep it blank.

      Setup New Connection

  3. Click on Test Connection.
  4. Type your password and check Save Password in Vault check box. Click OK.
  5. If connection details are correct, MySQL Workbench will give message Connection parameters are correct. Click OK.
  6. Click OK to accept the connection settings.
  7. Under SQL Development section you will see newly created connection listed. Click on connection to connect.

Related Articles

How to enable the slow query log in MySQL?

Slow MySQL queries can significantly lower down the performance of your web application and eat...

How to back up MySQL databases using AutoMySQLBackup?

What is AutoMySQLBackup? AutoMySQLBackup is a script that allows you to schedule the automatic...

How to connect MySQL using Python?

There are several ways to use python to connect with the MySQL database. In this article, we will...

How to take a Backup and Restore of MySQL Databases via Command Line?

mysqldump is an easy and quick tool to create a backup of MySQL databases. It creates a dump file...

How to Optimize MySQL Database Using phpMyAdmin?

Database always grows in size due to high traffic or a large amount of content. This will lead to...

  • 0 Users Found This Useful

Was this answer helpful?