环境是Docker+MySQLmysql
在服务器端开启远程访问 首先进入mysql数据库,而后输入下面两个命令:sql
grant all privileges on *.* to 'root'@'%'; flush privileges;
重启MySQL服务数据库