- server variable이나 session variable로 제어한다.

- startup 시에 지정 / SET 으로 동적 지정

- show variables : server variable display

- show status : session variable display

 

Thread cache

              thread_cache_size : thread재사용을 위한 thread cache의 수

           클라이언트 접속시 빠른 재접속을 위하요

 

Memory tables

              max_heap_table_size : 메모리 테이블의 최대 메모리 크기

 

Internal temporary tables

              tmp_table_size : 임시테이블을 위한 메모리, 이 크기를 초과하면 disk에 기록한다.

 

 

기타 메모리

              key_buffer_size : MyISAM 인덱스블럭을 위한 메모리 공간

              table_open_cache : 숫자값

 

Query Cache

              query_cache_size : query cache 의 크기

 

 

client specific buffers

              sort_buffer_size : sort시의 최대 메모리 크기, ORDER BY, GROUP BY

              read_buffer_size : sequential table scan

              join_buffer_size : join 처리

              max_allowed_packet : client server간의 communication 사용

                                      

 

n  Plugin Interface

 MySQL5.1 이후부터 plugin API 제공.

  - 서버를 재시작하지 않고, 서버 component를 동적으로 loading/unloading가능합니다.

  - 이전의 UDF (User-Defined Function)에 대한 security나 versioing에 향상된 기능을 제공.

     이전의 UDF지원은 결국 deprecate될 예정입니다.

  - 현재 storage engine등은 plugin방식으로 지원됨.

 

1. plugin 테이블이 존재해야 합니다.

 mysql> desc mysql.plugin;

+-------+-----------+------+-----+---------+-------+

| Field | Type      | Null | Key | Default | Extra |

+-------+-----------+------+-----+---------+-------+

| name  | char(64)  | NO   | PRI |         |       |

| dl        | char(128) | NO   |     |         |       |

+-------+-----------+------+-----+---------+-------+

2 rows in set (0.39 sec)

 

현재 plug-in 정보 입니다.




 

2. built-in full text parser를 my_parser로 대체할수 있다.

 

CREATE TABLE t

(

  doc CHAR(255),

  FULLTEXT INDEX (doc) WITH PARSER my_parser

 );

 

 

3. simple parser plug-in libraray 만드는 단계입니다.

  http://dev.mysql.com/doc/refman/5.1/en/plugin-creating.html

 

 

 

'IT > MySQL' 카테고리의 다른 글

MySQL is Powering the World  (0) 2018.05.11
MySQL Overview  (0) 2017.04.25
 MySQL OverView  (0) 2017.03.23
HA클라스터구축(Heartbeat+DRBD+Apache)  (0) 2017.03.23
메모리 관련 파라미터 튜닝  (0) 2017.03.20
블로그 이미지

swhwang

,