1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

清理MySql的日志文件mysql-bin.00000

Discussion in '应用交流' started by admin, 2015-09-07.

  1. admin

    admin 管理员 Staff Member

    Joined:
    2011-11-01
    Messages:
    3,671
    Likes Received:
    2,425
    清理:
    方法一
    Code:
    PURGE MASTER LOGS TO 'mysql-bin.000099';
    方法二
    Code:
    PURGE MASTER LOGS BEFORE '2015-8-18 00:00:00'; 
    关闭日志:
    my.cnf注释掉
    Code:
    #log-bin=mysql-bin
     
Loading...