当前位置:网站首页>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 .
边栏推荐
- 分布式事务
- ComponentScan和ComponentScans的区别
- Getting started | jetpack hilt dependency injection framework
- The Linux server needs to install the agent software EPS (agent) database
- Kubernetes family container housekeeper pod online Q & A?
- Three. JS local environment setup
- 【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
- Cron表达式介绍
- 处理数据集,使用LabelEncoder将所有id转换为从0开始
- sql server 查询指定表的表结构
猜你喜欢
Super easy to use logzero
Add some hard dishes to the interview: how to improve throughput and timeliness in delayed task scenarios!
Le processus de connexion mysql avec docker
[fluent] JSON model conversion (JSON serialization tool | JSON manual serialization | writing dart model classes according to JSON | online automatic conversion of dart classes according to JSON)
C language beginner level - pointer explanation - paoding jieniu chapter
SQL statement
力扣------网格中的最小路径代价
[translation] the background project has joined the CNCF incubator
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
[error record] the parameter 'can't have a value of' null 'because of its type, but the im
随机推荐
[translation] the background project has joined the CNCF incubator
"Analysis of 43 cases of MATLAB neural network": Chapter 43 efficient programming skills of neural network -- Discussion Based on the characteristics of the new version of MATLAB r2012b
【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
I2C 子系統(四):I2C debug
yii2 中andWhere多个or查询 orm条件
【富瀚6630编码存录像,用rtsp服务器及时间戳同步实现vlc观看录像】
Introduction to cron expression
Today, it's time to copy the bottom!
Why choose a frame? What frame to choose
Two dimensional format array format index subscript continuity problem leads to return JSON format problem
Practice of traffic recording and playback in vivo
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
Do you really understand relays?
Choose it when you decide
Pytest (6) -fixture (Firmware)
Kubernetes family container housekeeper pod online Q & A?
Can netstat still play like this?
leetcode540
[fluent] futurebuilder asynchronous programming (futurebuilder construction method | asyncsnapshot asynchronous calculation)
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)