Featured Articles
WordPress
Query all WordPress posts in MySQL not having a Yoast SEO meta description
Query all posts in WordPress not having a Yoast SEO meta description yet. You can run this on your MySQL prompt or in phpMyAdmin
MySQL & MariaDB Database Administration & Optimization
Welcome to the database administration and performance tuning hub on saotn.org. In modern web architectures, the database is often the ultimate bottleneck. Ensuring high availability, rapid query execution, and bulletproof data integrity requires a deep understanding of server-side configuration, storage engines, and indexing strategies.
This section delivers practical, hands-on guides for managing MySQL and MariaDB databases in production environments. Whether you are optimizing low-level configuration files (my.cnf), automating routine server backups, upgrading database schemas, or troubleshooting slow-query bottlenecks within content management systems like WordPress, these articles provide verified, real-world blueprints.
Core Database Management Focus Areas
To help you maintain a fast and reliable database layer, our technical MySQL documentation is grouped by operational focus:
Performance Tuning & Caching: Eliminate database latency. Learn how to analyze slow query logs, tune InnoDB buffer pools, optimize memory allocation, and configure thread caches to maximize transaction throughput.
Backup, Recovery & Replication: Secure your enterprise data against corruption or data loss. Master command-line backup techniques, implement automated cron-job dump scripts, and orchestrate safe database restoration procedures.
Database Maintenance & Upgrades: Keep your database engine secure and compliant. Navigate version migrations safely, optimize database tables to reclaim storage space, and manage user privileges via secure access control baselines.
Application Layer Integration: Bridge the gap between your web server and data store. Discover best practices for configuring secure socket connections, tuning persistent database connections, and managing relational integrity for high-traffic web applications.
Browse the chronological archive below for deep-dives into SQL syntax execution, database engine conversions, and expert-level server-side troubleshooting.
WordPress
Query all posts in WordPress not having a Yoast SEO meta description yet. You can run this on your MySQL prompt or in phpMyAdmin
Web applications
Last updated:
The built-in Joomla contact forms component (com_contact) is abused by spammers. I explain how to disable these forms and combat this abuse.
WordPress
Last updated:
A possible fix for the slow Yoast SEO DeleteDuplicateIndexables DELETE statement that times out on large WordPress databases.
WordPress
Last updated:
The Wordfence Live Traffic logging feature can cause high CPU usage and load issues for WordPress websites. Here is how to disable it.
Codebase
Last updated:
Whenever you need to test your ASP.NET connection to your MySQL database, using ODBC, you can use the following C# test script. Currently it uses MySQL ODBC 8.0 Unicode Driver, but you can easily change the version used
Web applications
Last updated:
Connect securely to your MySQL database using PHP Data Objects (PDO); Here is how to connect to MySQL with PHP PDO using SSL.
GNU/Linux
Last updated:
Learn how to restore a single table from a full MySQL mysqldump backup file using Bash shell in Linux
WordPress
Last updated:
9+ Practical tips to optimize WordPress hosting - or for any other PHP web application for that matter. Learn optimizing your WordPress hosting
GNU/Linux
Last updated:
Are you running into MySQL load problems? InnoDB Buffer Pool optimization is an important step in tuning MySQL servers for heavy InnoDB workloads. Configuring innodb_buffer_pool_instances and increase read/write I/O threads. Dividing the InnoDB buffer pool into multiple instances can improve Disk I/O. And by doing so, you run your database & server more efficiently and faster. Here is a little help for you.
WordPress
Last updated:
Schedule WordPress database optimization with WP-Cron.
GNU/Linux
Last updated:
Learn how to turn off swap in Bash, because when a swap partition is enabled Linux starts swapping, which may degrade (MySQL) system performance
Codebase
Last updated:
Learn how to convert a PHP class using the old ext/mysql functions to MySQLi, one function at a time, with a list of MySQLi equivalents.
GNU/Linux
Last updated:
Accidentally deleted an Open-Xchange context? Here is how to restore a deleted OX context and its filestore from your MySQL backups with restorecontext.
WordPress
Last updated:
With thousands spam reactions, disabling (and removing) WordPress comments is often the only way to go. Here is how to disable WordPress comments in both the WordPress Dashboard interface and in your MySQL / MariaDB database.
WordPress
Last updated:
Bulk edit content in your WordPress MySQL database with the MySQL REPLACE() and REGEXP_REPLACE() string functions.
Security
Last updated:
How not validating PHP user input leads to MySQL sleep() injection attacks that hang your database server, and how to fix and clean it up.
Windows Server
Last updated:
A Magento maintenance script for Windows Server and IIS: clear Magento's MySQL log tables and var cache directories on a schedule for a faster webshop.
Web applications
Last updated:
Learn how to speed-up Joomla performance on Windows Server IIS using these 8 simple, but important, tips. Add caching, gzip compression, set your sessions & optimize MySQL database functions.
GNU/Linux
Last updated:
MySQL indexes (indices) are important. Why? Because they speed up the process for MySQL to find requested information.
GNU/Linux
Last updated:
Converting MyISAM tables to InnoDB for more database performance, because: 1) MyISAM is old and no longer developed, and 2) InnoDB is much faster.