1.安装mysql docker pull mysql:5.7 docker run -p 3306:3306 -e MYSQL_ROOT_PASSWORD=xxxxx -d mysql:5.7 2.给用户相应的权限 grant all privileges on *.* to root@'%' identified by 'xxxxx' with grant option; # 使其立即生效 flush privileges; 3.阿里云打开安全组