Report this

What is the reason for this report?

How to connect to MySQL remotely

Posted on October 22, 2015

I tried to connect to MySQL remotely (I need to go without SSH).

Commented bind-address with #.

Getting MySQL said: Access denied for user ‘root’@‘myremoteip’ (using password: YES)

How can I connect? Searched internet. Found that I should run ```GRANT ALL PRIVILEGES ON . TO ‘root’@‘%’ IDENTIFIED BY ‘PASSWORD’ with grant option; FLUSH PRIVILEGES;

it is not working for me. How can I achieve that?


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.

the tutorials of digitalocean for remote connection to mysql do not work, because they do not want to connect, better consult the tutorials of linode.

@simPod - The URI below provides a more in-depth and complete guide on how to setup a remote MySQL server. Ideally, you want to bind to an IP (as shown in the guide) – preferably the private IP provided with your Droplet, and then setup restrictions to limit access to only IP’s that you’ve white-listed.

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql

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.