mysql关于访问权限以及root密码修改

root密码修改:
mysql> use mysql;
mysql> UPDATE user SET Password = PASSWORD('newpass') WHERE user = 'root';
mysql> FLUSH PRIVILEGES;


问题:Access denied for user 'root'@'192.168.46.161' to database 'db3'
mysql> grant all on db3.* to 'root'@'%' identified by '123456' with grant option;
musql> FLUSH PRIVILEGES;;

posted @ 2018-09-13 11:49  一心行走  阅读(299)  评论(0编辑  收藏  举报