当前位置:网站首页>Implementation steps of mysql start log in docker
Implementation steps of mysql start log in docker
2022-07-06 23:20:00 【1024 questions】
1. Check out Ann mysql Container status
2. Enter the inside of the container
3. Sign in mysql database
4. see binlog Whether the log is on , Close after viewing mysql
5. Edit the configuration file to open binlog, Set up log file
6. Exit the container
7. restart mysql Containers , And check whether the startup is successful
8. see binlog Whether the log status is enabled
9. Check the log
1. Check out Ann mysql Container status docker ps
docker exec -it 4ae9238c176a /bin/bash
mysql -uroot -p123456
see :show variables like 'log_bin';
close :exit
remarks :ON Open log ,OFF Close the log
5. Edit the configuration file to open binlog, Set up log file5.1 First in /etc Under the folder mysqld.cnf File path
find /etc -name mysqld.cnf
5.2 edit mysqld.cnf file
vim /etc/mysql/mysql.conf.d/mysqld.cnf
remarks : without vim compiler Install first vim compiler
apt-get updateapt-get install vim
remarks : Guarantee general_log_file Path exists ,( This is my path ) If there is no Then the path configuration refers to log_error Configuration path
remarks : Pay attention to saving after adding , preservation , preservation
6. Exit the containerexit
docker restart 4ae9238c176adocker ps
docker exec -it 4ae9238c176a /bin/bashmysql -uroot -p123456show variables like 'log_bin';exit
This is about docker in mysql This is the end of the article on the implementation steps of opening logs , More about docker mysql Open the log content, please search the previous articles of SDN or continue to browse the relevant articles below. I hope you will support SDN more in the future !
边栏推荐
- How does crmeb mall system help marketing?
- asp读取oracle数据库问题
- 安全保护能力是什么意思?等保不同级别保护能力分别是怎样?
- How to choose indoor LED display? These five considerations must be taken into account
- Efficient ETL Testing
- mysql连接vscode成功了,但是报这个错
- AcWing 4300. Two operations (minimum number of BFS searches)
- (DART) usage supplement
- 同构+跨端,懂得小程序+kbone+finclip就够了!
- Bipartite graph determination
猜你喜欢
#DAYU200体验官# 首页aito视频&Canvas绘制仪表盘(ets)
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
(shuttle) navigation return interception: willpopscope
云原生(三十二) | Kubernetes篇之平台存储系统介绍
DR-Net: dual-rotation network with feature map enhancement for medical image segmentation
Isomorphism + cross end, knowing applet +kbone+finclip is enough!
MySQL authentication bypass vulnerability (cve-2012-2122)
DockerMySQL无法被宿主机访问的问题解决
案例推荐丨安擎携手伙伴,保障“智慧法院”更加高效
每人每年最高500万经费!选人不选项目,专注基础科研,科学家主导腾讯出资的「新基石」启动申报...
随机推荐
安全保护能力是什么意思?等保不同级别保护能力分别是怎样?
Devsecops software R & D security practice - release
【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
企業不想換掉用了十年的老系統
The problem that dockermysql cannot be accessed by the host machine is solved
C three ways to realize socket data reception
Redis 持久化机制
js對JSON數組的增删改查
B站大佬用我的世界搞出卷積神經網絡,LeCun轉發!爆肝6個月,播放破百萬
Should the jar package of MySQL CDC be placed in different places in the Flink running mode?
Case recommendation: An Qing works with partners to ensure that the "smart court" is more efficient
Isomorphism + cross end, knowing applet +kbone+finclip is enough!
Let's see through the network i/o model from beginning to end
Automatically update selenium driver chromedriver
(1) Chang'an chain learning notes - start Chang'an chain
每人每年最高500万经费!选人不选项目,专注基础科研,科学家主导腾讯出资的「新基石」启动申报...
On file uploading of network security
Pdf batch splitting, merging, bookmark extraction, bookmark writing gadget
石墨文档:4大对策解决企业文件信息安全问题
Detailed explanation of ThreadLocal