当前位置:网站首页>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
边栏推荐
- What are the main reasons for server crash
- String and memory functions
- UIToolkit工具模板工程
- [hardware ten treasures] - 7.1 [dynamic RAM] key points of DDR hardware design
- Problems related to the use of ucharts (components) in uniapp
- 快速排序(quick-sort)
- Go channel
- Overview of image classification of vision transformer must read series
- The "darkest hour" has not come yet. Cherish every bullet 2020-03-22
- Tiktok web s_ v_ web_ Analysis and implementation of ID parameter generation
猜你喜欢

SQL optimization scheme

MySQL Foundation (II) -- MySQL Foundation

The results of the soft test can be checked, and the entry to query the results of the soft test has been opened in the first half of 2022

The creation of "harmonyos" project and the use of virtual machines

浅谈eval与assert一句话木马执行区别

Address resolution ARP Protocol

buuReserve(4)

Curve curvature display

CS5801_ HDMI to EDP advantage replaces lt6711a solution

7. Reverse Integer整数反转
随机推荐
数据库中varchar和Nvarchar区别与联系
信号处理系统综合设计-求解器函数的设计(连续和离散时间系统)
少儿编程 电子学会图形化编程等级考试Scratch一级真题解析(选择题)2022年6月
【毕业季_进击的技术er】送别过去两年迷茫的自己。重整旗鼓,大三我来啦
在第一次使用德国小鸡要注意的地方
归并排序(merge_sort)
服装行业如何实现数字化生产模式
7. Reverse integer integer
Address resolution ARP Protocol
『HarmonyOS』探索HarmonyOS应用
Regular expressions and calling related functions in C language
Rust语言- Slice(切片)类型(&[u8])
How to realize digital production mode in garment industry
On the difference between Eval and assert
AcWing-每日一题
An album has been released, from introductory practical demonstration to advanced live Q & A, playing with container service so easy~
mysql优化之show profile的使用及分析
Download, installation and development environment construction of "harmonyos" deveco
Which "digital currencies" can survive this winter? 2020-03-30
Children's programming electronic society graphical programming level examination scratch level 1 real problem analysis (multiple choice) June 2022