mysql连接问题1045 Access denied for user 'root'@'localhost' (using password:YES)
来源:互联网 发布:windows无法连接到cmcc 编辑:程序博客网 时间:2024/06/08 07:43
好长时间没用我电脑上的mysql,想用的时候,java连接出错:1045 Access denied for user 'root'@'localhost' (using password:YES)
看了网上的贴子和博客,说需要改密码,奇怪的是我用cmd窗口可以登录mysql,root用户的密码一般设为root,尝试用命令启停mysql,
net stop mysql
意外发现,原来在Windows服务管理器中有两个mysql服务,一个叫mysql,一个叫mysql56,命令只对mysql56生效,前面的mysql是个垃圾数据库,怪不得我登录不上,禁用mysql后数据库就能正常登录了。
总结,我不经常使用mysql,可能早先装过mysql,但是后来忘记了,又重新安装了一遍,结果导致程序连接时先连接旧数据库,旧数据库密码又与新数据库不同,所以一直连接不上。
阅读全文
0 0
- mysql连接问题1045 Access denied for user 'root'@'localhost' (using password:YES)
- root用户连接mysql数据库出错 1045 access denied for user 'root'@'localhost' using password yes
- 出现错误 连接MySQL数据库,出现问题:Access denied for user 'root'@'localhost' (using password:YES)
- 关于Navicat mysql连接出现1045 access denied for user 'root'@'localhost' using password: yes
- Linux 连接mysql数据库ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- mysql Access denied for user 'root'@'localhost' (using password: YES)
- mysql Access denied for user 'root'@'localhost' (using password: YES)
- MySql Access denied for user 'root'@'localhost' (using password: YES)
- mysql access denied for user'root'@'localhost' using password yes
- mysql Access denied for user 'root'@'localhost' (using password: YES)
- mysql:Access denied for user 'root'@'localhost' (using password:YES)
- MySQL:Access denied for user 'root'@'localhost' (using password:YES)
- 解决MySQL #1045 - Access denied for user 'root'@'localhost' (using password: YES) 的问题
- wampserver登陆mysql出现#1045 - Access denied for user 'root'@'localhost' (using password: YES) 问题
- MYsql:1045 access denied for user 'root'@'localhost' using password yes 报错问题
- MySql数据库链接问题ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- MySql数据库链接问题ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- #1045 - Access denied for user 'root'@'localhost' (using password: YES)
- one-hot转为distributed representation表示
- HBase RPC理解之一
- Java 正则表达式
- 2017暑假第二阶段第七场 总结
- Java数组
- mysql连接问题1045 Access denied for user 'root'@'localhost' (using password:YES)
- 4.17 leetcode -17 longest-substring-without-repeating-characters
- ubuntu16.04mailcatcher
- FBO
- 如何选择最好的关键词,让客户容易搜索到?
- 技术文章 | Laravel/Lumen搭建服务器性能测试
- [贪心+深搜]马的回路
- Directx9学习(六)第一个小游戏
- 安装RHadoop