Perf log make
mysql -uroot -pmysql -N -B test < perf_output_command | perl -pe 's/\t/\n/g' > test.csv
Perf log query
select GROUP_CONCAT(concat('"',variable_name,'"')) as ID,GROUP_CONCAT(concat('"',value,'"'))as VAL from test;
group_concat의 경우 기본 길이를 1024바이트로 제한되어 있으므로 늘려주어야 결과가 잘리지 않는다.
show variables like 'group_concat_max_len'
set group_concat_max_len=4096
댓글 없음:
댓글 쓰기