当前位置:网站首页>Client does not support authentication protocol requested by server; consider upgrading MySQL client
Client does not support authentication protocol requested by server; consider upgrading MySQL client
2022-07-03 16:01:00 【不入开发不工作】
1. 问题描述
Client does not support authentication protocol requested by server; consider upgrading MySQL client
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
我遇到这个问题是因为mysql是8.0版本,连接驱动是5.0版本,
2. 解决方案
驱动换成8.0版本即可。
URL做修改:
jdbc:mysql://localhost/xxx?serverTimezone=GMT
边栏推荐
- Microservice API gateway
- MongoDB 的安装和基本操作
- 利用MySQL中的乐观锁和悲观锁实现分布式锁
- Popular understanding of random forest
- Rk3399 platform development series explanation (WiFi) 5.54. What is WiFi wireless LAN
- Project -- high concurrency memory pool
- Asemi rectifier bridge umb10f parameters, umb10f specifications, umb10f package
- From the 18th line to the first line, the new story of the network security industry
- Microservices Seata distributed transactions
- Persisting in output requires continuous learning
猜你喜欢

Microservice - fuse hystrix

Low level version of drawing interface (explain each step in detail)

Detailed pointer advanced 2

深度学习之三维重建

嵌入式开发:避免开源软件的7个理由

Unity function - unity offline document download and use
![[list to map] collectors Tomap syntax sharing (case practice)](/img/ac/e02deb1cb237806d357a88fb812852.jpg)
[list to map] collectors Tomap syntax sharing (case practice)

Intelij idea efficient skills (III)

Wechat payment -jsapi: code implementation (payment asynchronous callback, Chinese parameter solution)

From the 18th line to the first line, the new story of the network security industry
随机推荐
Batch files: list all files in a directory with relative paths - batch files: list all files in a directory with relative paths
VS2017通过IP调试驱动(双机调试)
UnityShader——MaterialCapture材质捕捉效果 (翡翠斧头)
驱动与应用程序通信
Detailed pointer advanced 2
Pyinstaller is not an internal or external command, nor is it a runnable program or batch file
Download and install common programs using AUR
The difference between calling by value and simulating calling by reference
App mobile terminal test [5] file writing and reading
Custom annotation
do{}while()的妙用
请求头不同国家和语言的表示
App移动端测试【5】文件的写入、读取
Microservice - Nacos registration center and configuration center
Uploads labs range (with source code analysis) (under update)
Microservices - load balancing ribbon
Srs4.0+obs studio+vlc3 (environment construction and basic use demonstration)
nifi从入门到实战(保姆级教程)——flow
Redis在Windows以及Linux系统下的安装
《微服务设计》读书笔记(下)