做MySQL数据库迁移,把别的某个库搞一份到我本地,其中创建视图的时候报错,如下:

[Err] 1449 - The user specified as a definer ('root'@'%') does not exist

解析:权限问题,需授权给 root 用户所有sql权限。

执行如下sql即可(其中的root对应的是自己当前所用账号的用户名。):

grant all privileges on *.* to [email protected]"%" identified by ".";

Mysql数据库迁移报错:[Err] 1449 - The user specified as a definer ('root'@'%') does not exist

 

相关文章:

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