当前位置:网站首页>docker安装mysql
docker安装mysql
2022-07-03 02:56:00 【玩代码】
1.输入命令sudo docker pull mysql:5.7,开始下载mysql5.7

2.输入命令sudo docker images 查看镜像

3.创建实例并启动

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.输入docker ps 命令查看启动信息
使用MySQL连接工具,也能正常连接。

边栏推荐
- Kubernetes cluster log and efk architecture log scheme
- Baidu map - surrounding search
- Three.js本地环境搭建
- The difference between left value and right value in C language
- js根据树结构查找某个节点的下面的所有父节点或者子节点
- Strategy application of Dameng database
- Wechat - developed by wechat official account Net core access
- vfork执行时出现Segmentation fault
- [principles of multithreading and high concurrency: 1_cpu multi-level cache model]
- Source code analysis | resource loading resources
猜你喜欢

I2C 子系统(二):I3C spec

迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常

Installation and use of memory leak tool VLD

Yiwen takes you to know ZigBee

Build a private cloud disk cloudrev

SqlServer行转列PIVOT

I2C subsystem (IV): I2C debug

【翻译】具有集中控制平面的现代应用负载平衡

Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 2)

TCP 三次握手和四次挥手机制,TCP为什么要三次握手和四次挥手,TCP 连接建立失败处理机制
随机推荐
JMeter performance test JDBC request (query database to obtain database data) use "suggestions collection"
Update and return document in mongodb - update and return document in mongodb
Random Shuffle attention
The process of connecting MySQL with docker
Mathematical statistics -- Sampling and sampling distribution
Practice of traffic recording and playback in vivo
Kubernetes cluster log and efk architecture log scheme
【翻译】具有集中控制平面的现代应用负载平衡
Can netstat still play like this?
HW-初始准备
Opengauss database development and debugging tool guide
【富瀚6630编码存录像,用rtsp服务器及时间戳同步实现vlc观看录像】
2022-2028 global splicing display industry research and trend analysis report
Add MDF database file to SQL Server database, and the error is reported
[Fuhan 6630 encodes and stores videos, and uses RTSP server and timestamp synchronization to realize VLC viewing videos]
random shuffle注意
The difference between left value and right value in C language
What is the way out for children from poor families?
A2L file parsing based on CAN bus (2)
[leectode 2022.2.15] lucky numbers in the matrix