【mysql】win上Access denied for user 'root'@'localhost' (using password:YES)”
来源:互联网 发布:江津加工中心编程招聘 编辑:程序博客网 时间:2024/04/28 16:45
1、网上很多出现这个问题的,解决方法也很多。
我自己也遇到了很多次,mysql5.1,mysql5.5,msyql5.7,windows下,mac下,我都遇到过。
2、这次的情况是,从命令行能连接上。运行web项目,就报这个错。
解决办法一:
打开mysql目录的 my.ini 文件,最后加入一行。重启服务,就行了
skip-grant-tables
加上了这句,就不要去掉了。不然下次开机或者启动服务,又会出现这个。亲测。
解决办法二:
application.properties这个文件里,每一行配置代码的后面,都不要有空格!!!亲测!!
补充
解决办法三:
今天在linux的mysql5.1下,又遇到这个问题。在网上偶然看到一个写法,真的进去了,非常6。也不知道原理
mysql -uroot -p (注意-u后面没有空格)
0 0
- 【mysql】win上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)
- eclipse连接不上mysql Access denied for user 'root'@'localhost' (using password: YES)
- MySQL 'root'@'localhost'无法登录|Access denied for user ‘root’@’localhost’ (using password: YES)”
- #1045 - Access denied for user 'root'@'localhost' (using password: YES)
- Access denied for user 'root'@'localhost' (using password: YES) 问题解决
- 解决'Access denied for user 'root'@'localhost' (using password: YES)'
- access denied for user 'root'@'localhost' using password yes
- access denied for user 'root'@'localhost' using password yes
- 1045 access denied for user 'root'@'localhost' using password yes
- Access denied for user 'root'@'localhost' (using password: YES)解决办法
- Access denied for user: 'root@localhost' (Using password: YES)
- 打印字符串中所有字符的排列
- 问题 B: 最少的步数 【BFS】
- 【LeetCode】241. Different Ways to Add Parentheses
- Qt creator5.7 OpenCV249之图片灰度处理(含源码下载)
- 开机启动出错(双系统)--grub rescue
- 【mysql】win上Access denied for user 'root'@'localhost' (using password:YES)”
- CentOS 本地ISO 挂载并配置本地软件源
- C++中cin、cin.get()、getline()
- cs231n关于numpy这部分的翻译
- 【计算机网络】链路层
- 顺序容器--vector的详解
- 抽象类、接口的区别
- Delta-wave
- JQueryEasyUI 表单验证