摘要:
1.打开cmd窗口,进入MySql安装的bin目录 2.执行命令登录数据库,之后会出现一行要你输入密码的 mysql -u root -p 3.执行以下命令分配新用户: grant all privileges on *.* to '用户名'@'IP地址' identified by '密码'; 4 阅读全文
摘要:
原因是没开权限 1. 命令行进入mysql(假设root用户的密码也为root) mysql –uroot –proot 2. 使用mysql数据库 use mysql; 3. 赋予权限 grant all privileges on *.* to 'root'@'%' identified by 阅读全文