Mysql opens remote service

Start the remote service:

Login to mysql:

/ / Give the root user all permissions, the remote login password is 123456

grant all privileges on *.* to 'root' @'%' identified by '123456';
flush privileges;

Set up Linux firewall:

Linux firewall blocks port 3306 by default

/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
/etc/rc.d/init.d/iptables save

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325100362&siteId=291194637