Topic

MySQL

MySQL guides from Tryssh: practical diagnostics, safe operating procedures, and production runbooks for server operators.

Set MySQL binary log retention from recovery and replica needs

Binary logs support replication and point-in-time recovery; expiration must exceed the longest backup, restore, outage, and replica catch-up window.

The Tryssh team · July 29, 2026

Use MySQL EXPLAIN ANALYZE without surprising production

EXPLAIN ANALYZE executes the statement and reports iterator estimates, actual rows, loops, and timing, unlike a non-executing estimate-only EXPLAIN.

The Tryssh team · July 29, 2026

Choose MySQL KILL QUERY or KILL CONNECTION by transaction impact

KILL QUERY stops the current statement but keeps the session, while KILL CONNECTION terminates the session and rolls back its active transaction.

The Tryssh team · July 29, 2026

Create a MySQL least-privilege application account

MySQL combines authenticated account identity, host matching, dynamic and static privileges, roles, and object scope when authorizing a statement.

The Tryssh team · July 29, 2026

Plan MySQL online index creation around locks and rebuild cost

InnoDB DDL algorithms and lock clauses control whether data is rebuilt and which concurrent operations are allowed, but support depends on the exact alteration.

The Tryssh team · July 29, 2026

Trace active MySQL sessions without relying on a truncated process list

SHOW PROCESSLIST gives a current session view while Performance Schema tables expose richer statements, waits, threads, and history when enabled.

The Tryssh team · July 29, 2026

Measure MySQL replication lag using position and worker evidence

Replication delay can arise in receiving, relay logging, scheduling, applying, or waiting; one seconds-behind value cannot identify the stage.

The Tryssh team · July 29, 2026

Require encrypted MySQL transport without stranding clients

Require_secure_transport rejects insecure TCP connections while local socket behavior and certificate identity verification remain client-side and configuration-dependent.

The Tryssh team · July 29, 2026

Verify a MySQL restore with data and application invariants

A restore test proves that backup bytes can reconstruct a candidate database, but correctness also needs schema, row, constraint, routine, permission, and application checks.

The Tryssh team · July 29, 2026

Create a transactionally consistent mysqldump for InnoDB

Single-transaction establishes a consistent read for transactional tables while concurrent DDL and nontransactional engines require separate controls.

The Tryssh team · July 29, 2026