<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://serverrental.store/index.php?action=history&amp;feed=atom&amp;title=%24wgDBtype</id>
	<title>$wgDBtype - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://serverrental.store/index.php?action=history&amp;feed=atom&amp;title=%24wgDBtype"/>
	<link rel="alternate" type="text/html" href="https://serverrental.store/index.php?title=$wgDBtype&amp;action=history"/>
	<updated>2026-04-15T13:38:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://serverrental.store/index.php?title=$wgDBtype&amp;diff=2097&amp;oldid=prev</id>
		<title>Admin: Automated server configuration article</title>
		<link rel="alternate" type="text/html" href="https://serverrental.store/index.php?title=$wgDBtype&amp;diff=2097&amp;oldid=prev"/>
		<updated>2025-04-16T03:42:48Z</updated>

		<summary type="html">&lt;p&gt;Automated server configuration article&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;# Understanding and Configuring $wgDBtype in MediaWiki&lt;br /&gt;
&lt;br /&gt;
This article provides a comprehensive overview of the `$wgDBtype` configuration variable in MediaWiki 1.40, aimed at newcomers to MediaWiki server administration.  It details what `$wgDBtype` does, supported database types, configuration considerations, and troubleshooting tips. Properly configuring this variable is critical for a stable and performant wiki.&lt;br /&gt;
&lt;br /&gt;
== What is $wgDBtype? ==&lt;br /&gt;
&lt;br /&gt;
`$wgDBtype` is a global PHP variable within the `LocalSettings.php` file that specifies the type of database backend MediaWiki will use to store its data.  MediaWiki supports a variety of database systems, each with its own strengths and weaknesses.  Selecting the appropriate database is crucial for performance, scalability, and maintainability. Incorrectly setting `$wgDBtype` will lead to errors and a non-functional wiki. It is one of the very first configurations you must get correct.  See [[Manual:Configuration settings]] for more general information.  &lt;br /&gt;
&lt;br /&gt;
== Supported Database Types ==&lt;br /&gt;
&lt;br /&gt;
MediaWiki 1.40 officially supports the following database types.  Each has its own dependencies and configuration nuances, detailed below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Database Type&lt;br /&gt;
! Description&lt;br /&gt;
! Common Use Cases&lt;br /&gt;
! Performance Characteristics&lt;br /&gt;
|-&lt;br /&gt;
| MySQL/MariaDB&lt;br /&gt;
| The most commonly used database for MediaWiki. Mature, well-documented, and widely available.&lt;br /&gt;
| Small to large wikis, most general use cases.&lt;br /&gt;
| Generally good performance, especially with proper indexing and caching.&lt;br /&gt;
|&lt;br /&gt;
| PostgreSQL&lt;br /&gt;
| A powerful, open-source object-relational database system. Known for its data integrity and advanced features.&lt;br /&gt;
| Large wikis, wikis requiring high data integrity, complex queries.&lt;br /&gt;
| Excellent performance, particularly with complex queries, but may require more tuning.&lt;br /&gt;
|&lt;br /&gt;
| SQLite&lt;br /&gt;
| A self-contained, serverless, zero-configuration, transactional SQL database engine.&lt;br /&gt;
| Small wikis, testing environments, single-user wikis.&lt;br /&gt;
| Suitable for very small datasets, but performance degrades rapidly with scale. Not recommended for production.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Configuration Details ==&lt;br /&gt;
&lt;br /&gt;
After selecting a database type, you must configure the `$wgDBtype` variable in your `LocalSettings.php` file.  You will also need to define other database-related variables.  Here's a breakdown for each supported type:&lt;br /&gt;
&lt;br /&gt;
=== MySQL/MariaDB ===&lt;br /&gt;
&lt;br /&gt;
```php&lt;br /&gt;
$wgDBtype = 'mysql';&lt;br /&gt;
$wgDBserver = 'localhost';  // Or the IP address of your MySQL server&lt;br /&gt;
$wgDBname = 'your_database_name';&lt;br /&gt;
$wgDBuser = 'your_database_user';&lt;br /&gt;
$wgDBpassword = 'your_database_password';&lt;br /&gt;
$wgDBport = 3306; // Default port, change if needed&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Refer to [[Manual:Database setup]] for more comprehensive MySQL/MariaDB configuration.  Consider using a [[Database replication]] setup for larger wikis to improve read performance and provide redundancy.&lt;br /&gt;
&lt;br /&gt;
=== PostgreSQL ===&lt;br /&gt;
&lt;br /&gt;
```php&lt;br /&gt;
$wgDBtype = 'pgsql';&lt;br /&gt;
$wgDBserver = 'localhost';  // Or the IP address of your PostgreSQL server&lt;br /&gt;
$wgDBname = 'your_database_name';&lt;br /&gt;
$wgDBuser = 'your_database_user';&lt;br /&gt;
$wgDBpassword = 'your_database_password';&lt;br /&gt;
$wgDBport = 5432; // Default port, change if needed&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
For PostgreSQL, ensure the `pg_hba.conf` file is correctly configured to allow access from the MediaWiki server.  See [[Manual:PostgreSQL]] for detailed instructions.  Proper [[Database indexing]] is essential for PostgreSQL performance.&lt;br /&gt;
&lt;br /&gt;
=== SQLite ===&lt;br /&gt;
&lt;br /&gt;
```php&lt;br /&gt;
$wgDBtype = 'sqlite';&lt;br /&gt;
$wgDBserver = '/path/to/your/database.sqlite'; // Full path to the SQLite database file&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
SQLite is simple to set up, but remember its limitations.  It is generally unsuitable for wikis with more than a few users.  Ensure the web server user has write access to the SQLite database file.  See [[Manual:SQLite]] for more information.&lt;br /&gt;
&lt;br /&gt;
== Database Character Sets and Collations ==&lt;br /&gt;
&lt;br /&gt;
Choosing the correct character set and collation is vital for supporting multiple languages and ensuring proper data storage.  UTF-8 is the recommended character set for MediaWiki.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Database Type&lt;br /&gt;
! Recommended Character Set&lt;br /&gt;
! Recommended Collation&lt;br /&gt;
|-&lt;br /&gt;
| MySQL/MariaDB&lt;br /&gt;
| utf8mb4&lt;br /&gt;
| utf8mb4_unicode_ci&lt;br /&gt;
|&lt;br /&gt;
| PostgreSQL&lt;br /&gt;
| UTF8&lt;br /&gt;
| en_US.UTF-8 (or your preferred locale)&lt;br /&gt;
|&lt;br /&gt;
| SQLite&lt;br /&gt;
| UTF-8&lt;br /&gt;
| NOCASE (optional, for case-insensitive searches)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Incorrect character set settings can lead to data corruption and display issues.  Refer to the database documentation for instructions on setting these values.  See [[Manual:Internationalization and localization]] for wiki specific details.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting $wgDBtype Issues ==&lt;br /&gt;
&lt;br /&gt;
If you encounter errors related to the database, here are some common troubleshooting steps:&lt;br /&gt;
&lt;br /&gt;
*   **Verify Database Credentials:** Double-check the `$wgDBuser`, `$wgDBpassword`, and `$wgDBname` variables in `LocalSettings.php`.&lt;br /&gt;
*   **Check Database Server Status:** Ensure the database server is running and accessible from the MediaWiki server.&lt;br /&gt;
*   **Firewall Issues:**  Verify that no firewalls are blocking communication between the MediaWiki server and the database server.&lt;br /&gt;
*   **Permissions:** Ensure the database user has the necessary permissions to access and modify the database.&lt;br /&gt;
*   **Error Logs:**  Examine the MediaWiki error logs (`errors/error.log`) and the database server logs for more specific error messages.  Also check the [[Debugging]] page.&lt;br /&gt;
*   **Database Connection Test:** Use a database client (e.g., `mysql` command-line client, `psql`, or a GUI tool) to connect to the database using the same credentials as MediaWiki.&lt;br /&gt;
*   **Check `$wgDBprefix`:** Ensure that the `$wgDBprefix` variable is correctly configured if you are using a database prefix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Further Resources ==&lt;br /&gt;
&lt;br /&gt;
* [[Manual:Configuration settings]]&lt;br /&gt;
* [[Manual:Database setup]]&lt;br /&gt;
* [[Manual:PostgreSQL]]&lt;br /&gt;
* [[Manual:MySQL]]&lt;br /&gt;
* [[Manual:SQLite]]&lt;br /&gt;
* [[Manual:Internationalization and localization]]&lt;br /&gt;
* [[Manual:Database replication]]&lt;br /&gt;
* [[Manual:Database indexing]]&lt;br /&gt;
* [[Manual:Debugging]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Hardware]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Intel-Based Server Configurations ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Configuration&lt;br /&gt;
! Specifications&lt;br /&gt;
! Benchmark&lt;br /&gt;
|-&lt;br /&gt;
| [[Core i7-6700K/7700 Server]]&lt;br /&gt;
| 64 GB DDR4, NVMe SSD 2 x 512 GB&lt;br /&gt;
| CPU Benchmark: 8046&lt;br /&gt;
|-&lt;br /&gt;
| [[Core i7-8700 Server]]&lt;br /&gt;
| 64 GB DDR4, NVMe SSD 2x1 TB&lt;br /&gt;
| CPU Benchmark: 13124&lt;br /&gt;
|-&lt;br /&gt;
| [[Core i9-9900K Server]]&lt;br /&gt;
| 128 GB DDR4, NVMe SSD 2 x 1 TB&lt;br /&gt;
| CPU Benchmark: 49969&lt;br /&gt;
|-&lt;br /&gt;
| [[Core i9-13900 Server (64GB)]]&lt;br /&gt;
| 64 GB RAM, 2x2 TB NVMe SSD&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[Core i9-13900 Server (128GB)]]&lt;br /&gt;
| 128 GB RAM, 2x2 TB NVMe SSD&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[Core i5-13500 Server (64GB)]]&lt;br /&gt;
| 64 GB RAM, 2x500 GB NVMe SSD&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[Core i5-13500 Server (128GB)]]&lt;br /&gt;
| 128 GB RAM, 2x500 GB NVMe SSD&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[Core i5-13500 Workstation]]&lt;br /&gt;
| 64 GB DDR5 RAM, 2 NVMe SSD, NVIDIA RTX 4000&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== AMD-Based Server Configurations ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Configuration&lt;br /&gt;
! Specifications&lt;br /&gt;
! Benchmark&lt;br /&gt;
|-&lt;br /&gt;
| [[Ryzen 5 3600 Server]]&lt;br /&gt;
| 64 GB RAM, 2x480 GB NVMe&lt;br /&gt;
| CPU Benchmark: 17849&lt;br /&gt;
|-&lt;br /&gt;
| [[Ryzen 7 7700 Server]]&lt;br /&gt;
| 64 GB DDR5 RAM, 2x1 TB NVMe&lt;br /&gt;
| CPU Benchmark: 35224&lt;br /&gt;
|-&lt;br /&gt;
| [[Ryzen 9 5950X Server]]&lt;br /&gt;
| 128 GB RAM, 2x4 TB NVMe&lt;br /&gt;
| CPU Benchmark: 46045&lt;br /&gt;
|-&lt;br /&gt;
| [[Ryzen 9 7950X Server]]&lt;br /&gt;
| 128 GB DDR5 ECC, 2x2 TB NVMe&lt;br /&gt;
| CPU Benchmark: 63561&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (128GB/1TB)]]&lt;br /&gt;
| 128 GB RAM, 1 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (128GB/2TB)]]&lt;br /&gt;
| 128 GB RAM, 2 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (128GB/4TB)]]&lt;br /&gt;
| 128 GB RAM, 2x2 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (256GB/1TB)]]&lt;br /&gt;
| 256 GB RAM, 1 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (256GB/4TB)]]&lt;br /&gt;
| 256 GB RAM, 2x2 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 9454P Server]]&lt;br /&gt;
| 256 GB RAM, 2x2 TB NVMe&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Order Your Dedicated Server ==&lt;br /&gt;
[https://powervps.net/?from=32 Configure and order] your ideal server configuration&lt;br /&gt;
&lt;br /&gt;
=== Need Assistance? ===&lt;br /&gt;
* Telegram: [https://t.me/powervps @powervps Servers at a discounted price]&lt;br /&gt;
&lt;br /&gt;
⚠️ *Note: All benchmark scores are approximate and may vary based on configuration. Server availability subject to stock.* ⚠️&lt;br /&gt;
&lt;br /&gt;
{{Exchange Box}}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>