LoginSignup
3
4

More than 5 years have passed since last update.

mysqlbinlog凡ミス

Posted at

binlogの動きを確認してみようと簡単に設定してみたが、意図通りにいかなかった・・・

/etc/my.cnfbin-log=mysql-binと指定してデフォでinsert、deleteを走らせてみたがバイナリログが吐かれてはいるようだが謎の出力。

$ mysqlbinlog mysql-bin.00002
...
mysqlbinlog: File 'mysql-bin.000002' not found (Errcode: 13)
...

で読み取り権限が無いので一般ユーザーでみれてなかった

$ sudo chmod o+r mysql-bin.*

あるある過ぎて泣けてくる

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