0
1

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.

【助けて】 MariaDB Galera Clusterでクエリログの保存方法

Last updated at Posted at 2014-12-13

を利用し3台のDBサーバの1台だけをマスターとして利用、冗長化を構築できた。

しかし過去のクエリログを見たいがよくわからない・・・。

my.cnf
[mysqld]
binlog_format=ROW # <- galera clusterを利用する場合必須。

binlog_format=ROW のため mysqlbinlog を使ってもクエリのステートメントが保存されない。

追記

MariaDB Galera Cluster はPrimaryキーがないテーブルでDELETEやUPDATEは非対応とか読んだ。
やめたほうがいいのかな・・・

自分のスキルではmysql(mariadb) + DRBD + keepalivedが最適な気がしてきた。

0
1
1

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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?