How do I connect to a MySQL database with 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.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to Repair a MySQL Database Through Linux and Windows Command Line?

This article describes how to repair MySQL database tables through Linux and Windows command...

How to Fix MySQL Error "The server quit without updating PID file"?

MySQL server plays a vital role for your Linux Server. It runs all of your website's databases,...

How to Fix Error Forcing close of thread 310 user: 'root' in MySQL?

Problem Statement MySQL server keeps on shutting down. Error Message C:\Program...

Fix - PHPMyAdmin Error You should upgrade to MySQL 5.5.0 or later

Problem statement Recently we upgraded phpMyAdmin version from 4.0.10.12 to 4.5.3.1 in our...

How to increase max_user_connections in Linux VPS?

More often you receive Too many connections error when you attempt to connect MySQL server. This...