当前位置:网站首页>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 !
边栏推荐
- 不要再说微服务可以解决一切问题了
- Case recommendation: An Qing works with partners to ensure that the "smart court" is more efficient
- GPT-3当一作自己研究自己,已投稿,在线蹲一个同行评议
- None of the strongest kings in the monitoring industry!
- TDengine 社区问题双周精选 | 第二期
- What can be done for traffic safety?
- CRMEB商城系统如何助力营销?
- #DAYU200体验官# 在DAYU200运行基于ArkUI-eTS的智能晾晒系统页面
- Dayu200 experience officer runs the intelligent drying system page based on arkui ETS on dayu200
- Improving Multimodal Accuracy Through Modality Pre-training and Attention
猜你喜欢
浅谈网络安全之文件上传
Designed for decision tree, the National University of Singapore and Tsinghua University jointly proposed a fast and safe federal learning system
#DAYU200体验官# 在DAYU200运行基于ArkUI-eTS的智能晾晒系统页面
同构+跨端,懂得小程序+kbone+finclip就够了!
AI表现越差,获得奖金越高?纽约大学博士拿出百万重金,悬赏让大模型表现差劲的任务...
CSDN 上传图片取消自动加水印的方法
(shuttle) navigation return interception: willpopscope
The problem that dockermysql cannot be accessed by the host machine is solved
Cloud native (32) | kubernetes introduction to platform storage system
DR-Net: dual-rotation network with feature map enhancement for medical image segmentation
随机推荐
Flutter life cycle
UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
Motion capture for snake motion analysis and snake robot development
What does front-end processor mean? What is the main function? What is the difference with fortress machine?
DockerMySQL无法被宿主机访问的问题解决
不要再说微服务可以解决一切问题了
Graphite document: four countermeasures to solve the problem of enterprise document information security
AcWing 4300. Two operations (minimum number of BFS searches)
今日睡眠质量记录78分
docker mysql5.7如何设置不区分大小写
同一个作业有两个source,同一链接不同数据库账号,为何第二个链接查出来的数据库列表是第一个账号的
Docker mysql5.7 how to set case insensitive
Efficient ETL Testing
js导入excel&导出excel
Cover fake big empty talk in robot material sorting
请问oracle-cdc用JsonDebeziumDeserializationSchema反序列化
借助这个宝藏神器,我成为全栈了
「小程序容器技术」,是噱头还是新风口?
PDF批量拆分、合并、书签提取、书签写入小工具
允许全表扫描 那个语句好像不生效set odps.sql.allow.fullscan=true;我