조회 수 6067 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

명령어를 통해 mysql-bin.000001 와 같은 파일이 있는 곳으로 이동 합니다.


cd /var/lib/mysql


이동을 하고 다음 명령어 입력


ls mysql-bin.*


그럼 bin 파일들이 나옵니다. 파일이 많으면 그만큼 용량이 차지 하기에 30일 이후에 쌓인 것들을 삭제 하여 줍니다.

다음 명령어


mysql -u root -p -e "PURGE MASTER LOGS BEFORE DATE_SUB(CURRENT_DATE, INTERVAL 30 DAY)"


이렇게 하면 최근 30일 자료만 남고 모두 삭제가 됩니다.

?

  1. No Image 20Nov
    by
    2013/11/20 Views 36209 

    #1040 - Too many connections // XE cannot connect to DB. 이런 에러 나올때

  2. #145 - Table './DB/xe_documents' is marked as crashed and should be repaired

  3. No Image 19Feb
    by
    2015/02/19 Views 4098 

    (Owncloud) Error while trying to create admin user: An exception occured in driver: could not find driver 에러 해결

  4. No Image 21Feb
    by
    2012/02/21 Views 93026 

    1267 : Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' 에러명

  5. No Image 05Jun
    by
    2011/06/05 Views 32240 

    ajaxplorer 서버세팅

  6. No Image 01Jul
    by
    2013/07/01 Views 30693 

    apache2 재시작, 도메인 변경 방법

  7. No Image 16Apr
    by
    2011/04/16 Views 46748 

    apm 버전 확인 명령어

  8. No Image 16Apr
    by
    2011/04/16 Views 43683 

    apm 설치 yum 이용

  9. No Image 16Jul
    by
    2011/07/16 Views 42150 

    autoset6 db 복원 import

  10. No Image 24Jul
    by
    2011/07/24 Views 34028 

    Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

  11. No Image 20Feb
    by
    2016/02/20 Views 67311 

    cband-status 자정 초기화 하기

  12. No Image 20Feb
    by
    2016/02/20 Views 2526 

    cband-status 페이지 암호화 하기

  13. No Image 05Dec
    by
    2015/12/05 Views 2914 

    centos 7 apm + vsftpd 설치 스크립트

  14. No Image 04Jan
    by
    2012/01/04 Views 42326 

    centos eaccelerator 설치 방법

  15. No Image 01Jan
    by 자꾸만
    2015/01/01 Views 6067 

    centos mysql-bin.000001 파일 용량 줄이기

  16. No Image 09May
    by
    2012/05/09 Views 46455 

    CentOS RPM 버전 확인 명령어

  17. No Image 04Jan
    by
    2012/01/04 Views 42918 

    centos ZendOptimizer 설치 방법

  18. No Image 09May
    by
    2012/05/09 Views 77103 

    CentOS 버전 확인 lsb_release -a

  19. No Image 02Jan
    by
    2012/01/02 Views 46953 

    centos 서버재시작 shoutdown -r now

  20. No Image 16Apr
    by
    2011/04/16 Views 31116 

    Centos 설치방법

Board Pagination Prev 1 2 3 4 Next
/ 4