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!
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!