从一个数据库数据迁移到本地localhost或者本地localhost数据迁移到服务器中求其是Windows服务器


程序在调用到数据库的视图时报错,直接在数据库中打开视图时也报错,类似:


mysql 1449 : The user specified as a definer ('xxxx'@'%') does not exist


经查,是权限问题,解决办法:

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

之后打开视图时便不会报错,程序调用也不会报错。


源地址的解释:

权限问题,授权 给 root  所有sql 权限

mysql> grant all privileges on *.* to [email protected]"%" identified by ".";
Query OK, 0 rows affected (0.00 sec)


mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MySQL 错误1449 : The user specified as a definer ('root'@'%') does not exist 解决方法


相关文章:

  • 2021-08-01
  • 2021-10-08
  • 2021-10-25
  • 2022-01-08
  • 2021-10-10
  • 2021-12-20
猜你喜欢
  • 2021-08-08
  • 2022-03-03
相关资源
相似解决方案