summaryrefslogtreecommitdiff
path: root/topics/systems/mariadb/mariadb.gmi
diff options
context:
space:
mode:
authorPjotr Prins2021-12-28 09:10:24 +0100
committerPjotr Prins2021-12-28 09:10:24 +0100
commit39af4b498376a837131d6cb3478ba610eb6f36b8 (patch)
tree190fda45c1d57f17d1b88e445e1f3b6a163b8627 /topics/systems/mariadb/mariadb.gmi
parentd9da3ae0cd969da59954f5b631021be0a7da0300 (diff)
downloadgn-gemtext-39af4b498376a837131d6cb3478ba610eb6f36b8.tar.gz
Move file
Diffstat (limited to 'topics/systems/mariadb/mariadb.gmi')
-rw-r--r--topics/systems/mariadb/mariadb.gmi35
1 files changed, 35 insertions, 0 deletions
diff --git a/topics/systems/mariadb/mariadb.gmi b/topics/systems/mariadb/mariadb.gmi
new file mode 100644
index 0000000..c2c927b
--- /dev/null
+++ b/topics/systems/mariadb/mariadb.gmi
@@ -0,0 +1,35 @@
+# MariaDB
+
+Here we capture some common actions
+
+## Tags
+
+* info
+
+## Check the transaction logs
+
+Start the client and:
+
+```
+MariaDB [db_webqtl]> show binary logs;
++-----------------------+-----------+
+| Log_name | File_size |
++-----------------------+-----------+
+| gn0-binary-log.000012 | 374532448 |
+| gn0-binary-log.000013 | 933672549 |
+| gn0-binary-log.000014 | 12774545 |
++-----------------------+-----------+
+3 rows in set (0.001 sec)
+```
+
+To get a log
+
+```
+mysql -p -u webqtlout db_webqtl -e "SHOW BINLOG EVENTS IN 'gn0-binary-log.000014';"
+```
+
+To get a log with some stuff filtered out try
+
+```
+mysql -p -u webqtlout db_webqtl -e "SHOW BINLOG EVENTS IN 'gn0-binary-log.000014';" -r -s |grep -v -e "Access\|GTID\|INSERT_ID\|COMMIT\|Temp\|lastlogin\|LITERA\|flush\|ROLLBACK"
+```