Report this

What is the reason for this report?

How to connect MYSQL remotely

Posted on July 10, 2018

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.



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!

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.