《mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法Mys》要点:
本文介绍了mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法Mys,希望对您有用。如果有疑问,可以联系我们。
导读:程序在调用到数据库的视图时报错,直接在数据库中打开视图时也报错,类似:锚点mysql 1449 : The user specified as a definer (...
程序在调用到数据库的视图时报错,直接在数据库中打开视图时也报错,类似:
锚点mysql 1449 : The user specified as a definer ('montor'@'%') does not exist
经查,是权限问题,解决办法:
运行:grant all privileges on *.* to monitor@"%" identified by ".";
之后打开视图时便不会报错,程序调用也不会报错.
源地址的解释:
权限问题,授权 给 root 所有sql 权限
MySQL> grant all privileges on *.* to root@"%" identified by ".";
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
转载请注明本页网址:
http://www.vephp.com/jiaocheng/5576.html