ssh root@192.168.111.23连接主机名 grant all on *.* to ‘root’@’%’ identified by ‘ok’; 给虚拟机的mysql赋权 flush privileges; 刷新权限