How to connect MYSQL remotely

July 10, 2018 18.7k views
MySQL Ubuntu 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.

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,

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!