<?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=MySQL</id>
	<title>MySQL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://serverrental.store/index.php?action=history&amp;feed=atom&amp;title=MySQL"/>
	<link rel="alternate" type="text/html" href="https://serverrental.store/index.php?title=MySQL&amp;action=history"/>
	<updated>2026-04-15T15:12:14Z</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=MySQL&amp;diff=1954&amp;oldid=prev</id>
		<title>Admin: Automated server configuration article</title>
		<link rel="alternate" type="text/html" href="https://serverrental.store/index.php?title=MySQL&amp;diff=1954&amp;oldid=prev"/>
		<updated>2025-04-15T16:59:52Z</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;# MySQL Server Configuration for MediaWiki 1.40&lt;br /&gt;
&lt;br /&gt;
This article details the necessary MySQL server configuration for optimal performance of a MediaWiki 1.40 installation. Proper configuration is crucial for handling the read and write load generated by a wiki, especially as it grows in size and user base. This guide assumes you have a working MySQL server installation.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
Before beginning, ensure you have:&lt;br /&gt;
&lt;br /&gt;
* A running MySQL server (version 5.7 or 8.0 is recommended). See [[MySQL Website]] for installation instructions.&lt;br /&gt;
* Root access to the MySQL server, or a user with sufficient privileges to create databases and grant permissions.&lt;br /&gt;
* Familiarity with basic SQL commands. Refer to [[SQL Tutorial]] for an introduction.&lt;br /&gt;
* A basic understanding of [[Server Administration]] concepts.&lt;br /&gt;
&lt;br /&gt;
== Database Creation ==&lt;br /&gt;
&lt;br /&gt;
First, create a dedicated database for your MediaWiki installation. This isolates MediaWiki’s data from other applications on the server.&lt;br /&gt;
&lt;br /&gt;
```sql&lt;br /&gt;
CREATE DATABASE IF NOT EXISTS wikidb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Next, create a dedicated MySQL user for MediaWiki with appropriate permissions. *Never* use the root user for MediaWiki.&lt;br /&gt;
&lt;br /&gt;
```sql&lt;br /&gt;
CREATE USER 'wikiuser'@'localhost' IDENTIFIED BY 'your_strong_password';&lt;br /&gt;
GRANT ALL PRIVILEGES ON wikidb.* TO 'wikiuser'@'localhost';&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Replace `'your_strong_password'` with a secure password.  Limit the user to `localhost` access if MediaWiki and MySQL are on the same server for security.  For remote access, change `'localhost'` to the appropriate IP address or `%` for any host (not recommended). Refer to [[MySQL Security]] for further security best practices.&lt;br /&gt;
&lt;br /&gt;
== Configuration Settings ==&lt;br /&gt;
&lt;br /&gt;
The following MySQL settings significantly impact MediaWiki performance. These should be adjusted in your `my.cnf` (or `my.ini` on Windows) file. The location of this file varies depending on your operating system and MySQL installation. Common locations include `/etc/mysql/my.cnf`, `/etc/my.cnf`, or `/usr/local/mysql/etc/my.cnf`.  Always back up your configuration file before making changes.&lt;br /&gt;
&lt;br /&gt;
=== Key Configuration Parameters ===&lt;br /&gt;
&lt;br /&gt;
Here's a table outlining recommended settings. Adjust these based on your server's resources and anticipated load.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Recommended Value&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| `innodb_buffer_pool_size`&lt;br /&gt;
| The size of the buffer pool used by the InnoDB storage engine.  This is the most important setting for InnoDB performance.&lt;br /&gt;
| 50-80% of available RAM&lt;br /&gt;
|  Increase this value as much as possible without causing swapping.&lt;br /&gt;
|-&lt;br /&gt;
| `innodb_log_file_size`&lt;br /&gt;
| The size of each InnoDB log file. Larger log files reduce the frequency of checkpoints.&lt;br /&gt;
| 256M - 1G&lt;br /&gt;
|  Adjust based on write activity; larger values require longer recovery times.&lt;br /&gt;
|-&lt;br /&gt;
| `innodb_flush_log_at_trx_commit`&lt;br /&gt;
| Controls how often InnoDB flushes the log buffer to disk.&lt;br /&gt;
| 1&lt;br /&gt;
| 0 is fastest, but least durable. 2 is a compromise. 1 is slowest, but most durable.&lt;br /&gt;
|-&lt;br /&gt;
| `key_buffer_size`&lt;br /&gt;
| The size of the buffer used for MyISAM key blocks. (Less relevant if primarily using InnoDB)&lt;br /&gt;
| 16M - 64M&lt;br /&gt;
| If using MyISAM tables, increase this.&lt;br /&gt;
|-&lt;br /&gt;
| `max_connections`&lt;br /&gt;
| The maximum number of simultaneous client connections allowed.&lt;br /&gt;
| 150 - 500&lt;br /&gt;
|  Increase if you expect a high number of concurrent users.&lt;br /&gt;
|-&lt;br /&gt;
| `query_cache_size`&lt;br /&gt;
| The size of the query cache.  (Deprecated in MySQL 8.0)&lt;br /&gt;
| 0 (or disabled in 8.0)&lt;br /&gt;
|  The query cache can be detrimental to performance; disable it if using MySQL 8.0 or if contention is high.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Character Set and Collation ==&lt;br /&gt;
&lt;br /&gt;
It's essential to use `utf8mb4` as the character set and `utf8mb4_unicode_ci` as the collation for your database, tables, and connection.  This supports a wider range of characters, including emojis.  Ensure this is set during database creation (as shown above) and also configured in your MediaWiki `LocalSettings.php` file. Refer to [[Character Sets]] for more details.&lt;br /&gt;
&lt;br /&gt;
=== Table Character Set Verification ===&lt;br /&gt;
&lt;br /&gt;
You can verify the character set and collation of your tables using the following SQL query:&lt;br /&gt;
&lt;br /&gt;
```sql&lt;br /&gt;
SHOW CREATE TABLE mytable;&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Replace `mytable` with the name of your table.  If the character set or collation is incorrect, you can alter the table:&lt;br /&gt;
&lt;br /&gt;
```sql&lt;br /&gt;
ALTER TABLE mytable CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
== InnoDB Tuning ==&lt;br /&gt;
&lt;br /&gt;
InnoDB is the recommended storage engine for MediaWiki.  Properly tuning InnoDB is critical for performance.&lt;br /&gt;
&lt;br /&gt;
=== InnoDB Status Monitoring ===&lt;br /&gt;
&lt;br /&gt;
Use the following command to view InnoDB status information:&lt;br /&gt;
&lt;br /&gt;
```sql&lt;br /&gt;
SHOW ENGINE INNODB STATUS;&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
This provides valuable insights into buffer pool usage, log activity, and other important metrics.  Pay attention to the &amp;quot;Buffer pool hit rate&amp;quot; – a high hit rate (above 99%) indicates efficient buffer pool usage.  See [[InnoDB Monitoring]] for more detailed analysis.&lt;br /&gt;
&lt;br /&gt;
=== InnoDB Configuration Detail ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Recommended Value&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| `innodb_file_per_table`&lt;br /&gt;
| Enables storing each InnoDB table in a separate file.&lt;br /&gt;
| ON&lt;br /&gt;
|  Recommended for easier maintenance and backup.&lt;br /&gt;
|-&lt;br /&gt;
| `innodb_io_capacity`&lt;br /&gt;
| The number of I/O operations InnoDB can perform per second.&lt;br /&gt;
| 200-2000&lt;br /&gt;
| Adjust based on your disk's capabilities. SSDs support higher values.&lt;br /&gt;
|-&lt;br /&gt;
| `innodb_flush_method`&lt;br /&gt;
| Controls how InnoDB flushes data to disk.&lt;br /&gt;
| O_DIRECT&lt;br /&gt;
|  Can improve performance, especially with SSDs.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== MediaWiki Specific Considerations ==&lt;br /&gt;
&lt;br /&gt;
* **Large Tables:** As your wiki grows, tables like `recentchanges` and `page` can become very large. Consider using partitioning or archiving strategies to manage these tables. Refer to [[MediaWiki Performance]] for more advanced techniques.&lt;br /&gt;
* **Caching:**  Utilize MediaWiki's built-in caching mechanisms (e.g., Memcached, APCu) to reduce database load.  See [[MediaWiki Caching]].&lt;br /&gt;
* **Regular Maintenance:** Perform regular database maintenance tasks such as `OPTIMIZE TABLE` and `ANALYZE TABLE` to improve performance.  See [[Database Maintenance]].&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
* **Slow Queries:** Use the MySQL slow query log to identify and optimize poorly performing queries. See [[MySQL Slow Query Log]].&lt;br /&gt;
* **Connection Issues:**  Check the MySQL error log for connection errors.&lt;br /&gt;
* **Resource Constraints:** Monitor server resources (CPU, memory, disk I/O) to identify bottlenecks.&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
&lt;br /&gt;
* [[MySQL Documentation]]&lt;br /&gt;
* [[MediaWiki Installation]]&lt;br /&gt;
* [[Server Security]]&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>