当前位置:网站首页>Mysql connection error solution
Mysql connection error solution
2022-08-02 15:21:00 【dedicated to java】
Article table of contents
Problem description
alibaba.druid.support.logging.JakartaCommonsLoggingImpl.error occurs when jdbcTemplate operates the database
The visual graphics tool connects to MySQL and reports an error: 2059 - authentication plugin 'caching_sha2_password' cannot be loaded...
Resolution to alibaba.druid.support.logging.JakartaCommonsLoggingImpl.error`
An error occurred as shown
Database connection pool configuration:
Database version
This error is because the database connection is not supported. The local database version is version 8.0.29, and then the database connection dependency package used in the idea is mysql-connector-java version 5.1.7, the version is too low,Version 8.0 database is not supported
Download version 8.0 databaseThe problem can be solved by importing the connection dependency package.
Download location of MySQL8.0 connector JAR packageDownload address: https://dev.mysql.com/downloads/connector/j/
option to download zip file as shown
After decompression, you can get the dependency package of 8.0
Import and delete the 5.0 version dependency to solve the problem
Resolve the error when connecting to MySQL with visual graphics tools: 2059 - authentication plugin ‘caching_sha2_password‘ cannot be loaded…
sqlyog version
Name: ddooo;
Certificate key: 8d8120df-a5c3-4989-8f47-5afc79c56e7c
The reason for this problem is because the version of the visual graphics tool I am using is too low.
The encryption method selected when installing mysql is the 8.0 encryption method. The default authentication plug-in is different, so the plug-in cannot be loaded.error
Description
1.mysql5.7 default is mysql_native_password;
2.mysql8.0 default is caching_sha2_password
Change MySQL 8.0 authentication plugin back to mysql_native_password
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
Refresh permissions
FLUSH PRIVILEGES;
You can connect successfully
边栏推荐
- 2022TI杯D题混沌信号产生实验装置
- 流,向量场,和微分方程
- PHY6222蓝牙5.2支持MESH组网M0内核超低功耗
- LLVM系列第二十四章:用Xcode编译调试LLVM源码
- Must-know knowledge about disassembly
- Win11怎么在右键菜单添加一键关机选项
- define #使用
- 文本匹配任务
- The overlapping effect of the two surfaceviews is similar to the video and handout practice in the live effect
- FP7195大功率零压差全程无频闪调光DC-DC恒流芯片(兼容调光器:PWM调光,无极调光,0/1-10V调光)
猜你喜欢
随机推荐
刷卡芯片CI520可直接PIN对PIN替换CV520支持SPI通讯接口
可以拖拽的ViewGroup,仿微信拖拽缩放关闭
Win7怎么干净启动?如何只加载基本服务启动Win7系统
FP7128内置MOS降压恒流调光深度0.01%高辉共阳调光方案
7. How to add the Click to RecyclerView and LongClick events
FP5139电池与适配器供电DC-DC隔离升降压电路反激电路电荷泵电路原理图
CI24R1小模块2.4G收发模块无线通信低成本兼容si24r1/XN297超低功耗
FP7195转模拟调光技术解决智能家居调光频闪和电感噪音的原理
“自主可控”的正确姿势
LLVM系列第二十四章:用Xcode编译调试LLVM源码
ECP2459耐压60V降压BUCK电路用于WIFI模块供电方案原理图
LLVM系列第三章:函数Function
LLVM系列第十八章:写一个简单的IR处理流程Pass
The problem that UIWindow's makeKeyAndVisible does not call viewDidLoad of rootviewController
STL容器自定义内存分配器
FP7195芯片PWM转模拟调光至0.1%低亮度时恒流一致性的控制原理
Win10 can't start WampServer icon is orange solution
vscode镜像
PHY6222蓝牙5.2支持MESH组网M0内核超低功耗
STM32F1和F4的区别