当前位置:网站首页>Docker安装Mysql8和sqlyong连接报错2058的解决方法[随笔记录]
Docker安装Mysql8和sqlyong连接报错2058的解决方法[随笔记录]
2022-06-30 12:03:00 【全栈程序员站长】
docker 安装 mysql
#docker pull mysql
#docker create --name mysql8 -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 mysql:latest
#docker start mysql8
进入到容器
#docker exec -it mysql8 bash
mysql连接
#mysql -uroot -proot
安装 mysql 8.0.11后使用SQLyog连接数据库但报错2058的解决方法
报错的原因可能是因为新版mysql的加密方式改变导致SQLyog无法连接上数据库
#修改密码
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'zhongxu';
/**
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.22</version>
</dependency>
jdbc.driverClass=com.mysql.cj.jdbc.Driver
jdbc.connectionURL=jdbc:mysql://localhost:3306/xxDB?serverTimezone=GMT%2B8&&useSSL=false&useUnicode=true&characterEncoding=utf-8
jdbc.userId=root
jdbc.password=123456
**/
刷新权限
FLUSH PRIVILEGES
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/100719.html原文链接:https://javaforall.cn
边栏推荐
- Shutter 007 input field from zero
- The website with id 0 that was requested wasn‘t found. Verify the website and try again
- Set set
- Vision based robot grasping: from object localization, object pose estimation to parallel gripper grasping estimation
- Idea has a new artifact, a set of code to adapt to multiple terminals!
- 1020. number of enclaves
- Pharmacy management system
- [cloud native | kubernetes] in depth understanding of deployment (VIII)
- [leetcode] 15. Sum of three numbers
- STM32 porting the fish component of RT thread Standard Edition
猜你喜欢
SuperMap iclient3d for webgl loading TMS tiles
List集合
Redis-缓存问题
3D线光谱共焦传感器在半导体如何检测
A Generic Deep-Learning-Based Approach for Automated Surface Inspection-論文閱讀筆記
90. (cesium chapter) cesium high level listening events
Some commonly used hardware information of the server (constantly updated)
Idea has a new artifact, a set of code to adapt to multiple terminals!
[target tracking] |pytracking configuring win to compile prroi_ pool. pyd
Lichuang EDA learning notes 10 common connector component identification and passive buzzer driving circuit
随机推荐
A High-Precision Positioning Approach for Catenary Support Components With Multiscale Difference阅读笔记
Getting started with the go language is simple: go handles XML files
8253计数器介绍
Hisilicon 3559 developing common sense reserves: a complete explanation of related terms
Swagger2自动生成APi文档
Pinda general permission system (day 7~day 8)
How to detect 3D line spectral confocal sensors in semiconductors
SuperMap iClient3D 11i for Cesium三维场景中图例使用说明
A Generic Deep-Learning-Based Approach for Automated Surface Inspection-論文閱讀筆記
Tencent two sides: @bean and @component are used on the same class. What happens?
立创 EDA #学习笔记10# | 常用连接器元器件识别 和 无源蜂鸣器驱动电路
Serial communication interface 8250
8253 counter introduction
海思3559万能平台搭建:获取数据帧修改后编码
通过EF Core框架根据SQL Server数据库表生成实体类
串行通信接口8250
Linux系统Redis的安装
Beego development blog system learning (II)
iServer发布ES服务查询设置最大返回数量
Global capital market 101: Breit, one of the best investment targets for domestic high net worth people