docker使用root用户访问宿主机数据库报错问题解决
进入宿主机命令行
通过mysql用户名root和密码进入数据库
mysql -uroot -p555555555555
执行命令
按以下步骤执行
grant all privileges on *.* to root@'%' identified by '555555555555' with grant option;
flush privileges;
exit;
通过mysql用户名root和密码进入数据库
mysql -uroot -p555555555555
按以下步骤执行
grant all privileges on *.* to root@'%' identified by '555555555555' with grant option;
flush privileges;
exit;