码迷,mamicode.com
首页 > 数据库 > 详细

mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法

时间:2017-05-17 00:43:33      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:content   源地址   blog   mysql   href   title   target   get   replace   

程序在调用到数据库的视图时报错,直接在数据库中打开视图时也报错,类似:
 

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://blog.csdn.net/qdujunjie/article/details/27696429

mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法

标签:content   源地址   blog   mysql   href   title   target   get   replace   

原文地址:http://www.cnblogs.com/yixiu868/p/6864149.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!