从一个数据库数据迁移到本地localhost
程序在调用到数据库的视图时报错,直接在数据库中打开视图时也报错,类似:
mysql 1449 : The user specified as a definer (‘root‘@‘%‘) does not exist
经查,是权限问题,解决办法:
运行:grant all privileges on *.* to [email protected]"%" identified by ".";
之后打开视图时便不会报错
打开视图 :1449 - the user specified as a definer ('root'@'%')does not exist
原文地址:https://www.cnblogs.com/tanning/p/9735020.html
时间: 2024-11-08 19:28:50