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;
2、修改阿里云服务的防火墙
Rule 2.1 Add the following figure: