Home >Database >Mysql Tutorial >Linux 关闭mysql日志与删除mysql-bin.0000*方法

Linux 关闭mysql日志与删除mysql-bin.0000*方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:52:141213browse

Linux 关闭mysql日志与删除mysql-bin.0000*方法 有需要学习的朋友可参考一下。

安装完lnmpa 慢慢注重优化了,首先就是要删除mysql日志,删除mysql-bin.0000*类似的文件 看着烦躁。
查看源代码打印帮助
 登录 

 代码如下 复制代码

/usr/local/mysql/bin/mysql -u root -p 


输入密码 

 

 代码如下 复制代码
reset master; 


修改/etc/my.cnf 文件 

 代码如下 复制代码

log-bin=mysql-bin 

binlog_format=mixed 

 

再这两行前面加上 # ,将其注释掉 

执行 

 代码如下 复制代码

/etc/init.d/mysql restart 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn