当前位置:网站首页>docker 部署 mysql5.7.35
docker 部署 mysql5.7.35
2022-07-28 05:17:00 【weixin_45624186】
首先启动docker :systemctl start docker
然后就是拉取mysql镜像 docker pull mysql :5.7.35
使用 docker images查看你所拉取的镜像是否有mysql镜像;
创建一个新镜像
docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7.35
这里可以输入 docker ps -a 查看你所启动的镜像
接下来就是进入容器
docker exec -it mysql bash
注意:如果这里出现了没进入mysql容器那么就执行 :docker start + 镜像 id;
接下来就是输入密码
mysql -uroot -p
接下来就可以使用我们十分受欢迎的mysql啦
嘻嘻
边栏推荐
- 使用navicat或plsql导出csv格式,超过15位数字后面变成000(E+19)的问题
- yandex robots txt
- 在ruoyi生成的对应数据库的代码 之后我该怎么做才能做出下边图片的样子
- 【MySQL】MySQL时区问题、数据库时间相差8小时问题解决
- Scope, execution process and life cycle of bean
- 【CVPR2022】On the Integration of Self-Attention and Convolution
- FeignClient 调用GET 方法报错 ResultVO{result=未知异常,异常详情:Request method ‘POST‘ not supported
- About MySQL group_ What concat has to say
- Class class added in ES6
- CPU and memory usage are too high. How to modify RTSP round robin detection parameters to reduce server consumption?
猜你喜欢

First acquaintance with C language (2)

Melt cloud x chat, create a "stress free social" habitat with sound

Microservice failure mode and building elastic system

Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 2)

微服务故障模式与构建弹性系统

Why is MD5 irreversible, but it may also be decrypted by MD5 free decryption website

架构设计思考之一(SSO设计)

SSLError

【CVPR2022】On the Integration of Self-Attention and Convolution

Message forwarding mechanism -- save your program from crashing
随机推荐
Non functional test
【ARXIV2204】Vision Transformers for Single Image Dehazing
YUV to uiimage
FeignClient 调用GET 方法报错 ResultVO{result=未知异常,异常详情:Request method ‘POST‘ not supported
Microservice failure mode and building elastic system
New methods and features of ES6 built-in objects
I've been in an outsourcing company for two years, and I feel like I'm going to die
阿里怎么用DDD来拆分微服务?
多系统架构设计思考
Specific differences between typedef and define
【单例模式】懒汉模式的线程安全问题
Advanced assignment method of ES6 -- Deconstruction assignment
Dell remote control card uses ipmitools to set IPMI
The solution after the samesite by default cookies of Chrome browser 91 version are removed, and the solution that cross domain post requests in chrome cannot carry cookies
【ARXIV2203】SepViT: Separable Vision Transformer
数据库日期类型全部为0
【内功心法】——函数栈帧的创建和销毁(C实现)
Reading sdwebimage source code Notes
解决Oracle使用in语句不能超过1000问题
JMeter related knowledge sorting