当前位置:网站首页>docker修改挂载到宿主机上的mysql配置文件不生效?
docker修改挂载到宿主机上的mysql配置文件不生效?
2022-07-26 06:50:00 【CSDN问答】
使用docker创建mysql容器并将配置文件,数据,日志等挂载到宿主机上,之后通过修改挂载的mysql配置文件开启binlog日志,重启容器后不生效,如果单独创建mysql容器不挂载配置文件,直接取mysql容器中修改配置文件可以生效,下面是创建mysql容器命令
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
修改的是挂载到宿主机上的配置文件为 mysqld.cnf
边栏推荐
- AcWing-每日一题
- 『牛客|每日一题』模板栈
- Regular expressions and calling related functions in C language
- Rust language - slice type (&[u8])
- Differences and relations between varchar and nvarchar in database
- 【Star项目】小帽飞机大战(二)
- What are the main reasons for server crash
- 快速排序(quick-sort)
- XSS-labs(1-10)闯关详解
- Map dictionary and constraints of go
猜你喜欢

你了解MySQL都包含哪些“零件“吗?

二叉树知识总结
![[hard ten treasures] - 7.2 [dynamic RAM] analysis of the difference between DDR4 and DDR3](/img/e0/690809c029346fbd0889c16d610145.png)
[hard ten treasures] - 7.2 [dynamic RAM] analysis of the difference between DDR4 and DDR3

On the difference between Eval and assert

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

Curve curvature display

Uitoolkit tool template project

Integrated design of signal processing systems - Design of solver functions (continuous and discrete time systems)

Delete ^m from VIM

从Architecture带你认识JVM
随机推荐
Downloadutilse tool class without error
你了解MySQL都包含哪些“零件“吗?
二叉树知识总结
Uitoolkit tool template project
Binary tree knowledge summary
【图像隐藏】基于混合 DWT-HD-SVD 的数字图像水印方法技术附matlab代码
【硬十宝典】——7.1【动态RAM】DDR硬件设计要点
打开服务器上的 IncludeExceptionDetailInFaults (从 ServiceBehaviorAttribute 或从 <serviceDebug> 配置行为)以便将异常信息发送回
Display Chinese characters in uitoolkit
buuReserve(4)
vulnhub Lampião: 1
MySql 执行计划
堆排序(heap-sort)
Overview of image classification of vision transformer must read series
"Niuke | daily question" inverse Polish expression
Force buckle - 4. Find the median of two positive arrays
使用Scanner从键盘获取多种数据类型
原生高性能抓包工具Proxyman,送给爱学习的你
[image hiding] digital image watermarking method technology based on hybrid dwt-hd-svd with matlab code
Ruby on rails Code Execution Vulnerability (cve-2020-8163) technical analysis, research, judgment and protection