当前位置:网站首页>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 configuration files and new data types
- MySQL built-in functions
- How to use the plug-in mechanism to gracefully encapsulate your request hook
- Redis cache problem
- Flutter 从零开始 006 单选开关和复选框
- Construction de la plate - forme universelle haisi 3559: obtenir le codage après modification du cadre de données
- 图解使用Navicat for MySQL创建存储过程
- Swagger2 automatically generates API documents
- SuperMap iclient3d for webgl loading TMS tiles
- Sword finger offer 05 Replace spaces: replace each space in the string s with "%20"“
猜你喜欢

Some commonly used hardware information of the server (constantly updated)

iServer发布ES服务查询设置最大返回数量

Redis-緩存問題

MySQL composite query

品达通用权限系统(Day 7~Day 8)

Redis installation on Linux system

光谱共焦位移传感器的原理是什么?能应用那些领域?

Instructions for legend use in SuperMap iclient3d 11i for cesium 3D scene

Solve the problem that the server cannot be connected via SSH during reinstallation

海思3559开发常识储备:相关名词全解
随机推荐
Commands for redis basic operations
两批次纯牛奶不合格?麦趣尔回应:正对产品大批量排查抽检
90. (cesium chapter) cesium high level listening events
SuperMap 3D SDKs_Unity插件开发——连接数据服务进行SQL查询
Go 语言入门很简单:Go 处理 XML 文件
SuperMap 3D SDKs_ Unity plug-in development - connect data services for SQL queries
How to use the plug-in mechanism to gracefully encapsulate your request hook
Parallel interface 8255A
90.(cesium篇)cesium高度监听事件
Remove invalid parentheses [simulate stack with array]
Shutter 007 input field from zero
Getting started with the go language is simple: go handles XML files
8253计数器介绍
浏览器播放rtsp视频,基于nodeJs
1020. number of enclaves
不同类型的变量与零究竟是如何比较
DMA controller 8237a
Clipboardjs - development learning summary 1
Idea has a new artifact, a set of code to adapt to multiple terminals!
Four Misunderstandings of Internet Marketing