mysql 처음 컴파일할때 아래 옵션 추가

-DWITH_INNODB_MEMCACHED=ON


###위 옵션 안해주면 플러그인에 innodb_memcached 설치 안됨






그다음 설치 다 하고




 # mysql -u root -p < /opt/mysql/share/innodb_memcached_config.sql


 # mysql -u root -p


mysql> install plugin daemon_memcached soname "libmemcached.so";








다하고 mysql 재시작하면 아래와같이 mysql 로 11211 포트 올라온거 확인됨




tcp        0      0 :::11211                    :::*                        LISTEN      7093/mysqld       


https://docs.google.com/document/d/1WE1V4uczxavqLY-nyr3qNqCxqzoOf8Vg6Z-Lf0c3DwU/edit#heading=h.4805uy5ihmx


유용한것도 있고... 첨보는것도 있고... 


mysql> set global log_slow_queries = ON;              


ERROR 1238 (HY000): Variable 'log_slow_queries' is a read only variable





####공식홈페이지 설명#######

One way around this is to setup the machine with the Slow Query Log 

enabled but to use a very large value of --long-query-time to 

essentially ignore every query. Then, when you want to capture slow 

queries, you reset --long-query-time to a reasonable value. 

Unfortunately, this requires a restart to initialize. After that you can 

adjust the --long-query-time to throttle the contents of the log.





mysql5.0 버전까지는 재시작없이는 설정이 안된단다. my.cnf에 등록하고 db 재시작해야한다. 5.1부터는 재시작없이 설정가능

+ Recent posts