Skip to content

2009.06.17 19:39

mysql innodb 설정확인

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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
mysql innodb엔진은 4.x부터는 mysql설치시 기본적으로 탑재되어있었으나 5.1.3x부터는 기존 configure옵션되로 하면
기본적으로 innodb가 탑재가 안되며 configure옵션에 --with-plugins=innobase 또는 --with-plugins=max 옵션을 추가해줘야한다.

innodb부분이 YES로 나와있어야함.
mysql> show variables like 'have_innodb';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| have_innodb   | YES   |
+---------------+-------+
1 row in set (0.00 sec)

mysql> show engines;
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine     | Support | Comment                                                        | Transactions | XA   | Savepoints |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| ndbcluster | NO      | Clustered, fault-tolerant tables                               | NULL         | NULL | NULL       |
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                          | NO           | NO   | NO         |
| BLACKHOLE  | YES     | /dev/null storage engine (anything you write to it disappears) | NO           | NO   | NO         |
| CSV        | YES     | CSV storage engine                                             | NO           | NO   | NO         |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables      | NO           | NO   | NO         |
| FEDERATED  | NO      | Federated MySQL storage engine                                 | NULL         | NULL | NULL       |
| ARCHIVE    | YES     | Archive storage engine                                         | NO           | NO   | NO         |
| InnoDB     | YES     | Supports transactions, row-level locking, and foreign keys     | YES          | YES  | YES        |
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance         | NO           | NO   | NO         |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+

roundcubemail table 같은경우에는 innodb를 사용함
mysql> show table status;
+------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------------+----------+----------------+---------------------------------------------------------------------------+
| Name       | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time         | Update_time | Check_time | Collation       | Checksum | Create_options | Comment                                                                   |
+------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------------+----------+----------------+---------------------------------------------------------------------------+
| cache      | InnoDB |      10 | Compact    |    4 |           4096 |       16384 |               0 |        32768 |         0 |             10 | 2009-05-07 16:41:57 | NULL        | NULL       | utf8_general_ci |     NULL |                | InnoDB free: 11264 kB; (`user_id`) REFER `roundcubemail/users`(`user_id`) |
| contacts   | InnoDB |      10 | Compact    |    0 |              0 |       16384 |               0 |        16384 |         0 |              1 | 2009-05-07 16:41:57 | NULL        | NULL       | utf8_general_ci |     NULL |                | InnoDB free: 11264 kB; (`user_id`) REFER `roundcubemail/users`(`user_id`) |
| identities | InnoDB |      10 | Compact    |    2 |           8192 |       16384 |               0 |        16384 |         0 |              3 | 2009-05-07 16:41:57 | NULL        | NULL       | utf8_general_ci |     NULL |                | InnoDB free: 11264 kB; (`user_id`) REFER `roundcubemail/users`(`user_id`) |
| messages   | InnoDB |      10 | Compact    |   49 |           1337 |       65536 |               0 |        32768 |         0 |            273 | 2009-05-07 16:41:57 | NULL        | NULL       | utf8_general_ci |     NULL |                | InnoDB free: 11264 kB; (`user_id`) REFER `roundcubemail/users`(`user_id`) |
| session    | InnoDB |      10 | Compact    |   11 |           1489 |       16384 |               0 |        16384 |         0 |           NULL | 2009-05-07 16:41:57 | NULL        | NULL       | utf8_general_ci |     NULL |                | InnoDB free: 11264 kB                                                     |
| users      | InnoDB |      10 | Compact    |    2 |           8192 |       16384 |               0 |        32768 |         0 |              3 | 2009-05-07 16:41:57 | NULL        | NULL       | utf8_general_ci |     NULL |                | InnoDB free: 11264 kB                                                     |
+------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------------+----------+----------------+---------------------------------------------------------------------------+
6 rows in set (0.00 sec)


myisam에서 innodb로 변경
ALTER TABLE 테이블명 ENGINE=INNODB
ALTER TABLE 테이블명 TYPE=INNODB

innodb테이블생성시
create table a(a int not null, b int) engine=innodb    (engine=inodb옵션이 붙어야함)


  1. No Image 17Jun
    by ADMINPLAY
    2009/06/17 by ADMINPLAY
    Views 8597 

    [MYSQL] Mysql 테이블 검사하기 & 복구하기

  2. No Image 17Jun
    by ADMINPLAY
    2009/06/17 by ADMINPLAY
    Views 16747 

    mysql innodb 설정확인

  3. No Image 17Jun
    by ADMINPLAY
    2009/06/17 by ADMINPLAY
    Views 8789 

    MySQL Table 복구 - Got error 127 from storage engine

  4. No Image 11Jun
    by ADMINPLAY
    2009/06/11 by ADMINPLAY
    Views 14863 

    MySQL 외부접속

  5. mysql 쿼리문 모음

  6. No Image 22May
    by ADMINPLAY
    2009/05/22 by ADMINPLAY
    Views 9215 

    skip-name-resolve

  7. No Image 17Mar
    by ADMINPLAY
    2009/03/17 by ADMINPLAY
    Views 9201 

    slow Query 조사

  8. No Image 17Mar
    by ADMINPLAY
    2009/03/17 by ADMINPLAY
    Views 9513 

    mysqli 컴파일중 re2c 에러발생!

  9. MySQL max connection 값 변경

  10. No Image 03Mar
    by ADMINPLAY
    2009/03/03 by ADMINPLAY
    Views 10923 

    SSL을 이용한 MySQL 연결

  11. No Image 03Mar
    by ADMINPLAY
    2009/03/03 by ADMINPLAY
    Views 9711 

    mysql5.0 계정 생성시 ssl_cipher 에러

  12. No Image 07Feb
    by ADMINPLAY
    2009/02/07 by ADMINPLAY
    Views 8896 

    mysql 외부접속

  13. No Image 23Dec
    by ADMINPLAY
    2008/12/23 by ADMINPLAY
    Views 9985 

    Mysql 버전확인

  14. No Image 14Dec
    by ADMINPLAY
    2008/12/14 by ADMINPLAY
    Views 8739 

    InnoDB 와 MyISAM

  15. No Image 11Nov
    by ADMINPLAY
    2008/11/11 by ADMINPLAY
    Views 7548 

    mysql 자세한 복구 방법 #2

  16. No Image 11Nov
    by ADMINPLAY
    2008/11/11 by ADMINPLAY
    Views 6896 

    mysql 자세한 복구 방법 #1

  17. No Image 11Nov
    by ADMINPLAY
    2008/11/11 by ADMINPLAY
    Views 7622 

    MySQL 테이블 복구하기 (쉴 프롬프트에서..)

  18. No Image 11Nov
    by ADMINPLAY
    2008/11/11 by ADMINPLAY
    Views 8393 

    Mysql max_connection 늘리기

  19. No Image 11Nov
    by ADMINPLAY
    2008/11/11 by ADMINPLAY
    Views 7314 

    mysql root에 아무권한이 없어 작업이 불가능한 경우

  20. No Image 04Nov
    by ADMINPLAY
    2008/11/04 by ADMINPLAY
    Views 7985 

    Mysql 버전별 케릭터셋 지원여부 (euckr / utf-8)

Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234