当前位置:网站首页>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 !
边栏推荐
- None of the strongest kings in the monitoring industry!
- flinksql select id ,count(*) from a group by id .
- 让 Rust 库更优美的几个建议!你学会了吗?
- 【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
- Devsecops software R & D security practice - release
- 使用MitmProxy离线缓存360度全景网页
- AI表现越差,获得奖金越高?纽约大学博士拿出百万重金,悬赏让大模型表现差劲的任务...
- [step on pit collection] attempting to deserialize object on CUDA device+buff/cache occupy too much +pad_ sequence
- Hard core observation 545 50 years ago, Apollo 15 made a feather landing experiment on the moon
- koa2对Json数组增删改查
猜你喜欢

PDF批量拆分、合并、书签提取、书签写入小工具

Bipartite graph determination

企業不想換掉用了十年的老系統

JS addition, deletion, modification and query of JSON array

B站大佬用我的世界搞出卷積神經網絡,LeCun轉發!爆肝6個月,播放破百萬

室内LED显示屏应该怎么选择?这5点注意事项必须考虑在内

Hard core observation 545 50 years ago, Apollo 15 made a feather landing experiment on the moon

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

Cocoscreator+typescripts write an object pool by themselves

On file uploading of network security
随机推荐
ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics
How can Oracle CDC deserialize with jsondebeziumdeserializationschema
MySQL authentication bypass vulnerability (cve-2012-2122)
PDF批量拆分、合并、书签提取、书签写入小工具
mysql拆分字符串作为查询条件的示例代码
js导入excel&导出excel
On file uploading of network security
Should the jar package of MySQL CDC be placed in different places in the Flink running mode?
案例推荐丨安擎携手伙伴,保障“智慧法院”更加高效
Matlab tips (27) grey prediction
浅谈现在的弊端与未来的发展
Les entreprises ne veulent pas remplacer un système vieux de dix ans
Two week selection of tdengine community issues | phase II
How to choose indoor LED display? These five considerations must be taken into account
GPT-3当一作自己研究自己,已投稿,在线蹲一个同行评议
Cover fake big empty talk in robot material sorting
Cloud native (32) | kubernetes introduction to platform storage system
面试题:AOF重写机制,redis面试必问!!!
借助这个宝藏神器,我成为全栈了
(1) Chang'an chain learning notes - start Chang'an chain