当前位置:网站首页>Docker install MySQL
Docker install MySQL
2022-07-03 02:57:00 【Play code】
1. Enter the command sudo docker pull mysql:5.7, Start the download mysql5.7

2. Enter the command sudo docker images Look at the mirror image

3. Create an instance and start

sudo docker run -p 3306:3306 --name mysql \
-v /mydata/mysql/log:/var/log/mysql \
-v /mydata/mysql/data:/var/lib/mysql \
-v /mydata/mysql/conf:/ect/mysql \
-e MYSQL_ROOT_PASSWORD=root \
-d mysql:5.7
4. Input docker ps Command to view startup information
Use MySQL Connection tool , It can also be connected normally .

边栏推荐
- Opengauss database development and debugging tool guide
- Getting started | jetpack hilt dependency injection framework
- Classes and objects - initialization and cleanup of objects - constructor call rules
- 【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
- Use optimization | points that can be optimized in recyclerview
- Today, it's time to copy the bottom!
- JS finds all the parent nodes or child nodes under a node according to the tree structure
- TCP 三次握手和四次挥手机制,TCP为什么要三次握手和四次挥手,TCP 连接建立失败处理机制
- SQL statement
- Can I use read-only to automatically implement properties- Is read-only auto-implemented property possible?
猜你喜欢

Baidu map - surrounding search

Distributed transaction

What is the way out for children from poor families?

Force deduction ----- the minimum path cost in the grid

The Linux server needs to install the agent software EPS (agent) database

Pytest (6) -fixture (Firmware)

Three. JS local environment setup

Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
![[shutter] monitor the transparency gradient of the scrolling action control component (remove the blank of the top status bar | frame layout component | transparency component | monitor the scrolling](/img/c3/b9a614001f80345a5c1cb3c68ab27c.jpg)
[shutter] monitor the transparency gradient of the scrolling action control component (remove the blank of the top status bar | frame layout component | transparency component | monitor the scrolling

Add automatic model generation function to hade
随机推荐
Add automatic model generation function to hade
I2C subsystem (IV): I2C debug
Check log4j problems using stain analysis
Sqlserver row to column pivot
用docker 连接mysql的过程
Distributed transaction
Thunderbolt Chrome extension caused the data returned by the server JS parsing page data exception
Practice of traffic recording and playback in vivo
open file in 'w' mode: IOError: [Errno 2] No such file or directory
Sous - système I2C (IV): débogage I2C
What does "where 1=1" mean
HTB-Devel
Creation and destruction of function stack frame
Add automatic model generation function to hade
I2C 子系統(四):I2C debug
Super easy to use logzero
迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常
Chart. JS multitooltip tag - chart js multiTooltip labels
销毁Session和清空指定的属性
Baidu map - surrounding search