By Tomer Zaks
Hi,
I saw many Q&As regarding this problem. Here is what I did for troubleshooting:
I saw that the server is listening on the SQL default port: netstat -ntlp | grep 3306 tcp6 0 0 :::3306 :::* LISTEN 3092/mysqld
/etc/mysql/my.cnf was empty
IpTables was empty.
telnet <My IP> 3306 -> resulted in correct manner
I feel a little bit clueless… If someone can help I would be gracious. Also, I would be happy to understand exactly what does this error say, b/c if I try to connect with my MySQL workbench to some random IP I get a different error.
Many Thanks, Tomer.
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!
Had same problem and tried this and it worked;
CREATE USER username@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' ;
flush privileges;
This is confusing indeed. Error 0 means success.
$ perror 0
OS error code 0: Success
Can you add this to your [mysqld] section in my.cnf:
bind-address = 0.0.0.0
Restart MySQL. Can you also post the output of this command from your workstation (not server):
telnet DROP.LET.IP.ADDRESS 3306
Cheers
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.