当前位置: 代码迷 >> 综合 >> Mysql The user specified as a definer ('root'@'%') does not exist 权限问题时
  详细解决方案

Mysql The user specified as a definer ('root'@'%') does not exist 权限问题时

热度:40   发布时间:2023-11-07 14:15:00.0

在cmd 中 进入 mysql 的bin 目录 

1. 进入cmd:

mysql -u -p

2 .输入你的密码

3 .

grant all privileges on *.* to root@"%" identified by ".";

4.

flush privileges;

如果3提示:

You are not allowed to create a user with GRANT

继续使用

CREATE USER 'root'@'%' IDENTIFIED BY 'Hadoop3!';
grant all privileges on *.* to 'root'@'%';

就可以了 

 

  相关解决方案