1.登录
mysql -u root -p
2.选择mysql数据库
use mysql;
3.查询用户赋予权限
mysql> select user,host,grant_priv from user; // N表示没有开启
4.修改权限
mysql> update user set grant_priv='Y' where user = 'root';
5.刷新权限
mysql> flush privileges; // 刷新权限
6.查看一哈
mysql> select user,host,grant_priv from user;
7.重新连接一下数据库,添加用户并赋予权限就ok了!!!
标签:grant,database,1044,navicat,user,mysql,权限,root,priv From: https://www.cnblogs.com/cj8357475/p/16740954.html