`
shendixiong
  • 浏览: 394233 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
社区版块
存档分类
最新评论

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

 
阅读更多

属于权限的问题,一般是由于root用户对全局host无访问权限。因此只要给root用户添加一个访问权限即可。授权root所有sql权限

首先登录mysql 通过MySQL Command Line Client 登录

然后 ,登录对应源

 use databaseName

 然后开始授予全部权限:

 

mysql> grant all privileges on *.* to root@"%" identified by "Passwd";
Query OK, 0 rows affected (0.00 sec)

 最后刷新:

 

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

 即可解决该问题

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics