106 articles
Knowledge Base
MySQL & MariaDB
106 articles in the MySQL & MariaDB category · page 3 of 5.
- Renaming a cPanel database when MySQL has no RENAME DATABASE — the dump-and-reload pattern MySQL never implemented RENAME DATABASE because of corner cases. On cPanel, the pattern is dump-create-load-drop with dbmap updates at both ends.
- MySQL slow query log — enable, parse, and act on it Turn on the slow query log without restarting MySQL, parse it with pt-query-digest, and use the output to prioritize the queries that actually matter.
- Importing a large dump through phpMyAdmin on cPanel without hitting the timeout wall Why phpMyAdmin times out on imports over 100MB on cPanel, which knobs actually matter, and the CLI escape hatch when the dump is too big to push through a browser at all.
- MySQL online DDL — algorithm and lock strategies that actually run without an outage How MySQL online DDL really works — ALGORITHM=INSTANT, INPLACE, COPY, the lock matrix, and when to reach for pt-osc or gh-ost instead.
- MySQL tmpdir filling up on a cPanel host — where it points and why it matters MySQL writes large temporary tables to `tmpdir`, which defaults to /tmp on most cPanel installs. A 4GB sort against a 100MB /tmp causes silent failures.
- MySQL table partitioning — when, how, and the maintenance routine Range, list, and key partitioning in MySQL — when partitioning actually helps, the syntax we use, partition pruning verification, and the rolling-window pattern for time-series tables.
- Restoring a mysqldump into a cPanel account without surprising the user mapping A restore that succeeds in SQL terms can still leave the cPanel account confused about which databases it owns. Here is the sequence that keeps the dbmap and the data in sync.
- cPanel database prefix limits — what 8 characters and an underscore really constrain cPanel reserves the first 8 characters of every database name for the account prefix. MariaDB's 64-char identifier limit minus the prefix leaves 55 — and 56 in some versions. Knowing the math prevents failed imports.
- Converting MyISAM tables to InnoDB on a cPanel account without locking the site for an hour MyISAM tables on a 2026 cPanel host are a liability — no crash safety, no foreign keys, table-level locking. Converting requires care on the bigger tables but is generally a few-minute job per database.
- XtraBackup — online physical backups of MySQL/MariaDB Hot, consistent physical backups of MySQL and MariaDB using Percona XtraBackup or MariaDB Backup — full, incremental, restore, and the operational discipline behind it.
- MariaDB Galera cluster — install, bootstrap, and operate How we install a three-node MariaDB Galera cluster on Ubuntu, bootstrap it cleanly, and confirm synchronous replication is healthy before letting traffic anywhere near it.
- Sizing `innodb_buffer_pool_size` on a cPanel server with real workload, not a Stack Overflow answer The "70% of RAM" rule of thumb is right for dedicated MySQL hosts and wrong for everything else cPanel typically runs. The actual sizing depends on what shares the server.
- When MySQL temp tables spill to disk on cPanel — reading the symptom, fixing the cause Created_tmp_disk_tables climbing means queries are exceeding the in-memory temp table size. The right fix is sometimes a config knob; more often it's an index or a query rewrite.
- Adding a MySQL replica to a cPanel account for read scaling without confusing the account map cPanel does not natively manage replicas — the dbmap covers one MySQL instance. Adding a read replica means wiring it up below cPanel's visibility, and routing reads in the application.
- mysqlbinlog forensics — reading the binary log to reconstruct events How to use mysqlbinlog to inspect, time-window, and replay MySQL binary logs — the forensic workflow we follow after a bad statement, a corruption, or a customer dispute.
- phpMyAdmin export on cPanel — what to choose, what to skip phpMyAdmin's export dialog has thirty options. Most of them produce a dump that will not restore cleanly. Here is the set that works for a real migration.
- MySQL binlog filtering — selective replication done right How binlog filters work in MySQL — primary-side ignore options, replica-side do/ignore, schema vs table granularity, and the rules an MSP follows to avoid silent data divergence.
- mysqldump backups and restores that survive a real failure A production-grade mysqldump pattern — consistent backups for InnoDB, restore drill, retention, and the limits that push you toward physical backups.
- Tuning MySQL Governor levels for a CloudLinux + cPanel host without surprising existing tenants Governor's level config (CPU, READ, WRITE, CONN, NPROC) interacts with LVE and the cPanel reseller plan. Tuning safely means knowing which level applies to whom.
- Deploying a MariaDB Galera 3-node cluster on AlmaLinux 9 Stand up a self-hosted MariaDB 10.11 Galera cluster on AlmaLinux 9 — TLS-encrypted gcomm, HAProxy frontend, garbd arbitrator on a fourth host.
- Percona Toolkit — the MySQL operator essentials The Percona Toolkit commands an MSP actually uses in production — query digest, online schema change, replication checksums, archive, kill, and how to wield them safely.
- MySQL primary-replica replication setup and verification Configure asynchronous primary-replica replication with GTID, bootstrap a replica from a consistent snapshot, and run the lag-monitoring queries every operator should know.
- ProxySQL — installing and operating the MySQL router How we deploy ProxySQL in front of a MySQL or MariaDB topology, configure hostgroups and users, and route reads to replicas without changing application code.
- Tuning `max_connections` on a cPanel MySQL host for the workload you actually have The default `max_connections` is generous and unrelated to your RAM. Setting it from workload — PHP-FPM children, persistent connections, headroom — saves OOMs and 502s.