I am having a bit of trouble accessing my database remotely from my home pc in mysql workbench.
Steps: Set the bind address to 0.0.0.0 in mysqld.cnf GRANT ALL ON . TO ‘userName’@‘localhost’; GRANT ALL ON . TO ‘userName’@‘%’; flush privileges; sudo /etc/init.d/mysql restart
In the db my user appears with a % under host meaning they have remote access but I still get access denied for ‘userName’@‘localhost’ in workbench.
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!
Hello,
In WorkBench, you would need to specify the IP address of your droplet instead of localhost. Also note that as you’ve allowed remote MySQL access to your droplet, you should not use an SSH tunnel for WorkBench.
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.