MySQL Binlogs

I recently dug into the wonderful world of MySQL binlogs! Here a few learnings. Binlogs (binary logs) are log files that record everything your MySQL server does. They’re used for replication or data recovery. Nice to have, but not necessary unless they’re a defined part of your data recovery strategy. In MySQL 8, binlogs are enabled by default with 30-day retention. Which can lead to many GiB-sized files. This retention period can be adjusted like this (7-day retention being set here): ...

February 9, 2026

MySQL Vertical Result

MySQL’s display is tabular: mysql> select id, first_name, last_name from web_user; +----+------------+-----------+ | id | first_name | last_name | +----+------------+-----------+ | 1 | Jake | Worth | +----+------------+-----------+ 1 row in set (0.00 sec) I very often prefer vertical results, which I can add with the \G flag at the end. mysql> select id, first_name, last_name from web_user\G *************************** 1. row *************************** id: 1 first_name: Jake last_name: Worth 1 row in set (0.00 sec) Make sure you leave off the semicolon; \G is a delimiter and the semi is redundant and will error. ...

October 27, 2025