1.打开cmd窗口,进入MySql安装的bin目录
mysql -u root -p
grant all privileges on *.* to '用户名'@'IP地址' identified by '密码';
4.执行完上述命令后用下面的命令刷新权限
flush privileges;
1.打开cmd窗口,进入MySql安装的bin目录
mysql -u root -p
grant all privileges on *.* to '用户名'@'IP地址' identified by '密码';
4.执行完上述命令后用下面的命令刷新权限
flush privileges;