当前位置:网站首页>Docker installs MySQL and successfully uses Navicat connection
Docker installs MySQL and successfully uses Navicat connection
2022-07-03 07:50:00 【A reserved and calm man】
1. install docker
Centos7 install Docker
yum install docker-ce
Use Docker China Accelerator , because Docker It's foreign , There is a powerful firewall
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://rsyrgxsw.mirror.aliyuncs.com"]
}
Restart docker
systemctl restart docker
see docker Version information
docker version
Client:
Version: 17.12.1-ce
API version: 1.35
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:15:20 2018
OS/Arch: linux/amd64
Server:
Engine:
Version: 17.12.1-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:17:54 2018
OS/Arch: linux/amd64
Experimental: false
2. install mysql
First download mysql Mirror image
docker pull mysql
Start with the command under the directory created above mysql Containers
docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -d mysql:latest
View the running container
docker images -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
821aca9bf102 mysql:latest "docker-entrypoint.s…" 38 minutes ago Up 19 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp mysql
Enter the running container
docker exec -it 821aca9bf102 /bin/bash
Get into mysql
mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 14
Server version: 8.0.18 MySQL Community Server - GPL
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
3. To configure navicat Connect
mysql8 after , Strong encryption rule selected during installation caching_sha2_password, And previous mysql5.7 Of mysql_native_password The rules are different ,navicate The driver currently does not support new encryption rules , The following configuration is required .
alter user 'root'@'%' identified with mysql_native_password by '123456';// Change the encryption method
flush privileges;// Refresh

边栏推荐
- Robots protocol
- Unity XR实现交互(抓取,移动旋转,传送,射击)-Pico
- opensips与对方tls sip trunk对接注意事项
- Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!
- Introduction of novel RNA based cancer therapies
- PIP uses image website to solve the problem of slow network speed
- 什么是数据类型?数据类型有什么用?
- PHP微信抢红包的算法
- Technology dry goods | luxe model for the migration of mindspore NLP model -- reading comprehension task
- 【MySQL 11】怎么解决MySQL 8.0.18 大小写敏感问题
猜你喜欢
![[MySQL 12] MySQL 8.0.18 reinitialization](/img/e1/9874df18bbc8d80c3c5c5fe39aefc9.png)
[MySQL 12] MySQL 8.0.18 reinitialization

Iterm2设置

Technical dry goods Shengsi mindspire dynamic transformer with variable sequence length has been released!

Go language foundation ----- 08 ----- interface

Pat class a 1030 travel plan

Go language foundation ----- 10 ----- string related operations (operation function, string conversion)

【MySQL 12】MySQL 8.0.18 重新初始化

Go language foundation ----- 16 ----- goroutine, GPM model

Technical dry goods | alphafold/ rosettafold open source reproduction (2) - alphafold process analysis and training Construction

Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
随机推荐
How can entrepreneurial teams implement agile testing to improve quality and efficiency? Voice network developer entrepreneurship lecture Vol.03
[at] abc 258G - Triangle 三元組可達-暴力
【MySQL 12】MySQL 8.0.18 重新初始化
技术干货|AI框架动静态图统一的思考
Technical dry goods Shengsi mindspire innovation model EPP mvsnet high-precision and efficient 3D reconstruction
Huawei switch basic configuration (telnet/ssh login)
HarmonyOS第三次培训笔记
An article for you to understand - Manchester code
HDMI2.1与HDMI2.0的区别以及转换PD信号。
华为交换机配置ssh登录远程管理交换机
Pat class a 1030 travel plan
Technical dry goods | thinking about the unification of dynamic and static diagrams of AI framework
【cocos creator】点击按钮切换界面
Redis batch startup and shutdown script
[at] abc 258G - Triangle 三元组可达-暴力
PAT甲级 1028 List Sorting
Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition
項目經驗分享:實現一個昇思MindSpore 圖層 IR 融合優化 pass
PAT甲级 1027 Colors in Mars
【LeetCode】2. Valid Parentheses·有效的括号