106 articles
Knowledge Base
MySQL & MariaDB
106 articles in the MySQL & MariaDB category · page 4 of 5.
- MySQL semi-synchronous replication — closing the durability gap How semi-sync replication works in MySQL, when it earns its keep over async, the configuration we deploy, and the timeout and tracing knobs that decide its behaviour under load.
- Tuning asynchronous MySQL replication for production The replication tuning we apply to keep async MySQL/MariaDB replicas in sync — binlog format, sync settings, worker threads, lag thresholds, and the variables that matter.
- MyISAM table size limit on a cPanel host — the 4GB ceiling and how to break past it MyISAM tables on default settings cap at 4GB. Resizing the data and index pointer fields lets the table grow past that, but the real fix is converting to InnoDB.
- Creating MySQL users and grants on a cPanel account without the UI lying to you cPanel's MySQL grant UI uses a limited privilege vocabulary. Knowing what it sets, what it omits, and when to bypass it from the API saves an hour of guesswork per onboarding.
- Running mysqlcheck to repair and optimize databases on cPanel without locking the host mysqlcheck is the right tool for a single damaged InnoDB table — and the wrong tool for a "weekly optimize all" cron. Knowing when to run it and what it actually does saves an outage.
- Setting MySQL server-wide default collation on a cPanel host — what every new database inherits cPanel installs default to utf8 / utf8_general_ci. New databases inherit this unless overridden. Changing the server default protects future tables without retrofitting old ones.
- Resetting a forgotten MySQL root password on a cPanel server without breaking the cPanel daemon cPanel stores the MySQL root password in `/root/.my.cnf` and uses it for every internal MySQL operation. Resetting the password without updating cPanel's copy breaks the next cPanel update.
- MySQL query optimization — reading EXPLAIN in production How an MSP reads EXPLAIN and EXPLAIN ANALYZE in production — join order, access type, key choice, rows estimated vs actual, and the fix patterns we apply most.
- Per-user MySQL connection limits on cPanel — `max_user_connections` and what it does not protect against A per-user connection cap protects MySQL from a runaway app on one account. Setting it sensibly takes some workload math; setting it too low breaks legitimate traffic.
- MySQL Galera recovery from full split-brain — detection and safe bootstrap A three-node Galera cluster goes into a full network partition, every node thinks it's the loser, and writes stop. Here is the detection ladder and the decision tree for picking the right node to bootstrap from.
- Creating a database on a cPanel account without breaking the prefix rules How cPanel scopes per-account databases with a username prefix, what the API accepts, and where the UI silently truncates names that the CLI would have rejected.
- Migrating a cPanel database from utf8 to utf8mb4 without truncating emoji or breaking joins utf8 in MySQL is a three-byte subset. utf8mb4 is the real thing. Converting an existing database needs more than ALTER — index lengths, default collation, and JOIN compatibility all matter.
- mysqldump on cPanel — the flag set that actually produces a restorable dump The mysqldump defaults produce a file that locks every table during dump and may fail on restore. Six flags turn it into something you can run on a live host without an outage.
- Installing MySQL on Ubuntu the right way A reliable Ubuntu install of MySQL 8 covering apt sources, the secure-install bootstrap, systemd integration, and what to verify before opening port 3306.
- Setting per-account database quotas on cPanel — what the UI controls, what MySQL ignores cPanel's reseller plan database quota counts database objects, not disk space. The disk-quota fight happens elsewhere — and ignoring this is how one customer fills /var/lib/mysql.
- MySQL parallel replication — closing the apply gap How parallel replication works in MySQL — logical-clock vs database scheduler, worker count tuning, ordering guarantees, and the metrics that show it is engaging.
- MySQL my.cnf tuning — the variables that actually move the needle A pragmatic walk through innodb_buffer_pool_size, log files, connection limits, and timeouts — what to set, why, and the verification queries to confirm.
- Managing MySQL binlog size on a cPanel server without losing point-in-time recovery Binlogs grow fast on write-heavy workloads. The `expire_logs_days` default is set up to be safe for replication and wrong for everyone else — and PURGE BINARY LOGS has its own traps.
- Checking the MariaDB or MySQL version on a cPanel host — what cPanel reports vs what is installed cPanel's UI reports the version it managed last. The running daemon may be different — useful when investigating an upgrade that didn't take or a manual install someone forgot to mention.
- MySQL OOM tuning — sizing InnoDB so the kernel does not kill mysqld The memory math we apply to InnoDB so mysqld lives below the OOM threshold — buffer pool, per-connection buffers, Performance Schema, and the cgroup limits.
- MySQL transparent data encryption at rest How we enable InnoDB tablespace encryption on MySQL 8 — keyring plugin choices, key rotation, master-key versioning, and the operational reality of running TDE.
- Creating MySQL users and granting privileges correctly A reference for CREATE USER and GRANT in MySQL 8 — host masks, granular privileges, the principle of least privilege, and the audit query every operator should know.
- Opening remote MySQL on cPanel without leaving 3306 wide open cPanel's Remote MySQL feature adds hosts to a per-account allowlist. What it does not do is configure TLS, harden the listener, or stop bots from scanning 3306 the moment you open it.
- Troubleshooting MySQL grants for a cPanel account user when the application says Access denied A connection-level Access denied has six common root causes. Walking them in order — wrong password, wrong host, missing user, no grants, wrong database, wrong port — finishes the triage fast.