Centos8 MySQL8.0.16修改 test 用户密码时遇到如下错误:
ERROR 1227 (42000): Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation

解决方法

vim mysql.service.cnf我的是yum安装的,所以你们编译安装的话vim my.cnf
在[mysqld]段中加入

skip-grant-tables

ERROR 1227 (42000): Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation
重启
service mysqld restart
登录mysql
mysql -u root -p
先刷新权限:
flush privileges;
再进行修改或者删除操作
use mysql;
alter USER 'test'@'192.168.110.%' IDENTIFIED BY '要修改的密码';

drop user test@'192.168.110.%';
如图:
ERROR 1227 (42000): Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation

相关文章:

  • 2022-02-02
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2021-06-09
  • 2021-06-25
  • 2021-08-18
猜你喜欢
  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案