当前位置:网站首页>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
2. Enter the inside of the container docker exec -it 4ae9238c176a /bin/bash
3. Sign in mysql database mysql -uroot -p123456
4. see binlog Whether the log is on , Close after viewing mysqlsee :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
7. restart mysql Containers , And check whether the startup is successful docker restart 4ae9238c176adocker ps
8. see binlog Whether the log status is enabled docker exec -it 4ae9238c176a /bin/bashmysql -uroot -p123456show variables like 'log_bin';exit
9. Check the log 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 !
边栏推荐
- Designed for decision tree, the National University of Singapore and Tsinghua University jointly proposed a fast and safe federal learning system
- [compilation principle] LR (0) analyzer half done
- What can be done for traffic safety?
- Isomorphism + cross end, knowing applet +kbone+finclip is enough!
- koa2对Json数组增删改查
- 【全网首发】Redis系列3:高可用之主从架构的
- DR-Net: dual-rotation network with feature map enhancement for medical image segmentation
- Station B boss used my world to create convolutional neural network, Lecun forwarding! Burst the liver for 6 months, playing more than one million
- [step on pit collection] attempting to deserialize object on CUDA device+buff/cache occupy too much +pad_ sequence
- Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
猜你喜欢
(flutter2) as import old project error: inheritfromwidgetofexacttype
Improving Multimodal Accuracy Through Modality Pre-training and Attention
MySQL数据库之JDBC编程
Coscon'22 community convening order is coming! Open the world, invite all communities to embrace open source and open a new world~
Method of canceling automatic watermarking of uploaded pictures by CSDN
B站大佬用我的世界搞出卷積神經網絡,LeCun轉發!爆肝6個月,播放破百萬
Efficient ETL Testing
DockerMySQL无法被宿主机访问的问题解决
Bipartite graph determination
Hard core observation 545 50 years ago, Apollo 15 made a feather landing experiment on the moon
随机推荐
JS addition, deletion, modification and query of JSON array
How to choose the server system
Motion capture for snake motion analysis and snake robot development
QT signal and slot
MySQL connected vscode successfully, but this error is reported
Some suggestions for foreign lead2022 in the second half of the year
室内LED显示屏应该怎么选择?这5点注意事项必须考虑在内
docker中mysql开启日志的实现步骤
(DART) usage supplement
koa2对Json数组增删改查
UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
Custom swap function
Huawei cloud gaussdb (for redis) unveils issue 21: using Gauss redis to achieve secondary indexing
The application of machine learning in software testing
同构+跨端,懂得小程序+kbone+finclip就够了!
动作捕捉用于蛇运动分析及蛇形机器人开发
DR-Net: dual-rotation network with feature map enhancement for medical image segmentation
(shuttle) navigation return interception: willpopscope
石墨文档:4大对策解决企业文件信息安全问题
实现多彩线条摆出心形