当前位置:网站首页>Docker modifying the MySQL configuration file attached to the host does not take effect?
Docker modifying the MySQL configuration file attached to the host does not take effect?
2022-07-26 06:54:00 【CSDN Q & A】
Use docker establish mysql Container and put the configuration file , data , Log, etc. are attached to the host , After that, you can modify the attached mysql Profile on binlog journal , It will not take effect after restarting the container , If created separately mysql The container does not mount the configuration file , Take... Directly mysql Modifying the configuration file in the container can take effect , Here is the creation mysql Container order
docker run -d -p 3306:3306 --name mysql -v mysql-conf:/etc/mysql/mysql.conf.d -v mysql-data:/var/lib/mysql -v mysql-log:/var/log/mysql -e MYSQL_ROOT_PASSWORD=123456 --restart=always --privileged=true bingozhou/mysql5.7
The modified configuration file attached to the host is mysqld.cnf
边栏推荐
- 你了解MySQL都包含哪些“零件“吗?
- 『牛客|每日一题』逆波兰表达式
- MySQL optimized index and index invalidation
- 『期末复习』16/32位微处理器(8086)基本寄存器
- Deep learning - CV, CNN, RNN
- < II> ObjectARX development: create and edit basic graphic objects
- "Final review" 16/32-bit microprocessor (8086) basic register
- How to solve the crash when the easygbs platform edits the device management group?
- 日志轮转logrotate
- buuReserve(4)
猜你喜欢

C # use log4net plug-in to output logs to files

"Niuke | daily question" inverse Polish expression

【无标题】转载

二叉树知识总结

XSS-labs(1-10)闯关详解

Introduce you to JVM from architecture
![Esxi 7.0 installation supports mellanox technologies mt26448 [connectx en 10gige, PCIe 2.0 5gt/s] driver, and supports the cheapest 10GB dual fiber network card](/img/51/a5282b657b1dfed2dac476c1efee2d.png)
Esxi 7.0 installation supports mellanox technologies mt26448 [connectx en 10gige, PCIe 2.0 5gt/s] driver, and supports the cheapest 10GB dual fiber network card

原生高性能抓包工具Proxyman,送给爱学习的你

CS5801_HDMI转EDP优势替代LT6711A方案

针对前面文章的整改思路
随机推荐
【无标题】转载
28. Implement strstr() implement strstr()
"Harmonyos" explore harmonyos applications
『牛客|每日一题』逆波兰表达式
MySql 执行计划
浅谈eval与assert一句话木马执行区别
Go language configuration vscade
Esxi 7.0 installation supports mellanox technologies mt26448 [connectx en 10gige, PCIe 2.0 5gt/s] driver, and supports the cheapest 10GB dual fiber network card
Problems related to the use of ucharts (components) in uniapp
Deep learning - CV, CNN, RNN
Introduce you to JVM from architecture
二叉树知识总结
TCP protocol -- message format, connection establishment, reliable transmission, congestion control
『HarmonyOS』DevEco的下载安装与开发环境搭建
C # use log4net plug-in to output logs to files
[Star Project] small hat aircraft War (III)
Sorting problem: bubble sort, select sort, insert sort
「“xxxx“正在运行,可能导致系统卡顿,降低待机时间,点按关闭」处理
源代码加密技术发展阶段
『牛客|每日一题』模板栈