MySQL / MariaDB Administration
MySQL & MariaDB Administration — Optimization, Backup & Replication
The database is the heart of every WordPress site and WooCommerce store — and simultaneously the most common performance bottleneck. Default MySQL configuration is not tuned for WordPress requirements: too small InnoDB buffer, no query optimization, bloated wp_options and wp_postmeta tables with thousands of unnecessary transients and revisions. At WebOptimo, we provide professional MySQL and MariaDB database administration — from server configuration tuning, through query and index optimization, to designing backup and replication strategies. Every parameter is tailored to your specific workload and database size.
Tuning
MySQL / MariaDB Configuration Optimization
Default MySQL configuration is a starting point, not a goal. We adjust key server parameters: innodb_buffer_pool_size (matched to database size and available RAM), innodb_log_file_size, tmp_table_size, max_connections, thread_cache_size, join_buffer_size. Every parameter is based on workload analysis — we do not copy configurations from the internet.
Queries
Slow Query Analysis & Optimization
We enable and analyze the slow query log, identify queries that burden the database, add missing indexes, and rewrite inefficient queries. In WordPress and WooCommerce, typical problems include: full table scans on wp_postmeta, slow queries on wp_options with autoload, and missing indexes on order and product tables. We use EXPLAIN and profiling tools to identify bottlenecks.
WordPress
WordPress & WooCommerce Database Optimization
We clean the database of transients, post revisions, orphaned metadata, logs, and spam comments. We optimize wp_options (limiting autoload), wp_postmeta (indexing), and WooCommerce tables (orders, sessions, logs). We convert MyISAM tables to InnoDB, verify character encoding (utf8mb4), and repair corrupted tables.
Backup
Backup & Disaster Recovery
We perform database backups using mysqldump, mysqlpump, or Percona XtraBackup. For large WooCommerce databases, we use incremental hot backups with Percona XtraBackup — without table locking and without downtime. Copies are stored locally and remotely (offsite) with AES-256 encryption and retention rotation. We regularly test recovery procedures.
Replication
MySQL / MariaDB Replication
We configure database replication: master-slave for read offloading and disaster recovery, master-master for high availability. Replication is particularly important for large WooCommerce stores with heavy traffic — reads from the replica offload the primary database server. We monitor replication lag and data integrity.
Monitoring
Database Performance Monitoring
We monitor key MySQL/MariaDB metrics around the clock: queries per second, InnoDB buffer pool utilization, slow queries, active connections, table locks, table and index sizes, disk usage. Alerts on threshold breaches — we respond before database issues affect your website.
Most WordPress and WooCommerce performance problems originate in the database — not the server, not PHP, not the cache. A bloated wp_options table with thousands of autoloaded transients, missing indexes on wp_postmeta, default MySQL configuration with the InnoDB buffer set to 128 MB for a 2 GB database. Database optimization is not a one-time action — it is ongoing work that we perform as part of every WordPress care plan.