注:192.168.1.203机器上装有docker,容器在该机器上
mysql> use mysql;
mysql> update user set authentication_string = password('123456') where user = 'root';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY '123456' WITH GRANT OPTION;
注:创建好库以后需要退出一下workbench再进入时就能看到新建的库
每天努力一点点,微笑哥每天与你同在 QQ:2775147135
posted on 2019-04-03 17:08 阅读( ...) 评论( ...) 收藏