Mysql:The user specified as a definer ('xxx'@'%') does not exist 错误

1、在mysql 数据库新建视图的时候,提示

The user specified as a definer ('root'@'%') does not exist。

2、原因:

由于root用户对全局host无访问权限。因此只要给root用户添加一个访问权限即可。

执行命令:

grant all privileges on *.* to root@"%" identified by "pwd"
上一篇:EF 取值时出错: Specified cast is not valid


下一篇:Failed to execute 'index' on 'IDBObjectStore': The specified index was not found