Question

How to connect MYSQL remotely

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.


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

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