How to connect MYSQL remotely

July 10, 2018 87 views
MySQL Ubuntu 16.04

Hello,

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: https://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html

Kind Regards,
Jarland

Have another answer? Share your knowledge.