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

边栏推荐
- Deep Reinforcement Learning for Intelligent Transportation Systems: A Survey 论文阅读笔记
- [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
- I2C 子系统(四):I2C debug
- 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?
- ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc
- 一文带你了解 ZigBee
- 用docker 連接mysql的過程
- 为什么会选择框架?选择什么样的框架
- [translation] modern application load balancing with centralized control plane
- Error when installing MySQL in Linux: starting mysql The server quit without updating PID file ([FAILED]al/mysql/data/l.pid
猜你喜欢

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

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

Kubernetes family container housekeeper pod online Q & A?

From C to capable -- use the pointer as a function parameter to find out whether the string is a palindrome character

random shuffle注意

Three. JS local environment setup

Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 2)
![[translation] the background project has joined the CNCF incubator](/img/0b/e3d2674b1a1cba3ea398cbcb1a018a.png)
[translation] the background project has joined the CNCF incubator

分布式事务
![[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)](/img/6a/ae44ddb090ce6373f04a550a15f973.jpg)
[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)
随机推荐
二维格式数组格式索引下标连续问题导致 返回json 格式问题
js根据树结构查找某个节点的下面的所有父节点或者子节点
Kubernetes cluster log and efk architecture log scheme
Sous - système I2C (IV): débogage I2C
[C语言]给账号密码进行MD5加密
The difference between left value and right value in C language
Pytest (6) -fixture (Firmware)
I2C subsystem (II): I3C spec
Basic operation of binary tree (C language version)
How to return ordered keys after counter counts the quantity
SQL statement
Add MDF database file to SQL Server database, and the error is reported
What does it mean when lambda is not entered?
I2C subsystem (IV): I2C debug
2022-2028 global splicing display industry research and trend analysis report
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]
迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常
How to implement append in tensor
As a leader, how to control the code version and demand development when the epidemic comes| Community essay solicitation
Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 2)