SlowLogã®è¨å® ç°å¢è¨å®ãã¡ã¤ã«(Windowsã§ã¯my.iniï¼Linuxã§ã¯my.cnf)ã«æ¬¡ã®ãããªè¨å®ãå ããã¨SlowLogãæå¹ã«ãªãã log-slow-queries SlowLogã®æå¹å(ãã°ãã¡ã¤ã«åãæå®å¯è½) long-query-time=2 SlowLogã«è¨é²ããå¦çæéã®ä¸é log-long-format ã¤ã³ããã¯ã¹ã使ç¨ããªãSQLæã®è¨é² long-query-timeãã©ã¡ã¼ã¿ã¯ï¼SlowLogã«è¨é²ãããããå¤ãç§åä½ã§è¨å®ããããã®å ´åã«ã¯ï¼2ç§è¶ ããå¦çæéãè²»ãããSQLæãè¨é²ãããã¾ãï¼log-long-formatãæå®ããã¨ï¼ã¤ã³ããã¯ã¹ã使ç¨ããªãSQLæãSlowLogã«è¨é²ããã SlowLogã®ç¢ºèª SlowLogãåä½ãã¦ãããã©ããã¯ï¼æ¬¡ã®ã³ãã³ãã§ç¢ºèªã§ãããlog_slow_queriesãONã§ããã°æå¹ã¨
{{#tags}}- {{label}}
{{/tags}}