Skip to content

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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
OPTIMIZE TABLE 문법 : 대량의 데이터를 삭제했던가, 테이블의 잦은 변화가 있을 경우 사용하면 유용

   사용법) mysql>optimize table 테이블명;

TRUNCATE 문법 : 레코드 삭제

   사용법) mysql>truncate table 테이블명;

     * delete from 테이블 조건; => 데이터를 순자적으로 삭제
        truncate table 테이블명; => 테이블 자체를 삭제후 테이블을 새로 생성
     테이블 삭제 속도는 빠르나 삭제된 레코드를 복구할수없다.

*테이블이 깨져서 나오는 경우 테이블을 체크해서 복구하여야한다.

   체크 : mysql>check table 테이블명;
   복구 : mysql>repair table 테이블명;

<linux 시스템상에서 일반 DB사용자의 DB 공간 제한>

ex) jung 사용자의 DB사용량을 계정용량 범위내에서 자유로이 사용할 수 있도록 제한.

     a. disk quota 상에서 jung 사용자의 계정 용량 제한
     b. jung 사용자의 DB를 jung 사용자의 홈디렉토리내로 이동시킨후 심볼릭 링크를 data디렉토리내에 생성

shell>cd /usr/local/mysql/data
shell>mv jung /home/jung/jung
shell>ln -s /home/jung/jung jung
shell>ll

  1. 서버에서 mysql euckr과 utf8 같이 사용하기

    Date2010.05.03 ByADMINPLAY Views12801
    Read More
  2. latin1 로 저장된 db 를 euckr 또는 utf8로 변환하는 방법

    Date2010.05.28 ByADMINPLAY Views16544
    Read More
  3. [MySQL] OPTIMIZE, TRUNCATE, 테이블복구, DB공간제한

    Date2010.05.29 Byl2zeo Views16491
    Read More
  4. MySQL errno 의미 확인

    Date2010.05.29 Byl2zeo Views16594
    Read More
  5. MySQL 오류 테이블 복원

    Date2010.05.29 Byl2zeo Views17269
    Read More
  6. mysql old_password 문제

    Date2010.06.19 ByADMINPLAY Views18453
    Read More
  7. libmysqlclient.so.15: cannot open shared object file: No such file or directory

    Date2010.07.07 ByADMINPLAY Views22845
    Read More
  8. ../depcomp: line 571: exec: g++: not found

    Date2010.11.26 ByADMINPLAY Views19501
    Read More
  9. MySQL의 호스트 블럭킹 & max_connect_errors

    Date2011.03.09 ByADMINPLAY Views17775
    Read More
  10. MySQL에서 Query Cache 사용하기

    Date2011.03.18 ByADMINPLAY Views15862
    Read More
  11. FULLTEXT 인덱스와 서치

    Date2011.04.09 ByADMINPLAY Views17440
    Read More
  12. Mysql - Query Cache

    Date2011.04.09 ByADMINPLAY Views18388
    Read More
  13. MySQL 튜닝 query cache 설정

    Date2011.04.09 ByADMINPLAY Views19339
    Read More
  14. [MySQL 5.1.4] /bin/rm: cannot remove `libtoolT': No such file or directory

    Date2012.01.16 ByADMINPLAY Views18417
    Read More
  15. MYSQL 4.0 --> 5.1 마이그레이션

    Date2012.01.16 ByADMINPLAY Views17159
    Read More
  16. [데이터베이스] [DBMS-MYSQL] "SHOW PROCESSLIST"시 state 종류 및 설명

    Date2012.01.16 ByADMINPLAY Views15930
    Read More
  17. mysql - copying to tmp table

    Date2012.01.16 ByADMINPLAY Views18094
    Read More
  18. MySQL 튜닝 값을 탐지해주는 유용한 툴

    Date2012.02.23 ByADMINPLAY Views22356
    Read More
  19. mysql 다중 서버 관리

    Date2012.12.17 ByADMINPLAY Views17273
    Read More
  20. innodb recovery

    Date2013.01.21 Byl2zeo Views11132
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234