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

边栏推荐
- Project experience sharing: realize an IR Fusion optimization pass of Shengsi mindspire layer
- Go language foundation ----- 15 ----- reflection
- Go language foundation ----- 10 ----- string related operations (operation function, string conversion)
- Introduction of novel RNA based cancer therapies
- 华为交换机:配置telnet和ssh、web访问
- 【LeetCode】4. Best time to buy and sell stock
- 项目经验分享:基于昇思MindSpore,使用DFCNN和CTC损失函数的声学模型实现
- PIP uses image website to solve the problem of slow network speed
- Technology dry goods | luxe model for the migration of mindspore NLP model -- reading comprehension task
- 技术干货|利用昇思MindSpore复现ICCV2021 Best Paper Swin Transformer
猜你喜欢

技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估

Pat class a 1028 list sorting

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

Unity XR实现交互(抓取,移动旋转,传送,射击)-Pico

OSPF experiment

PAT甲级 1027 Colors in Mars

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

Go language foundation ----- 02 ----- basic data types and operators

項目經驗分享:實現一個昇思MindSpore 圖層 IR 融合優化 pass

技术干货|昇思MindSpore初级课程上线:从基本概念到实操,1小时上手!
随机推荐
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
C2 several methods of merging VCF files
Go language foundation ----- 05 ----- structure
Redis batch startup and shutdown script
[MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)
Register keyword
Introduction of novel RNA based cancer therapies
在浏览器输入url后执行什么
Worldview satellite remote sensing image data / meter resolution remote sensing image
Go language - loop statement
【LeetCode】3. Merge Two Sorted Lists·合并两个有序链表
华为交换机:配置telnet和ssh、web访问
Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!
OSPF experiment
技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建
Go language foundation ----- 01 ----- go language features
技术干货|利用昇思MindSpore复现ICCV2021 Best Paper Swin Transformer
Lucene introduces NFA
Microsoft Security Response Center
PAT甲级 1031 Hello World for U