当前位置:网站首页>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连接工具,也能正常连接。

边栏推荐
- Thunderbolt Chrome extension caused the data returned by the server JS parsing page data exception
- Variable declarations following if statements
- Kubernetes family container housekeeper pod online Q & A?
- What is the way out for children from poor families?
- [translation] the background project has joined the CNCF incubator
- 内存泄漏工具VLD安装及使用
- C language beginner level - pointer explanation - paoding jieniu chapter
- 超好用的日志库 logzero
- Basic operation of binary tree (C language version)
- Use cve-2021-43893 to delete files on the domain controller
猜你喜欢

Add MDF database file to SQL Server database, and the error is reported

Three.js本地环境搭建

SqlServer行转列PIVOT
![[translation] modern application load balancing with centralized control plane](/img/b0/22e9bf098d580b2af67255ddcdc0d5.jpg)
[translation] modern application load balancing with centralized control plane

Build a private cloud disk cloudrev

HTB-Devel

Add some hard dishes to the interview: how to improve throughput and timeliness in delayed task scenarios!

Pytest (6) -fixture (Firmware)

你真的懂继电器吗?

Check log4j problems using stain analysis
随机推荐
Error when installing MySQL in Linux: starting mysql The server quit without updating PID file ([FAILED]al/mysql/data/l.pid
[shutter] banner carousel component (shutter_wiper plug-in | swiper component)
Tensorflow to pytorch notes; tf. gather_ Nd (x, y) to pytorch
Matlab tips (24) RBF, GRNN, PNN neural network
[Hcia]No.15 Vlan间通信
[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
《MATLAB 神经网络43个案例分析》:第43章 神经网络高效编程技巧——基于MATLAB R2012b新版本特性的探讨
How to implement append in tensor
[translation] modern application load balancing with centralized control plane
Basic operation of binary tree (C language version)
I2C 子系统(三):I2C Driver
Apple releases MacOS 11.6.4 update: mainly security fixes
一文带你了解 ZigBee
The core idea of performance optimization, dry goods sharing
【翻译】Flux安全。通过模糊处理获得更多信心
Chart. JS multitooltip tag - chart js multiTooltip labels
Baidu map - surrounding search
【翻译】后台项目加入了CNCF孵化器
Concrete CMS vulnerability
I2C subsystem (II): I3C spec