当前位置:网站首页>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
边栏推荐
- Redis installation on Linux system
- Getting started with the go language is simple: go handles XML files
- 腾讯二面:@Bean 与 @Component 用在同一个类上,会怎么样?
- How to detect 3D line spectral confocal sensors in semiconductors
- Four Misunderstandings of Internet Marketing
- 图解使用Navicat for MySQL创建存储过程
- Lvgl widget styles
- 200. 岛屿数量
- 海思3559开发常识储备:相关名词全解
- Shutter start from zero 006 radio switches and checkboxes
猜你喜欢
![[target tracking] |pytracking configuring win to compile prroi_ pool. pyd](/img/ac/1e443164e57c4f34ddd1078de9f0d2.png)
[target tracking] |pytracking configuring win to compile prroi_ pool. pyd
![[leetcode] 15. Sum of three numbers](/img/0c/4363d7737d90c170eb4519828990b9.png)
[leetcode] 15. Sum of three numbers
![Remove invalid parentheses [simulate stack with array]](/img/df/0a2ae5ae40adb833d52b2dddea291b.png)
Remove invalid parentheses [simulate stack with array]

Understanding and learning of MySQL indexing and optimization

SuperMap iClient3D 11i for Cesium三维场景中图例使用说明

3D视觉检测在生产流水的应用有哪些
![移除无效的括号[用数组模拟栈]](/img/df/0a2ae5ae40adb833d52b2dddea291b.png)
移除无效的括号[用数组模拟栈]

Talk about how to do hardware compatibility testing and quickly migrate to openeuler?

Map集合

A review of quantum neural networks 2022 for generating learning tasks
随机推荐
SuperMap iClient3D for WebGL 加载TMS瓦片
Joplin implements style changes
品达通用权限系统(Day 7~Day 8)
JMeter之事务控制器
Use of redis in projects
The website with id 0 that was requested wasn‘t found. Verify the website and try again
3D线光谱共焦传感器在半导体如何检测
"Xiaodeng" user personal data management in operation and maintenance
Serial communication interface 8250
SuperMap iClient3D 11i for Cesium三维场景中图例使用说明
【LeetCode】15、三数之和
Map collection
ZABBIX monitors the number of TCP connections
使用Power Designer工具构建数据库模型
A Generic Deep-Learning-Based Approach for Automated Surface Inspection-論文閱讀筆記
SuperMap iServer11i新功能----图例的发布和使用
60 个神级 VS Code 插件!!
A new journey of the smart court, paperless office, escorting the green trial of the smart court
海思3559万能平台搭建:YUV格式简介
Redis configuration files and new data types