当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
kotlin Android序列化
ASR6601牛羊定位器芯片GPS国内首颗支持LoRa的LPWAN SoC
没学好统计学的下场
LLVM系列第二十二章:写一个简单的编译时函数调用统计器(Pass)
流,向量场,和微分方程
LeetCode2 电话号码的字母组合
Binder ServiceManager解析
【我的电赛日记(完结)---2021全国大学生电子设计竞赛全国一等奖】A题:信号失真度测量装置
The NDK portal: C
boost库智能指针
arm push/pop/b/bl汇编指令
Win11没有本地用户和组怎么解决
Win10系统设置application identity自动提示拒绝访问怎么办
自定义圆形seekBar,超简单
【我的电赛日记(三)】STM32学习笔记与要点总结
PyTorch(14)---使用现有的模型及其修改
FP7126降压恒流65536级高辉无频闪调光共阳极舞台灯RGB驱动方案
投资组合理论的简单介绍
The problem that UIWindow's makeKeyAndVisible does not call viewDidLoad of rootviewController
设备驱动框架简介