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

边栏推荐
- Change cell color in Excel using C - cell color changing in Excel using C
- 复选框的使用:全选,全不选,选一部分
- JS finds all the parent nodes or child nodes under a node according to the tree structure
- Add automatic model generation function to hade
- Counter统计数量后,如何返回有序的key
- Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
- The difference between left value and right value in C language
- How to return ordered keys after counter counts the quantity
- Can I use read-only to automatically implement properties- Is read-only auto-implemented property possible?
- Matlab tips (24) RBF, GRNN, PNN neural network
猜你喜欢
![ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc](/img/cb/145937a27ef08050a370d5a255215a.jpg)
ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc
![[flutter] example of asynchronous programming code between future and futurebuilder (futurebuilder constructor setting | handling flutter Chinese garbled | complete code example)](/img/04/88ce45d370a2e6052c2fce558aa531.jpg)
[flutter] example of asynchronous programming code between future and futurebuilder (futurebuilder constructor setting | handling flutter Chinese garbled | complete code example)

A2L file parsing based on CAN bus (2)

一文带你了解 ZigBee

Linear rectification function relu and its variants in deep learning activation function

Sous - système I2C (IV): débogage I2C

超好用的日志库 logzero

你真的懂继电器吗?

HTB-Devel

Thunderbolt Chrome extension caused the data returned by the server JS parsing page data exception
随机推荐
TCP handshake three times and wave four times. Why does TCP need handshake three times and wave four times? TCP connection establishes a failure processing mechanism
超好用的日志库 logzero
左连接,内连接
Cancer biopsy instruments and kits - market status and future development trends
xiaodi-笔记
What is the way out for children from poor families?
Joking about Domain Driven Design (III) -- Dilemma
From C to capable -- use the pointer as a function parameter to find out whether the string is a palindrome character
复选框的使用:全选,全不选,选一部分
Pytest (6) -fixture (Firmware)
Practice of traffic recording and playback in vivo
The solution of "the required function is not supported" in win10 remote desktop connection is to modify the Registry [easy to understand]
How to return ordered keys after counter counts the quantity
Matlab tips (24) RBF, GRNN, PNN neural network
Random shuffle note
从C到Capable-----利用指针作为函数参数求字符串是否为回文字符
Distributed transaction
I2C 子系統(四):I2C debug
sql server 查询指定表的表结构
[leectode 2022.2.15] lucky numbers in the matrix