Hostwinds Tutorials

Search results for:


Table of Contents


How do I set up a separate server for MySQL in WHM?
How do I know if my remote MySQL server resolves the local IP and hostname?
From the Command Line in Windows:
In Linux
ping [HOSTNAME or IP]

Adding a Secondary MySQL Server

How do I set up a separate server for MySQL in WHM?
How do I know if my remote MySQL server resolves the local IP and hostname?
From the Command Line in Windows:
In Linux
ping [HOSTNAME or IP]

How do I set up a separate server for MySQL in WHM?

You can set up a server to handle MySQL, which can help if your site(s) get a lot of traffic or are running big databases. (See below for important notes)

  1. Install MySQL on the remote MySQL server if it's not already installed
  2. Log in to WHM on the webserver
  3. Go to Home > SQL Services
    1. This can be located quickly by searching for "SQL" in the search bar
  4. Select Manage MySQL® Profiles

  1. Click the Add Profile button

  1. Enter the Profile Name
  2. Select the Configuration Method that you'd like to use
    1. Automatically create a MySQL superuser via SSH
    2. Manually enter an existing MySQL superuser's credentials
      1. Note: This guide uses the Manual settings option
  3. Enter the Host (IP or Hostname)
  4. Enter the MySQL port that is being used on the remote MySQL server
  5. Enter the Username to access the database
  6. Enter the password to access the database
  7. Click Save

  1. With the Profile added, you can validate its settings to ensure that the connection is working.
  2. Once you've confirmed the settings are working, you can Activate the profile.

Important notes:

  • Your MySQL data is not automatically transferred. This has to be done manually.
  • Databases and data from this point on will run from this new server
  • This is not the same as allowing access to a MySQL database from another server
  • It's best to set up a server for each cPanel
  • Make sure the remote server resolves the local IP and hostname before attempting to set it up.

How do I know if my remote MySQL server resolves the local IP and hostname?

Before you start setting up a remote MySQL Server, ensure that you're able to reach the remote server's IP address and HOSTNAME. This test will need to be performed on both the Remote Server (MySQL) and your local server.

From the Command Line in Windows:

c:>ping [HOSTNAME or IP]

(This should return the Hostname if that is working or just the IP address if the Hostname is not working)

In Linux

ping [HOSTNAME or IP]

Written by Hostwinds Team  /  December 13, 2016

Need help? Chat now!