当前位置:网站首页>docker 方法安装mysql
docker 方法安装mysql
2022-07-06 17:30:00 【love_521_】
docker安装mysql全过程,自从使用了docker,越来越喜欢这个神器,安装方法简单明了,安装方法如下:
拉取镜像
docker pull mysql:5.7 --platform linux/x86_64
查看镜像
docker images
创建相关的文件夹
mkdir -p ~/mydocker/mysql/conf
mkdir -p ~/mydocker/mysql/logs
mkdir -p ~/mydocker/mysql/data
chmod -R 777 ~/mydocker/mysql/
运行容器
docker run -p 3306:3306 --name mysql -v ~/mydocker/mysql/conf:/etc/mysql/conf.d -v ~/mydocker/mysql/logs:/var/log/mysql -v ~/mydocker/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
查看容器
docker ps
边栏推荐
- Return to blowing marshland -- travel notes of zhailidong, founder of duanzhitang
- ESP Arduino (IV) PWM waveform control output
- Trace tool for MySQL further implementation plan
- Learning notes 5: ram and ROM
- A brief history of deep learning (II)
- Openjudge noi 1.7 08: character substitution
- Address information parsing in one line of code
- SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
- Eventbus source code analysis
- Tensorflow GPU installation
猜你喜欢

重上吹麻滩——段芝堂创始人翟立冬游记
![[hfctf2020]babyupload session parsing engine](/img/db/6003129bc16f943ad9868561a2d5dc.png)
[hfctf2020]babyupload session parsing engine
![[HFCTF2020]BabyUpload session解析引擎](/img/db/6003129bc16f943ad9868561a2d5dc.png)
[HFCTF2020]BabyUpload session解析引擎
![[Batch dos - cmd Command - Summary and Summary] - String search, find, Filter Commands (FIND, findstr), differentiation and Analysis of Find and findstr](/img/4a/0dcc28f76ce99982f930c21d0d76c3.png)
[Batch dos - cmd Command - Summary and Summary] - String search, find, Filter Commands (FIND, findstr), differentiation and Analysis of Find and findstr

动态规划思想《从入门到放弃》
![[force buckle]41 Missing first positive number](/img/2e/6a0d3ea9264798f67be1ec1c81ca9e.jpg)
[force buckle]41 Missing first positive number

详解OpenCV的矩阵规范化函数normalize()【范围化矩阵的范数或值范围(归一化处理)】,并附NORM_MINMAX情况下的示例代码

pyflink的安装和测试
做微服务研发工程师的一年来的总结

windows安装mysql8(5分钟)
随机推荐
负载均衡性能参数如何测评?
身体质量指数程序,入门写死的小程序项目
Installation and testing of pyflink
Summary of being a microservice R & D Engineer in the past year
Explain in detail the matrix normalization function normalize() of OpenCV [norm or value range of the scoped matrix (normalization)], and attach norm_ Example code in the case of minmax
Fastdfs data migration operation record
做微服务研发工程师的一年来的总结
Implementation principle of waitgroup in golang
How do novices get started and learn PostgreSQL?
资产安全问题或制约加密行业发展 风控+合规成为平台破局关键
Dell筆記本周期性閃屏故障
深入探索编译插桩技术(四、ASM 探秘)
Segmenttree
pyflink的安装和测试
Zabbix 5.0:通过LLD方式自动化监控阿里云RDS
Building a dream in the digital era, the Xi'an station of the city chain science and Technology Strategy Summit ended smoothly
Installation and testing of pyflink
【案例分享】网络环路检测基本功能配置
ARM裸板调试之JTAG调试体验
树莓派/arm设备上安装火狐Firefox浏览器