当前位置:网站首页>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 databaseThe 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
边栏推荐
猜你喜欢
随机推荐
LLVM系列第四章:逻辑代码块Block
LLVM系列第二十四章:用Xcode编译调试LLVM源码
蓝牙温度检测系统(基于BT08-B蓝牙模块)
LLVM系列第二十二章:写一个简单的编译时函数调用统计器(Pass)
LeetCode2 电话号码的字母组合
LORA芯片ASR6505无线远距离传输8位MCU
Tensorflow张量生成
【我的电赛日记(完结)---2021全国大学生电子设计竞赛全国一等奖】A题:信号失真度测量装置
FP7126降压恒流65536级高辉无频闪调光共阳极舞台灯RGB驱动方案
还是别看学位论文
机器学习---监督学习、无监督学习
想做好分布式架构?这个知识点一定要理解透彻
The problem that UIWindow's makeKeyAndVisible does not call viewDidLoad of rootviewController
RN开发时遇到的问题
LLVM系列第二十一章:写一个简单的Loop Pass
profiler network乱码
FP6293电池升压5V-12V大电流2APWM模式升压方案
LLVM系列第二十五章:简单统计一下LLVM源码行数
LLVM系列第五章:全局变量Global Variable
6. How to use the CardView production card layout effect









