LoginSignup
0
0

More than 1 year has passed since last update.

mysql.slow_log の sql_text

Last updated at Posted at 2022-03-28

sql_textがバイナリなのでそのままだと読めないので対処。

SELECT
    start_time,
    CAST(sql_text AS CHAR(1000) CHARACTER SET utf8),
    query_time
FROM
    mysql.slow_log

そもそもファイルに出力した方が良いかも。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0