美文网首页
The user specified as a definer

The user specified as a definer

作者: 玖伍2七 | 来源:发表于2019-08-04 10:22 被阅读0次

The user specified as a definer ('xxx'@'%') does not exist的解决办法
出现这个问题是因为从生产上dump了一份数据库文件下来,然后没有产生对应的帐号,解决方法

  1. 创建与xxx同名的帐户,密码也相同
  2. 进入mysql执行以下指令 以windows为例
mysql -uroot -proot
mysql>  grant all privileges on *.* to xxx@"%" identified by "yourpassword";
mysql> flush privileges;

然后用xxx帐户进入mysql,就会发现这些存储过程可以执行了

相关文章

网友评论

      本文标题:The user specified as a definer

      本文链接:https://www.haomeiwen.com/subject/igpedctx.html