我把mysql 的 debug 开启之后,想关闭,网上搜索了一下,没有可靠答案。。。
环境
mysql5.7
centos7
mysql开启debug
# mysqladmin -uroot -p -h127.0.0.1 debug
Enter password:
输入密码就开启了
查看 my.cnf 可以找到log-error 的所在位置
[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
这是我的配置,具体以实际为准。
查看 log-error,发现日志输出比以前详细多了。
# vi /var/log/mariadb/mariadb.log
handler status:
read_key: 56
read_next: 21910758
read_rnd 0
read_first: 45
write: 2121955
delete 0
update: 0
Table status:
Opened tables: 140
Open tables: 134
Open files: 18
Open streams: 0
Memory status:
<malloc version="1">
<heap nr="0">
<sizes>
<size from="17" to="32" total="32" count="1"/>
<size from="33" to="48" total="96" count="2"/>
<size from="49" to="64" total="128" count="2"/>
<size from="65" to="80" total="160" count="2"/>
<size from="33" to="33" total="66" count="2"/>
<size from="97" to="97" total="5917" count="61"/>
<size from="113" to="113" total="904" count="8"/>
mysql关闭debug
未完待续
本文介绍了在MySQL 5.7环境下,当开启debug模式后,如何关闭它。通过检查my.cnf配置文件,发现log-error参数指定了详细日志的位置。然而,具体的关闭方法尚未在内容中给出。
830

被折叠的 条评论
为什么被折叠?



