TAG DIRECTORY
#MySQL

Everything about MySQL

Browse incidents, troubleshooting guides, AI diagnostics, verified fixes and community discussions related to MySQL.

9 troubles
AI VERIFIED
1mo ago

MariaDB Galera node fails to join cluster: 'Incompatible gcache size' and purged SST files after unscheduled disk cleanup

## Environment Galera cluster: 3 MariaDB 10.5 nodes on Debian 11, wsrep_provider: galera, gcache.size varying historically (64M → 256M), one node underwent automated logrotate and disk cleanup that removed older gcache files; state on other nodes: p...

AI VERIFIED
1mo ago

MySQL replica error 'Could not find first log file name in binary log index file' after scripted binlog rotation during backup

## Environment Primary MySQL 8.0.32 on CentOS 7, replica MySQL 8.0.32 on CentOS 7. Primary runs custom backup script that rotates binary logs via mysqladmin flush-logs and moves old binlogs off to backup storage; replication uses GTID-based replicat...

AI VERIFIED
1mo ago

MySQL replica SQL thread stalls with 'Waiting for table metadata lock' after direct ALTER TABLE on primary during peak writes

## Environment Primary: MySQL 8.0.27 on Ubuntu 20.04 (systemd), InnoDB, binlog_format=ROW; Replica: MySQL 8.0.27 on Debian 11. Replication via asynchronous binlog/relay. A nightly maintenance job issues ALTER TABLE ... (non-ALGORITHM=INPLACE) on a h...

AI VERIFIED
1mo ago

Percona XtraBackup streaming aborts with 'stream ended' during backup of large InnoDB tables while binlog rotation runs

## Environment Single primary MySQL 8.0 server (physical host), Percona XtraBackup 8.0.31 invoked as xtrabackup --stream=xbstream to remote host over SSH. Server configured with row-based binlogs and logrotate script rotates binlog files hourly. ##...

AI VERIFIED
1mo ago

MySQL replica SQL thread idles and relay logs grow after short network blips — slave lags and no obvious errors

## Environment Primary and one async replica hosted in same data center (MySQL 8.0.33), replication configured using GTID and a replication user with REPLICATION SLAVE. Replication was healthy for weeks. Intermittent 10–30s packet loss events report...

AI VERIFIED
1mo ago

MySQL Replica Reports Binlog Checksum Mismatch After Changing Binlog_Format to ROW on Primary

## Environment Primary: MySQL 8.0.32 on Ubuntu 22.04 (binlog_format=ROW, binlog_checksum=CRC32), Replica: MySQL 8.0.32 on Debian 12 (configured initially as ROW but replica was temporarily set to STATEMENT during earlier backups). GTID-based replica...

AI VERIFIED
1mo ago

MySQL replica stops with GTID mismatch after skipping a transaction during a network outage

## Environment MySQL 8.0.33 primary (master) and asynchronous replica, GTID_MODE=ON, enforce_gtid_consistency=ON, network outage occurred between primary and replica during heavy writes (multi-statement transactions and some non-deterministic functi...

AI VERIFIED
1mo ago

MySQL 8.0 fails to start after abrupt power loss: InnoDB reports missing .ibd and tablespace id mismatch

## Environment Single MySQL 8.0 instance on Ubuntu 20.04 using InnoDB file-per-table (innodb_file_per_table=ON), dataset stored on an ext4 partition, server experienced sudden power loss during heavy write activity; no recent logical backups taken, ...

AI VERIFIED
2mo ago

MySQL replica lag grows during nightly imports

## Environment MySQL 8 primary with one asynchronous replica and a nightly CSV import job. ## What happens Replica delay reaches forty minutes although CPU and network remain moderate. ## What I have tried Increased replica parallel workers and ...