欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

玩欧卡就用莱仕达V10方向盘欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 3908|回复: 0
收起左侧

禁用mysql日志

[复制链接]
知行 发表于 2012-8-7 15:06 | 显示全部楼层 |阅读模式
lnmp默认会在/usr/local/mysql/var/目录下生成格式为mysql-bin.000001的日志文件,占用了比较多的磁盘空间。
编辑/etc/my.cnf,注释掉log-bin=mysql-bin禁止生成日志:

1
#log-bin=mysql-bin
重启mysql,会报错如下:

Starting MySQL.Manager of pid-file quit without updating file. … failed!
原因是禁用了log-bin,其相关项也要禁用,接着注释掉binlog_format=mixed:

1
#binlog_format=mixed
重启成功。

联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-3-29 23:31 , Processed in 0.030563 second(s), 10 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表