当前位置:网站首页>012_ Access denied for user ‘root‘@‘localhost‘ (using password: YES)
012_ Access denied for user ‘root‘@‘localhost‘ (using password: YES)
2022-04-23 02:02:00 【_yummy_】
今天在运行项目的时候遇到了一个问题,具体bug页面如下:
对应的错误信息如下所示:
大概的意思就是:
- 拒绝被访问?
- 用户名错误?
- 密码正确?
说一说我比较疑惑的点:
- 我在Idea内置的MySQL已经连接成功
- 因此不存在用户名或者密码错误的问题
后来在网上查找了很多类似错误的网友的问题解决方案总结如下:
- 配置文件格式问题(8.0版本使用这个)
com.mysql.cj.jdbc.Driver
- 在URL后面拼接如下信息
useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true&useUnicode=true&useJDBCCompliantTimezoneShift=true&characterEncoding=utf8
很好都跟着修改了,就是没有解决我的问题。至于我是如何解决的。害~就是在MySQL的连接配置中要记得给连接密码加单引号''
啊啊啊啊啊,我真的闹了个天大的笑话,害!!!!这下子记住了记住了!
嘿嘿,可以访问咯!!!
留下你的小心心吧~
版权声明
本文为[_yummy_]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_43890515/article/details/124342979
边栏推荐
- Redis memory recycling strategy
- What are the benefits of writing unit tests using the unit test framework?
- Ziguang micro financial report is outstanding. What does the triple digit growth of net profit in 2021 depend on
- Challenges often faced by client project management
- PHP & laravel & master several ways of generating token by API and some precautions (PIT)
- Use of push() and pop()
- NPM yarn startup error [resolved]
- Leetcode40 - total number of combinations II
- Makefile文件是什么?
- Shardingsphere read write separation
猜你喜欢
LeetCode 447. Number of boomerangs (permutation and combination problem)
What is a dial-up server and what is its use?
搭建网站是用物理机还是云主机好?
How to initialize "naming and surname" in C language
一些使用代理IP的小技巧。
MySQL basic record
NPM yarn startup error [resolved]
Leetcode39 combined sum
Performance introduction of the first new version of cdr2022
Server 2019 the available memory of the server is half of the actual memory
随机推荐
2022 low voltage electrician examination questions and answers
Some tips for using proxy IP.
Performance introduction of the first new version of cdr2022
浅析静态代理ip的三大作用。
【dpdk】10. Dpdk DNS learning notes
Under the pressure of sales, domestic mobile phones began to reduce prices, but they haven't put down their final face
Halo open source project learning (I): project launch
搭建网站是用物理机还是云主机好?
Leetcode39 combined sum
【动手学深度学习V2】循环神经网络-1.序列模型
中金财富是国企吗,开户安全吗
RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimensio
【汇编语言】从最底层的角度理解“堆栈”
Implementation of Base64 encoding / decoding in C language
2018 China Collegiate Programming Contest - Guilin Site J. stone game
LeetCode 447. Number of boomerangs (permutation and combination problem)
Challenges often faced by client project management
Cc2541 emulator CC debugger tutorial
拨号服务器是什么,有什么用处?
Communication summary between MCU and 4G module (EC20)