LoginSignup
0
0

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '5' for key 'tablespaces.PRIMARY' (SQL: truncate table `push_xxx`)

Posted at

Truncate を実行すると、謎のエラーが。

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '5' for key 'tablespaces.PRIMARY' (SQL: truncate table `push_tokens`)

原因:

AWSの Aurora MySQL. 3.05.2 のバージョン依存のバグのようです。→ stack overflow

対策:

Aurora MySQL 3.06.0 にアップグレードしましょう。
私は、これで解消しました。

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