MySQL数据库常见问题(一)

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

解决方法:

1.cmd进入命令行界面

2.输入指令,进入mysql数据库:

mysql -u root -p root;

3.给mysql添加权限

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)

结束。

posted on 2019-11-08 14:17  疯狂的牛排  阅读(383)  评论(0)    收藏  举报