LoginSignup
1
3

More than 5 years have passed since last update.

RDSでoak-online-alter-tableを使う

Last updated at Posted at 2016-04-07

oak-online-alter-tableを使うとMySQLの巨大なテーブルに、テーブル・ロックを掛けずに alter table を実行することができますが、権限が足りないと

You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)

というエラーを吐いてコマンドが失敗します。残念ながらRDSではSUPER権限を持ったユーザを作ることができませんが、エラーにもあるように log_bin_trust_function_creators パラメータを 1 にすれば実行することができます。log_bin_trust_function_creators パラメータはRDSインスタンスをrebootしなくても即座に反映されます。

参考

1
3
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
1
3