ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) MySQL密码重置
2018-03-13 22:25
579 查看
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
mysql经常出现这个问题,这时候我们需要用命令行重置账号密码。
方法如下:
1:修改MySQL的配置文件(my.ini),在[mysqld]下添加一行skip-grant-tables
2:重启MySQL服务,此时可以用mysql -u root -p进入,密码为空。
3:输入update mysql.user set authentication_string=password("?") where user="root";(?处填你要设置的密码)
4:quit。把my.ini改回去。就可以正常登录了。
mysql经常出现这个问题,这时候我们需要用命令行重置账号密码。
方法如下:
1:修改MySQL的配置文件(my.ini),在[mysqld]下添加一行skip-grant-tables
2:重启MySQL服务,此时可以用mysql -u root -p进入,密码为空。
3:输入update mysql.user set authentication_string=password("?") where user="root";(?处填你要设置的密码)
4:quit。把my.ini改回去。就可以正常登录了。
相关文章推荐
- Linux MySQL修改密码时 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- Mysql没有初始密码(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO))
- mysql登录账号出错:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- 解决MySQL登录ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)问题
- mysql问题:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- Linux mysql 5.6: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- mysql登录账号出错:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- MySQL: Error 1045 (28000): Access denied for user ‘root’@'localhost’ (using password: NO)
- mysql登录账号出错:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- CentOS命令登录MySQL时,报错ERROR 1045 (28000): Access denied for user root@localhost (using password: NO)错误解
- CentOS下进入MySQL提示ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- mysql解决ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- Linux mysql 5.6: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- mysql登录账号出错:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- mysql-->ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- mysql问题ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ubuntu 系统解决mysql连接问题(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO))
- mysql登录账号出错:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- Ubuntu下 MySQL的“ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)”
- mysql登录账号出错:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)