Server rental store

Database Management Systems

# Database Management Systems

This article provides a detailed overview of Database Management Systems (DBMS) used with MediaWiki, focusing on configuration and technical details relevant for server administrators. Understanding your DBMS is crucial for optimal MediaWiki performance and data integrity. We will cover commonly used databases: MySQL/MariaDB, PostgreSQL, and SQLite.

Introduction to DBMS and MediaWiki

MediaWiki relies on a robust DBMS to store all its data: page content, user information, revision history, and configuration settings. The choice of DBMS can significantly impact performance, scalability, and ease of maintenance. While MediaWiki supports several options, MySQL/MariaDB and PostgreSQL are the most commonly deployed in production environments. SQLite is suitable for smaller, less demanding installations, such as testing or personal wikis.

The `$wgDBtype` variable in `LocalSettings.php` defines the database type used by your MediaWiki installation. Correctly configuring this variable, along with the associated database credentials and settings, is the first step in setting up your MediaWiki environment. Refer to the Configuration settings page for details on `LocalSettings.php`.

MySQL / MariaDB

MySQL and MariaDB are popular open-source relational database management systems. MariaDB is a fork of MySQL, aiming to remain open-source while providing enhanced features and performance. They are widely used with MediaWiki due to their maturity and extensive documentation.

Technical Specifications

Parameter Value
Database Engine InnoDB (recommended) Version (Minimum) MySQL 5.7 or MariaDB 10.2 Character Set utf8mb4 (recommended) Collation utf8mb4_unicode_ci (recommended)
Max Allowed Packet 64M (adjustable based on needs) Wait Timeout 28800 (seconds - adjustable)

Configuration Considerations

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