7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RDS(MySQL)のログファイルを削除する

Last updated at Posted at 2016-07-01

ログファイルの削除手順

  • 対象のデータベースに接続
  • mysql データベースを選択
  • 以下のクエリを実行
// general_logをtruncate
call rds_rotate_general_log
// 2回実行することでgeneral_log_backupをtruncate
call rds_rotate_general_log
// countが0になっていればOK
select count(*) from general_log;

// slow_logをtruncate
call rds_rotate_slow_log
// 2回実行することでslow_log_backupをtruncate
call rds_rotate_slow_log
// countが0になっていればOK
select count(*) from slow_log;
7
8
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
7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?