美文网首页
mysql的root用户无法给普通用户授权问题处理

mysql的root用户无法给普通用户授权问题处理

作者: zgt | 来源:发表于2018-08-21 10:48 被阅读330次

错误描述

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
  • 登陆数据库(切换到linux root用户下面)

    mysql -uroot -p
    
  • 查看mysql数据库权限

    use mysql;
    select user,host,plugin from mysql.user;
    update user set plugin='mysql_native_password' where user='root';
    FLUSH PRIVILEGES;
    exit
    

重新进入即可!

相关文章

网友评论

      本文标题:mysql的root用户无法给普通用户授权问题处理

      本文链接:https://www.haomeiwen.com/subject/iyediftx.html