Question

How to connect to MySQL remotely

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?
Subscribe
Share

Submit an 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