当前位置:网站首页>Docker method to install MySQL
Docker method to install MySQL
2022-07-07 01:17:00 【love_ 521_】
docker install mysql Whole process , Since using docker, I like this artifact more and more , The installation method is simple and clear , Installation method: :
Pull the mirror image
docker pull mysql:5.7 --platform linux/x86_64
Look at the mirror image
docker images
Create related folders
mkdir -p ~/mydocker/mysql/conf
mkdir -p ~/mydocker/mysql/logs
mkdir -p ~/mydocker/mysql/data
chmod -R 777 ~/mydocker/mysql/
Run container
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
Look at the container
docker ps
边栏推荐
- What are the differences between Oracle Linux and CentOS?
- The difference between spin and sleep
- ARM裸板调试之JTAG调试体验
- 阿里云中mysql数据库被攻击了,最终数据找回来了
- mysql: error while loading shared libraries: libtinfo. so. 5: cannot open shared object file: No such
- Fastdfs data migration operation record
- 深度学习框架TF安装
- Transformation transformation operator
- 2022 Google CTF SEGFAULT LABYRINTH wp
- Batch obtain the latitude coordinates of all administrative regions in China (to the county level)
猜你喜欢
Js逆向——捅了【马蜂窝】的ob混淆与加速乐
微信公众号发送模板消息
Transformation transformation operator
《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
Batch obtain the latitude coordinates of all administrative regions in China (to the county level)
HMM 笔记
[batch dos-cmd command - summary and summary] - jump, cycle, condition commands (goto, errorlevel, if, for [read, segment, extract string]), CMD command error summary, CMD error
Do you understand this patch of the interface control devaxpress WinForms skin editor?
资产安全问题或制约加密行业发展 风控+合规成为平台破局关键
Send template message via wechat official account
随机推荐
Implementation principle of waitgroup in golang
【js】获取当前时间的前后n天或前后n个月(时分秒年月日都可)
Wood extraction in Halcon
HMM notes
windows安装mysql8(5分钟)
Eventbus source code analysis
Supersocket 1.6 creates a simple socket server with message length in the header
免费白嫖的图床对比
Neon Optimization: About Cross access and reverse cross access
Periodic flash screen failure of Dell notebook
NEON优化:性能优化常见问题QA
boot - prometheus-push gateway 使用
A brief history of deep learning (II)
pytorch之数据类型tensor
2022 Google CTF SEGFAULT LABYRINTH wp
[JS] obtain the N days before and after the current time or the n months before and after the current time (hour, minute, second, year, month, day)
[Niuke] b-complete square
JTAG debugging experience of arm bare board debugging
Mongodb client operation (mongorepository)
How do novices get started and learn PostgreSQL?