database.sarang.net
UserID
Passwd
Database
DBMS
ㆍMySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
MySQL Q&A 23947 게시물 읽기
No. 23947
MySQL 에서 innodb 를 사용하고 있는데, data file 을 삭제해서 용량을 줄이고 싶습니다.
작성자
dhan
작성일
2005-06-21 11:06
조회수
2,100

MySQL 에서 innodb 를 사용하고 있는데, data file 을 삭제해서 용량을 줄이고 싶습니다.

즉, innodb table space 를 1G 데이터파일 10개를 쓰고 있으며, 그려면

전체 10G 를 사용하고 있습니다. 이제 10G 를 다 쓰지 않아도 되서

용량을 줄이고 싶습니다. 그럴려면 데이터파일을 삭제해야 하는데,

삭제하는 방법이 있는지 알고싶습니다.

이 글에 대한 댓글이 총 1건 있습니다.

Currently, you cannot remove a data file from the tablespace. To decrease the size of your tablespace, use this procedure:

  1. Use mysqldump to dump all your InnoDB tables.

  2. Stop the server.

  3. Remove all the existing tablespace files.

  4. Configure a new tablespace.

  5. Restart the server.

  6. Import the dump files.

If you want to change the number or the size of your InnoDB log files, you have to stop the MySQL server and make sure that it shuts down without errors. Then copy the old log files into a safe place just in case something went wrong in the shutdown and you need them to recover the tablespace. Delete the old log files from the log file directory, edit my.cnf to change the log file configuration, and start the MySQL server again. mysqld sees that no log files exist at startup and tells you that it is creating new ones.

이경환(babocom)님이 2005-06-23 21:16에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
23950mysql 클라이언트의 포트 설정이 가능한지요. [3]
송효진
2005-06-21
1561
23949책에 나온데로 했는데 [1]
ㅡ.ㅡ
2005-06-21
1151
23948이제 막 설치해서 첫 질문 [1]
MY웅이
2005-06-21
883
23947MySQL 에서 innodb 를 사용하고 있는데, data file 을 삭제해서 용량을 줄이고 싶습니다. [1]
dhan
2005-06-21
2100
23946[질문]간단한 프로시저 생성입니다.
박미화
2005-06-21
1592
23945group by에 대한 질문입니다. [2]
박현수
2005-06-21
1421
23944[TIP] 최근 페도라에 MYSQL 설치시 주의
신인식
2005-06-21
2057
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.019초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다