当前位置:网站首页>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 !
边栏推荐
- 「小程序容器技术」,是噱头还是新风口?
- 企業不想換掉用了十年的老系統
- Cocoscreator+typescripts write an object pool by themselves
- mysql-cdc 的jar包 ,在flink运行模式下,是不是要放在不同的地方呢?
- 食品里的添加剂品种越多,越不安全吗?
- 每日刷题记录 (十五)
- How does crmeb mall system help marketing?
- 不要再说微服务可以解决一切问题了
- [step on pit collection] attempting to deserialize object on CUDA device+buff/cache occupy too much +pad_ sequence
- ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
猜你喜欢
Custom swap function
Docker starts MySQL and -emysql_ ROOT_ Password = my secret PW problem solving
NFTScan 开发者平台推出 Pro API 商业化服务
docker启动mysql及-eMYSQL_ROOT_PASSWORD=my-secret-pw问题解决
Let's see through the network i/o model from beginning to end
企业不想换掉用了十年的老系统
今日睡眠质量记录78分
Bipartite graph determination
European Bioinformatics Institute 2021 highlights report released: nearly 1million proteins have been predicted by alphafold
PDF批量拆分、合并、书签提取、书签写入小工具
随机推荐
js导入excel&导出excel
Automatically update selenium driver chromedriver
让 Rust 库更优美的几个建议!你学会了吗?
Word2vec (skip gram and cbow) - pytorch
TDengine 社区问题双周精选 | 第二期
asp读取oracle数据库问题
[launched in the whole network] redis series 3: high availability of master-slave architecture
华为云GaussDB(for Redis)揭秘第21期:使用高斯Redis实现二级索引
B站大佬用我的世界搞出卷积神经网络,LeCun转发!爆肝6个月,播放破百万
spark调优(二):UDF减少JOIN和判断
[compilation principle] LR (0) analyzer half done
How to choose indoor LED display? These five considerations must be taken into account
Bipartite graph determination
Demonstration of the development case of DAPP system for money deposit and interest bearing financial management
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.
GPT-3当一作自己研究自己,已投稿,在线蹲一个同行评议
Thinkphp5 multi table associative query method join queries two database tables, and the query results are spliced and returned
动作捕捉用于蛇运动分析及蛇形机器人开发
【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
Dockermysql modifies the root account password and grants permissions