Mysql8报错:ERROR 1227 (42000): Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation

Mysql8 提示:ERROR 1227 (42000): Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation

mysql>
原因:
MySQL8版本中新增了一个system_user帐户类型,由于root用户没有SYSTEM_USER权限,导致错误出现。
为root添加权限:
grant system_user on *.* to 'root';

flush privileges;

posted @ 2020-11-30 15:29  霸王龙的日常  阅读(2370)  评论(0编辑  收藏  举报