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;

 问题解决。

posted @ 2015-07-05 10:42  影分身  阅读(127)  评论(0编辑  收藏  举报