当前位置:网站首页>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 !
边栏推荐
- Case recommendation: An Qing works with partners to ensure that the "smart court" is more efficient
- MySQL数据库之JDBC编程
- UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
- With the help of this treasure artifact, I became the whole stack
- Redis 持久化机制
- QT signal and slot
- Dayu200 experience officer runs the intelligent drying system page based on arkui ETS on dayu200
- 案例推荐丨安擎携手伙伴,保障“智慧法院”更加高效
- Automatically update selenium driver chromedriver
- OpenSSL: a full-featured toolkit for TLS and SSL protocols, and a general encryption library
猜你喜欢
同构+跨端,懂得小程序+kbone+finclip就够了!
不要再说微服务可以解决一切问题了
Case recommendation: An Qing works with partners to ensure that the "smart court" is more efficient
Station B boss used my world to create convolutional neural network, Lecun forwarding! Burst the liver for 6 months, playing more than one million
MySQL数据库之JDBC编程
What can be done for traffic safety?
借助这个宝藏神器,我成为全栈了
CSDN 上传图片取消自动加水印的方法
Hard core observation 545 50 years ago, Apollo 15 made a feather landing experiment on the moon
Isomorphism + cross end, knowing applet +kbone+finclip is enough!
随机推荐
Automatically update selenium driver chromedriver
docker mysql5.7如何设置不区分大小写
Pytest unit test series [v1.0.0] [pytest execute unittest test case]
动作捕捉用于蛇运动分析及蛇形机器人开发
Method of canceling automatic watermarking of uploaded pictures by CSDN
同一个作业有两个source,同一链接不同数据库账号,为何第二个链接查出来的数据库列表是第一个账号的
[untitled]
Pdf batch splitting, merging, bookmark extraction, bookmark writing gadget
flinksql select id ,count(*) from a group by id .
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
European Bioinformatics Institute 2021 highlights report released: nearly 1million proteins have been predicted by alphafold
QT signal and slot
MySQL中正则表达式(REGEXP)使用详解
Spark Tuning (II): UDF reduces joins and judgments
Thinkphp5 multi table associative query method join queries two database tables, and the query results are spliced and returned
How does crmeb mall system help marketing?
Is "applet container technology" a gimmick or a new outlet?
自动更新Selenium驱动chromedriver
(DART) usage supplement
企业不想换掉用了十年的老系统