当前位置:网站首页>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
边栏推荐
猜你喜欢
FP6296锂电池升压 5V9V12V内置 MOS 大功率方案原理图
NER(命名体识别)之 FLAT模型
流,向量场,和微分方程
PHY6222蓝牙5.2支持MESH组网M0内核超低功耗
【我的电赛日记(三)】STM32学习笔记与要点总结
【目标检测】YOLO v5 吸烟行为识别检测
PyTorch①---加载数据、tensorboard的使用
FP7195大功率零压差全程无频闪调光DC-DC恒流芯片(兼容调光器:PWM调光,无极调光,0/1-10V调光)
【使用Pytorch实现ResNet网络模型:ResNet50、ResNet101和ResNet152】
记录Yolo-tiny-v4的权重提取和中间层结果提取
随机推荐
【深度学习中的损失函数整理与总结】
让深度学习歇一会吧
Detailed explanation of RecyclerView series article directory
boost库智能指针
单端K总线收发器DP9637兼容L9637
FP6293电池升压5V-12V大电流2APWM模式升压方案
FP7195转模拟恒流调光芯片在机器视觉光源的应用优势
什么是外生变量和内生变量
【使用Pytorch实现ResNet网络模型:ResNet50、ResNet101和ResNet152】
PyTorch⑨---卷积神经网络_线性层
还是别看学位论文
FP5139电池与适配器供电DC-DC隔离升降压电路反激电路电荷泵电路原理图
define #使用
神经网络的设计过程
PyTorch(15)---模型保存和加载
记录Yolo-tiny-v4的权重提取和中间层结果提取
语言模型(NNLM)
The problem that UIWindow's makeKeyAndVisible does not call viewDidLoad of rootviewController
LLVM系列第二十七章:理解IRBuilder
PyTorch(14)---使用现有的模型及其修改