How to connect MYSQL remotely

Posted July 10, 2018 30.8k views
MySQLUbuntu 16.04


I have a dedicated server with namecheap with root access.

I created a droplet on Digital Ocean.

Create user via serverpilot.

Upload the required files on the Droplet.

Enter the DB details of namecheap server on the DB file of Digital Ocean.

Add the Digital Ocean IP address on WHM and cpanel

Now still not able to connect the namecheap DB

Hope I explained.

Can someone please guide me how to resolve this issue.

Thanks in advance.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello friend!

Two things need to happen in order to connect remotely to MySQL:

  1. MySQL needs to be listening on the public interface
  2. Your MySQL user needs to be configured to a remote setting (ex. user@IP)

This guide looks like it may be perfect for the need:

Kind Regards,