LoginSignup
10
11

More than 5 years have passed since last update.

RDSのMySQLでトリガーを使いたい

Posted at

RDSのMySQLでトリガーを使えるようにする

エラー内容

MySQLインスタンス作成時に作るユーザでトリガーを使うと以下のエラーが出る

ERROR 1419 (HY000): 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のMySQLではデフォルトでbinlogに出力する設定となっており、
さらにSUPERの権限を持っているユーザを使えないのでエラーとなる。

解決法

パラメータグループを変更する必要がある
グローバル変数のlog_bin_trust_function_creatorsのvalueを1に変更することで使えるようになる。
Apply Typedynamicなので再起動は不要で変更可能。

スクリーンショット 2016-05-14 6.47.11.png

10
11
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
10
11