当前位置:网站首页>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

边栏推荐
- 基于RNA的新型癌症疗法介绍
- Analysis of the problems of the 11th Blue Bridge Cup single chip microcomputer provincial competition
- Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!
- 【LeetCode】3. Merge Two Sorted Lists·合并两个有序链表
- 技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估
- Microsoft Security Response Center
- 项目经验分享:基于昇思MindSpore实现手写汉字识别
- Go language foundation ----- 01 ----- go language features
- 哪一刻你才发现青春结束了
- register关键字
猜你喜欢

Epoll related references

【cocos creator】点击按钮切换界面

PAT甲级 1028 List Sorting

Go language foundation ----- 15 ----- reflection

Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition

Go language foundation ----- 06 ----- anonymous fields, fields with the same name

研究显示乳腺癌细胞更容易在患者睡觉时进入血液

Robots protocol

Traversal in Lucene

Analysis of the problems of the 10th Blue Bridge Cup single chip microcomputer provincial competition
随机推荐
OSPF protocol summary
Iterm2 setting
Huawei s5700 switch initialization and configuration Telnet, SSH user methods
Technical dry goods Shengsi mindspire dynamic transformer with variable sequence length has been released!
Precautions for opensips and TLS SIP trunk docking
Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition
Project experience sharing: handwritten Chinese character recognition based on Shengsi mindspire
Structure of golang
Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does
什么是数据类型?数据类型有什么用?
Iterm2设置
华为交换机Console密码重置、设备初始化、默认密码
static关键字
哪一刻你才发现青春结束了
[at] abc 258G - Triangle 三元组可达-暴力
How can entrepreneurial teams implement agile testing to improve quality and efficiency? Voice network developer entrepreneurship lecture Vol.03
Technology dry goods | Roberta of the migration of mindspore NLP model - emotion analysis task
Quality blog——
PIP uses image website to solve the problem of slow network speed
微软安全响应中心