mysql error笔记1

mysql视图问题: The user specified as a definer ('root'@'%') does not exist

原因:由于root用户对全局host无访问权限,给root用户添加一个访问权限即可。

解决:

用登录命令:

mysql -u root -pPWD

登陆mysql 后,执行:

grant all privileges on *.* to root@"%" identified by "PWD";

执行完成:

flush privileges;

 问题解决。

原文地址:https://www.cnblogs.com/feilongblog/p/4621814.html