MYSQL连接错误:Access denied for user 'root'@'localhost' (using password:YES)(其实输入的密码是正确的)
2018-12-19 17:50
501 查看
建议各位去打开自己的服务进程看一下:
去搜索栏搜索服务如下:
打开后看一下自己的mysql到底有几个服务。我的其实有两个,但是那个mysql80才是真正有用的,如下:
打开这个mysql80。而后以管理员身份运行cmd,按顺序输入以下命令:
首先跳到安装目录:
cd xxx\bin(bin目录才可以哦)
然后重启服务器:
net stop mysql
net start mysql
然后进入mysql:
mysql -uroot -p
正常输入正确的密码即可
相关文章推荐
- Mysql连接错误:Access denied for user 'root'@'localhost' (using password:YES)解决方案以及WINDOWS下修改Mysql密码
- linux下连接windows mysql的错误:Access denied for user 'root'@'localhost' (using password: YES)
- jdbc与mysql的连接错误解决——“Connect failed: Access denied for user 'root'@'localhost' (using password: YES)”
- MySql错误1045 Access denied for user 'root'@'localhost' (using password:YES) windows下的解决方案(忘记密码)
- JSP连接MySQL时错误:Access denied for user 'root'@'localhost' (using password: YES)'解决方案
- Toad for MySQL ,Navicat for MySQ连接错误 Access denied for user: 'root@localhost' (Using password: YES)
- MYSQL连接Pycharm错误:Access denied for user 'root'@'localhost' (using password:YES)
- MySql错误1045 Access denied for user 'root'@'localhost' (using password:YES) windows下的解决方案(忘记密码)
- Windows7系统 Navicat连接MySQL提示错误1045 Access denied for user 'root'@'localhost' (using password:YES)
- JSP连接MySQL时出现--错误:Access denied for user 'root'@'localhost' (using password: YES)'解决方案
- mysql错误:Error: Access denied for user 'root'@'localhost' (using password: YES)解决办法
- MySQL错误:access denied for user 'root'@'localhost' using password yes
- 本地navicat连接服务器mysql报错Access denied for user 'root'@'localhost'(using password:YES)
- mysql 错误解决 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- 关于Navicat mysql连接出现1045 access denied for user 'root'@'localhost' using password: yes
- MySQL for mac 连接报错:Access denied for user 'root'@'localhost' (using password: YES)
- 解决用Mysql 使用navicate远程连接数据库出现1045 access denied for user 'root'@'localhost' using password yes
- 解决mysql的错误-access denied for user 'root'@'localhost'(using password:YES) for MACOS
- mysql连接问题1045 Access denied for user 'root'@'localhost' (using password:YES)
- MySQL改密码报错:ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)