52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 3695|敺: 0
銝銝銝駁 銝銝銝駁

[mysql] MySQL slow query log, 脣瑁Y SQL 隤

[銴鋆賡包
頝唾唳摰璅撅
#
潸” 2019-1-6 16:41:37 | 芰閰脖 撣 |甇摨閬 |梯璅∪
潸死蝔撘瑁敺, 嗡葉銝閬瑼X亦唳寞航摨怒MySQL 臭誑撠瑁 SQL 隤亙券函銝靘, 臭誑芣臬瑁Y SQL 隤亦銝靘, 璅撠 MySQL 隤亦 Debug 撠梯擛敺憭鈭
: p' p$ |, F+ z7 ^  u: [# W! ?5 d* Z& G* j& e: q
閬蝝瑁Y SQL 隤, 臭誑靽格 my.cnf 摰, my.cnf 憭詨其誑銝雿蝵:
' R7 q& |% f6 F" V! k. [) N, p  t1 b+ G7 K7 e1 K" R3 {6 I
/etc/my.cnf
+ v: k  Y5 y9 }: E/etc/mysql/my.cnf
. R# S8 d4 L$ C5 d$ z% S
0 P/ A1 D0 ^5 `) ? my.cnf, [mysqld] 畾菔賢乩誑銝撟曇:
+ H4 |- S* s) X' L+ w$ E7 f2 e
slow_query_log = 1
' x/ x% t2 V$ N. ~' Q6 u9 j. Zslow_query_log_file = /var/log/mysql-slow.log2 e. C+ W7 E4 H) |0 K/ j2 \
long_query_time = 2

2 }+ c# P! s5 v: f  c8 {+ k隞乩撟曇交:1 `3 v' t# O( ?! c1 w
4 c1 @$ N2 D) I6 a) m, _8 C
slow_query_log = 1- v  i% k0 M! s/ B' T$ B& G
蝝瑁Y SQL 隤:
) r/ ^1 d. w" f! X+ o$ ^9 c" F" `6 j* _6 c! ?& F8 P2 `/ g( `0 g
slow_query_log_file = /var/log/mysql-slow.log
# C# e0 D; g9 E  J1 e# F1 _+ W閮剖蝝瑼雿蝵桀 /var/log/mysql-slow.log) |7 P) ~' O+ |! n
# s' `3 ?- G5 V! v# ?" }
long_query_time = 2" ^% W# a; R: ?5 d( m  }  u! y* S7 t' r
閮剖 SQL 隤亙瑁頞 2 蝘, 靘踵撠 SQL 隤亙脣
& G8 ^$ s2 ]* o
' C: ?/ @0 U7 j/ y) M; A! |% j靽格孵末 my.cnf 敺, 啣 MySQL 靘踹鈭8 y+ Z$ a9 M8 ~5 ]! K
1 i, u' Y4 p5 S* ^( v# D3 N

/ i  U0 S" m. M+ d  n% _

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-21 21:41 , Processed in 0.067337 second(s), 16 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵