106 articles
Knowledge Base
MySQL & MariaDB
106 articles in the MySQL & MariaDB category · page 2 of 5.
- Database backup verification — how to know your restore actually works Backup verification across four levels — storage integrity, schema restore, data restore, application restore — with automation patterns for MySQL, PostgreSQL, and MongoDB.
- MySQL 8.0 to 8.4 — what breaks, what is removed, what you upgrade FOR Migration reference for the 8.0 to 8.4 LTS upgrade. Removed features, default-value changes that bite, connector compatibility, and the practical step list.
- Zero-downtime MySQL major-version upgrade — InnoDB, replicas, cutover Production runbook for upgrading MySQL 5.7 to 8.0 or 8.0 to 8.4 LTS without taking the application offline. Replica-seed strategy, cutover sequence, rollback.
- MySQL GTID replication — setup, switchover, and the rules that matter How GTID-based replication works in MySQL, the configuration we deploy on primary and replica, switchover and re-pointing, and the rules that keep GTID safe.
- Detecting and killing long-running queries on a cPanel MySQL host without taking the site down A 200-second query holding a table lock blocks every other write. KILL is the right tool; SHOW PROCESSLIST is how you decide which one to kill.
- Reading SHOW ENGINE INNODB STATUS on a cPanel host — the sections that matter INNODB STATUS dumps 400 lines of internal state. Three sections — LATEST DETECTED DEADLOCK, TRANSACTIONS, BUFFER POOL — answer most questions; the rest is noise unless you're writing InnoDB.
- Aborted_connects climbing on a cPanel MySQL host — what each cause looks like A spike in Aborted_connects can mean failed authentication, network drops, client misconfig, or a brute-force scan. Reading the right log distinguishes them in seconds.
- Enabling the MySQL slow query log on a cPanel host without filling the disk cPanel does not expose slow query logging in the UI. Enabling it from my.cnf has two traps — rotation and `long_query_time` defaults — that can put 4GB of logs on a tiny VPS overnight.
- Requiring TLS on remote MySQL connections from a cPanel host — beyond the default cPanel installs MySQL with TLS available but not enforced. A remote MySQL grant accepted in cleartext exposes credentials to anyone on the network path.
- Repairing a corrupted cPanel database map without losing customer grants When the cPanel dbmap and MySQL grant tables disagree, the UI lies about what an account owns. `dbmaprepair` reconciles them — but the order of operations matters.
- Setting `skip_name_resolve` on a cPanel MySQL host — connection speed vs grant flexibility Without skip_name_resolve, MySQL does a reverse-DNS lookup on every connection. Enabling it makes connects faster and stricter — every host-based grant must use an IP, not a name.
- Finding the MySQL error log on a cPanel server — where it actually lives cPanel hosts have moved the MySQL error log path across versions. Knowing the three places it might be saves you when the "MySQL is down" call comes in.
- pt-query-digest — reading the slow query report How to use pt-query-digest end-to-end — collect slow log or tcpdump, generate the digest, read each section, and turn the top offenders into actionable index or rewrite work.
- ProxySQL query rules — routing, mirroring, and rewriting in production How we use ProxySQL query rules to route, mirror, throttle, rewrite, and shed traffic — the columns that matter, the precedence model, and the production patterns we deploy.
- MariaDB MaxScale — read/write splitting and failure-aware routing How we deploy MaxScale in front of a MariaDB primary-replica or Galera topology to split reads from writes, hide failovers, and survive a backend losing quorum.
- Switching a cPanel server from MySQL to MariaDB without a one-way door MariaDB is wire-compatible with MySQL, not data-file compatible. The switch is a dump-and-restore in disguise, and once you cross the version barrier, MySQL cannot read MariaDB data.
- Migrating a single database between cPanel accounts on the same server without dbmap drift cPanel's account-prefix system means you can't just RENAME DATABASE — both accounts' dbmap entries need updating and the application has to learn a new name.
- Detecting InnoDB deadlocks on a cPanel host before customers notice InnoDB detects and rolls back deadlocks automatically, but the rollback surfaces as an application error. Capturing the deadlock details turns a recurring problem into a fixable one.
- Upgrading MariaDB from 10.5 to 10.6 on a cPanel server without breaking the user mapping cPanel's MySQL/MariaDB Upgrade wizard runs mysql_upgrade and updates the system tables. What it does not do is verify your applications survive the InnoDB redo log format change.
- Recovering a cPanel MySQL host when /var/lib/mysql hits 100% — without losing data A full data directory locks MySQL into a read-only state and risks crash on next restart. The recovery is staged — free space first, then resume writes — and the first move matters.
- Restoring a single database from JetBackup on a cPanel host — without restoring the whole account JetBackup's account-level restore touches files, mail, DNS, and databases. For a database-only recovery, the granular restore is the right tool — and the dbmap needs the same care as any restore.
- Running mysql_upgrade on a cPanel host — when it's needed and what it actually does mysql_upgrade is the post-package-update step that updates the system tables to the new daemon's expectations. The cPanel wizard runs it automatically, but manual triggers are sometimes necessary.
- Reading the MySQL slow query log on a cPanel host without drowning in noise The slow log file is unreadable raw. Aggregating with pt-query-digest reveals which account, which query, and which page is responsible — not the once-a-day analytics export.
- Enabling and using the MySQL Event Scheduler on a cPanel host — when cron is wrong The MySQL Event Scheduler runs SQL on a schedule from inside the database. It survives application restarts and beats wrapping a shell cron around mysql -e, but cPanel does not enable it by default.