db table 엔진확인 및 변경 > Mysql

본문 바로가기

사이트 내 전체검색

뒤로가기 Mysql

db table 엔진확인 및 변경

페이지 정보

작성자 HARULIFE 작성일 20-11-24 11:57 조회 35,069 댓글 0

본문

1. table db engine 확인

 

mysql> show table status like ‘{테이블명}’ \G

 

mysql> show table status like ‘t_faq’ \G
*************************** 1. row ***************************
Name: t_faq
Engine: MyISAM
Version: 10
Row_format: Compact
Rows: 0
Avg_row_length: 0
Data_length: 16384
Max_data_length: 0
Index_length: 0
Data_free: 8388608
Auto_increment: 1
Create_time: 2015-01-22 10:32:25
Update_time: NULL
Check_time: NULL
Collation: utf8_general_ci
Checksum: NULL
Create_options:
Comment: FAQ
1 row in set (0.00 sec)

 

 

2. table db engine 변경

 

mysql> alter table {테이블명} engine={변경할 엔진명};

 

mysql> alter table t_faq engine=innodb;
Query OK, 0 rows affected (0.14 sec)

Records: 0 Duplicates: 0 Warnings: 0

 

mysql> show table status like ‘t_faq’ \G
*************************** 1. row ***************************
Name: t_faq
Engine: InnoDB
Version: 10
Row_format: Dynamic
Rows: 0
Avg_row_length: 0
Data_length: 0
Max_data_length: 281474976710655
Index_length: 1024
Data_free: 0
Auto_increment: 1
Create_time: 2015-06-09 11:12:01
Update_time: 2015-06-09 11:12:01
Check_time: NULL
Collation: utf8_general_ci
Checksum: NULL
Create_options:
Comment: FAQ
1 row in set (0.00 sec)

댓글목록 0

등록된 댓글이 없습니다.

Copyright © 소유하신 도메인. All rights reserved.

사이트 정보

회사명 : 회사명 / 대표 : 대표자명
주소 : OO도 OO시 OO구 OO동 123-45
사업자 등록번호 : 123-45-67890
전화 : 02-123-4567 팩스 : 02-123-4568
통신판매업신고번호 : 제 OO구 - 123호
개인정보관리책임자 : 정보책임자명

PC 버전으로 보기