Server rental store

Databases

# Databases

Overview

Databases are a fundamental component of any MediaWiki installation, and critically important for the performance and scalability of the wiki itself. This article provides a comprehensive overview of database configuration considerations for a MediaWiki 1.40 installation, focusing on the choices available and the implications for a robust and efficient wiki **server**. Understanding these elements is vital for anyone managing a wiki with significant content or user traffic. The core function of **databases** in MediaWiki is to store all the wiki's data: page content, revision history, user information, category structures, and metadata. Without a properly configured database, even the most powerful **server** hardware will result in a sluggish and unreliable wiki experience. We will cover supported database systems, configuration best practices, performance optimization techniques, and potential pitfalls. The choice of database engine impacts everything from read/write speeds to data integrity. Poor database configuration is a common cause of MediaWiki performance issues, especially as the wiki grows. This article is geared towards system administrators and experienced wiki maintainers looking to optimize their MediaWiki deployment. We will also briefly touch upon how database choice can influence the required resources for your Dedicated Servers. Understanding Server Configuration is crucial for effective wiki management.

Specifications

MediaWiki 1.40 officially supports several database management systems (DBMS). The selection should be based on your existing infrastructure, technical expertise, and anticipated workload. Here's a detailed breakdown of the supported options and their recommended specifications:

Database System Supported Versions (as of MediaWiki 1.40) Minimum Requirements Recommended Requirements Notes
MySQL/MariaDB MySQL 5.7, 8.0; MariaDB 10.2, 10.3, 10.4 512MB RAM, 1 CPU core, 10GB disk space 4GB RAM, 2 CPU cores, 50GB SSD disk space Most widely used and well-supported. MariaDB is a popular open-source fork of MySQL, often offering performance advantages. Consider SSD Storage for optimal performance.
PostgreSQL 9.6, 10, 11, 12, 13, 14 1GB RAM, 1 CPU core, 20GB disk space 8GB RAM, 4 CPU cores, 100GB SSD disk space Known for its robustness and adherence to SQL standards. Requires more resources than MySQL/MariaDB but offers advanced features. Check Database Replication for high availability.
SQLite 3.x N/A (file-based) N/A (not recommended for production) Suitable for small, single-user wikis or testing environments. Not scalable for production use. Avoid in any production environment. Review Security Best Practices before using.
Oracle 12c, 18c, 19c 2GB RAM, 2 CPU cores, 50GB disk space 8GB RAM, 4 CPU cores, 200GB SSD disk space Enterprise-level database known for its scalability and reliability. Requires significant expertise to manage.

The "Minimum Requirements" are the absolute lowest configurations that *may* allow MediaWiki to function, but performance will likely be severely limited. "Recommended Requirements" provide a more realistic baseline for acceptable performance with moderate traffic. Higher traffic volumes and larger datasets will necessitate significantly more resources. Remember to factor in future growth when estimating database resource needs. The choice of database is often linked to the overall Server Scalability of your setup.

Use Cases

The optimal database choice depends heavily on the intended use case for your MediaWiki installation. Here's a breakdown of common scenarios and corresponding recommendations:

⚠️ *Note: All benchmark scores are approximate and may vary based on configuration. Server availability subject to stock.* ⚠️