全球主机交流论坛

标题: 84的vps空间顶到了20.84GB,怀疑是日志,请问怎么清理 [打印本页]

作者: zjtleon    时间: 2010-9-26 08:17
提示: 作者被禁止或删除 内容自动屏蔽
作者: Leaves    时间: 2010-9-26 08:24
Google帮到您
作者: vaman    时间: 2010-9-26 09:03
/usr/local/lxlabs/kloxo/processed_log/
作者: Yikmings    时间: 2010-9-26 09:10
應該是mysql log 我前天清了 15 GB
作者: shangpan    时间: 2010-9-26 09:11
原帖由 Yikmings 于 2010-9-26 09:10 发表
應該是mysql log 我前天清了 15 GB



MYSQL日志有啥自动清除的办法么?
作者: Yikmings    时间: 2010-9-26 09:14
标题: 回复 5# 的帖子
我是菜烏所以手動@.@"
lnmp 的
  1. [root@jiucool var]# /usr/local/mysql/bin/mysql -u root -p
  2. Enter password:  (輸入密碼)
  3. Welcome to the MySQL monitor.  Commands end with ; or \g.
  4. Your MySQL connection id is 264001
  5. Server version: 5.1.35-log Source distribution

  6. Type 『help;』 or 『\h』 for help. Type 『\c』 to clear the current input statement.

  7. mysql> reset master; (清除日誌文件)
  8. Query OK, 0 rows affected (8.51 sec)
复制代码

作者: rock^_^lee    时间: 2010-9-26 10:05
标题: 回复 6# 的帖子
不错,收藏此帖。
作者: Host.HowPick    时间: 2010-9-26 10:20
数据库日志。 清理一下就好了。
作者: Host.HowPick    时间: 2010-9-26 10:20
原帖由 shangpan 于 2010-9-26 09:11 发表



MYSQL日志有啥自动清除的办法么?


设置保存的日期短些好了。
作者: cuxian    时间: 2010-9-26 10:48
知道文件还不好搞定啊,定时删除呗  
作者: monface    时间: 2010-9-26 11:19
关闭mysql日志的飘过
作者: shangpan    时间: 2010-9-26 11:33
感谢6楼和9楼
作者: Poison    时间: 2010-9-26 13:28
又一个kloxo受害者
我看到一家伙  网站加系统才1.9G
剩下的全部让日志占完了
作者: Andy.C    时间: 2010-9-26 23:02
1,登录mysql
mysql -h localhost -u user -ppassword

2,MySQL下运行:
RESET MASTER;

3,退出mysql

4,service mysql stop

5,vi /etc/my.cnf
注释掉两项:
#log-bin=mysql-bin
#binlog_format=mixed

6,service mysql start




欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4