For years I believed a long password was enough to make my connection to the database server secure. I didn't know everything else was crossing the network unencrypted. Here I show what a packet capture reveals, how to create the certificates and configure them in MariaDB and MySQL, and what happens in the other engines.
The day I had to change "provincia" to "provincias" in an ENUM, MySQL answered with error 1265 and it took me hours to understand why. The fix is three statements. Here they are, along with what happens on a server without strict mode and why an accent changes everything.
What took me years to learn to read in MySQL's EXPLAIN: why an index in possible_keys doesn't mean it gets used, what the Extra column warns you about and why a three-column index doesn't serve just any WHERE. With a table of 200,000 orders and the real plans.
The ways I filled tables to test an application, from the most naive to the one I use today: INSERTs by hand, the table that copies itself, a series generated with SQL and a procedure that reads the columns. With the code for each database engine and the version where it starts to work.