当前位置:网站首页>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 !
边栏推荐
- 每人每年最高500万经费!选人不选项目,专注基础科研,科学家主导腾讯出资的「新基石」启动申报...
- What does security capability mean? What are the protection capabilities of different levels of ISO?
- [unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
- Is "applet container technology" a gimmick or a new outlet?
- 服务器的系统怎么选者
- The statement that allows full table scanning does not seem to take effect set odps sql. allow. fullscan=true; I
- Devsecops software R & D security practice - release
- MySQL authentication bypass vulnerability (cve-2012-2122)
- Modules that can be used by both the electron main process and the rendering process
- Interview question: AOF rewriting mechanism, redis interview must ask!!!
猜你喜欢

Mysql 身份认证绕过漏洞(CVE-2012-2122)

(1) Chang'an chain learning notes - start Chang'an chain

ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型

#DAYU200体验官# 在DAYU200运行基于ArkUI-eTS的智能晾晒系统页面

【全网首发】Redis系列3:高可用之主从架构的

Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi

Let's see through the network i/o model from beginning to end

Station B Big utilise mon monde pour faire un réseau neuronal convolutif, Le Cun Forward! Le foie a explosé pendant 6 mois, et un million de fois.

动作捕捉用于蛇运动分析及蛇形机器人开发

B站大佬用我的世界搞出卷积神经网络,LeCun转发!爆肝6个月,播放破百万
随机推荐
监控界的最强王者,没有之一!
How to achieve text animation effect
石墨文档:4大对策解决企业文件信息安全问题
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
The application of machine learning in software testing
mysql查看表结构的三种方法总结
Cloud native technology container knowledge points
B站大佬用我的世界搞出卷积神经网络,LeCun转发!爆肝6个月,播放破百万
DR-Net: dual-rotation network with feature map enhancement for medical image segmentation
Precise drag and drop within a contentable
Dockermysql modifies the root account password and grants permissions
DockerMySQL无法被宿主机访问的问题解决
[untitled]
On file uploading of network security
同构+跨端,懂得小程序+kbone+finclip就够了!
mysql-cdc 的jar包 ,在flink运行模式下,是不是要放在不同的地方呢?
Nftscan Developer Platform launches Pro API commercial services
flinksql select id ,count(*) from a group by id .
[launched in the whole network] redis series 3: high availability of master-slave architecture
问下各位,有没有flink sql生成作业的文档啊或是案列啊知道flink cli可以建表和指定目