首页 > 代码库 > Access denied for user 'root'@'%' to database

Access denied for user 'root'@'%' to database

1. 修改mysql数据库user表中root@%用户的Event权限设置

2. 授予该用户所有权限(在服务器本机上执行)

3. 刷新权限

FLUSH PRIVILEGES

Access denied for user 'root'@'%' to database