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

边栏推荐
- How to limit the size of the dictionary- How to limit the size of a dictionary?
- 用docker 連接mysql的過程
- How to select the minimum and maximum values of columns in the data table- How to select min and max values of a column in a datatable?
- Check log4j problems using stain analysis
- Apple releases MacOS 11.6.4 update: mainly security fixes
- Pytest (6) -fixture (Firmware)
- Process the dataset and use labelencoder to convert all IDs to start from 0
- How to return ordered keys after counter counts the quantity
- Error invalid bound statement (not found): com ruoyi. stock. mapper. StockDetailMapper. XXXX solution
- The base value is too large (the error is marked as "08") [duplicate] - value too great for base (error token is'08') [duplicate]
猜你喜欢

MATLAB小技巧(24)RBF,GRNN,PNN-神经网络

左连接,内连接

Deep reinforcement learning for intelligent transportation systems: a survey paper reading notes

函数栈帧的创建与销毁

Le processus de connexion mysql avec docker

Practice of traffic recording and playback in vivo

一文带你了解 ZigBee

vfork执行时出现Segmentation fault
![[fluent] listview list (map method description of list set | vertical list | horizontal list | code example)](/img/e5/c01f760b07b495f5b048ea367e0c21.gif)
[fluent] listview list (map method description of list set | vertical list | horizontal list | code example)

Deep Reinforcement Learning for Intelligent Transportation Systems: A Survey 论文阅读笔记
随机推荐
HTB-Devel
HW initial preparation
Source code analysis | layout file loading process
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
Basic operation of binary tree (C language version)
ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc
The difference between left value and right value in C language
迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常
Counter统计数量后,如何返回有序的key
sql server数据库添加 mdf数据库文件,遇到的报错
tensor中的append应该如何实现
Cron表达式介绍
左值右指解释的比较好的
How to change the panet layer in yolov5 to bifpn
基于can总线的A2L文件解析(2)
Apple releases MacOS 11.6.4 update: mainly security fixes
Random shuffle note
【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
I2C 子系統(四):I2C debug
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]