Mysql 10060 Login abnormal solutions

 

Environment: ubuntu16.04
databases: mysql 5.7

My problem with the remote Navicat Premium connections are not
such problems are generally three situations:
1.mysql configuration file bind-address = 127.0.0.1 no comments or delete
sudo vi /etc/mysql/mysql.conf.d /mysqld.cnf find your mysql configuration file for editing
the bind-address = 127.0.0.1 or modified to comment out-address = 0.0.0.0 the bind
2.mysql permissions problem
login to your MySQL database
mysql -u root -p
use mysql
modify the mysql database permissions% means that all machines can access
GRANT ALL pRIVILEGES ON  .  the TO 'root' @ '%' the WITH GRANT OPTION;
make your changes take effect.
PRIVILEGES FLUSH;
3. firewall port issue
sudo / sbin / iptables -I INPUT -p tcp --dport 3306 -j ACCEPT open port
service iptables save to save the configuration

My third question, the problem is solved.

Guess you like

Origin www.cnblogs.com/hanzeng1993/p/11265540.html