Mysql Ali cloud server connection is not the problem

1, modify the mysql server permissions

1.1 Login mysql

mysql -u xxx -p xxx

1.2 execute the following command

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '数据库的密码' WITH GRANT OPTION;

1.3 refresh effect immediately, otherwise it does not work

FLUSH PRIVILEGES;

image.png

2、修改阿里云服务的防火墙

Rule 2.1 Add the following figure:

image.png

Guess you like

Origin blog.51cto.com/12831900/2406243