Skip to content

2009.06.17 19:39

mysql innodb 설정확인

조회 수 16719 추천 수 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. skip-name-resolve

    Date2009.05.22 ByADMINPLAY Views9184
    Read More
  2. mysql 쿼리문 모음

    Date2009.06.02 ByADMINPLAY Views13507
    Read More
  3. MySQL 외부접속

    Date2009.06.11 ByADMINPLAY Views14836
    Read More
  4. MySQL Table 복구 - Got error 127 from storage engine

    Date2009.06.17 ByADMINPLAY Views8757
    Read More
  5. mysql innodb 설정확인

    Date2009.06.17 ByADMINPLAY Views16719
    Read More
  6. [MYSQL] Mysql 테이블 검사하기 & 복구하기

    Date2009.06.17 ByADMINPLAY Views8568
    Read More
  7. mytop 으로 mysql 모니터링하기

    Date2009.06.25 ByADMINPLAY Views8842
    Read More
  8. mysqladmin 사용하기 DB연결수 및 세부정보 알아내기

    Date2009.06.25 ByADMINPLAY Views6943
    Read More
  9. MySQL 스토리지 엔진 MyISAM과 InnoDB의 차이

    Date2009.06.25 ByADMINPLAY Views8870
    Read More
  10. Mysql 비번 변경/비번분실시

    Date2009.06.29 ByADMINPLAY Views7997
    Read More
  11. [mysql] Manager of pid-file quit without updating fi[실패]

    Date2009.06.29 ByADMINPLAY Views13748
    Read More
  12. 리눅스 환경에서 mySql JDBC

    Date2009.07.12 ByADMINPLAY Views10468
    Read More
  13. mysql 버전 3.23.58 (4.0.X)설치 가 안되서 그러는데

    Date2009.07.14 ByADMINPLAY Views6992
    Read More
  14. MySQL 최대성능 올리기

    Date2009.07.19 ByADMINPLAY Views8012
    Read More
  15. mysql 백업

    Date2009.07.25 ByADMINPLAY Views8671
    Read More
  16. Mysql InnoDB 관리하기

    Date2009.07.31 ByADMINPLAY Views11543
    Read More
  17. mysql 설치시 컴파일에러 ../depcomp: line 512 exec : g++ : not found

    Date2009.08.08 ByADMINPLAY Views9727
    Read More
  18. mysql 설치 옵션 해석

    Date2009.08.08 ByADMINPLAY Views8948
    Read More
  19. mysqld: Sort aborted ( mysqld-nt : Sort aborted )

    Date2009.08.31 ByADMINPLAY Views10027
    Read More
  20. MySQL Commercial License

    Date2009.09.28 ByADMINPLAY Views8134
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234