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?

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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