mysql 错误1449

来源:互联网 发布:腾讯软件管家官方版 编辑:程序博客网 时间:2024/05/23 23:22

用netbeans运行项目时,没有得到想要的结果

通过断电调试发现是没有进入数据库进行查询

随后通过workbench进行查询时发现是读视图的权限不够

出现

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


然后查了之后用语句

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)


就解决了

0 0
原创粉丝点击