当前位置:网站首页>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
边栏推荐
- [case sharing] basic function configuration of network loop detection
- pytorch之数据类型tensor
- 身体质量指数程序,入门写死的小程序项目
- Installation and testing of pyflink
- [C language] dynamic address book
- 实现mysql与ES的增量数据同步
- Fastdfs data migration operation record
- 深入探索编译插桩技术(四、ASM 探秘)
- Rainstorm effect in levels - ue5
- Informatics Olympiad YBT 1171: factors of large integers | 1.6 13: factors of large integers
猜你喜欢
[牛客] [NOIP2015]跳石头
Asset security issues or constraints on the development of the encryption industry, risk control + compliance has become the key to breaking the platform
[100 cases of JVM tuning practice] 05 - Method area tuning practice (Part 2)
ESP Arduino (IV) PWM waveform control output
Make a simple graphical interface with Tkinter
身体质量指数程序,入门写死的小程序项目
Part 7: STM32 serial communication programming
Provincial and urban level three coordinate boundary data CSV to JSON
UI control telerik UI for WinForms new theme - vs2022 heuristic theme
Do you understand this patch of the interface control devaxpress WinForms skin editor?
随机推荐
paddlehub应用出现paddle包报错的问题
JTAG principle of arm bare board debugging
【JVM调优实战100例】04——方法区调优实战(上)
ARM裸板调试之JTAG原理
Chenglian premium products has completed the first step to enter the international capital market by taking shares in halber international
Zabbix 5.0:通过LLD方式自动化监控阿里云RDS
windows安装mysql8(5分钟)
Dell Notebook Periodic Flash Screen Fault
腾讯云 WebShell 体验
做微服务研发工程师的一年来的总结
自旋与sleep的区别
【批處理DOS-CMD命令-匯總和小結】-字符串搜索、查找、篩選命令(find、findstr),Find和findstr的區別和辨析
[HFCTF2020]BabyUpload session解析引擎
深度学习简史(一)
动态规划思想《从入门到放弃》
在jupyter中实现实时协同是一种什么体验
[force buckle]41 Missing first positive number
[hfctf2020]babyupload session parsing engine
Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
新手如何入门学习PostgreSQL?