您的位置:首页 > 博客中心 > 数据库 >

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

时间:2022-03-15 10:47

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;;

本类排行

今日推荐

热门手游