mysql启动关闭debug

本文介绍了在MySQL 5.7环境下,当开启debug模式后,如何关闭它。通过检查my.cnf配置文件,发现log-error参数指定了详细日志的位置。然而,具体的关闭方法尚未在内容中给出。

我把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

未完待续

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值