Handbuch:MariaDB

From mediawiki.org
This page is a translated version of the page Manual:MariaDB and the translation is 54% complete.
Handbuch:Inhaltsübersicht MediaWiki Datenbank-Layout MariaDB/de

Die MariaDB-Datenbank-Engine ist eines der am meisten verwendeten Datenbank-Backends für MediaWiki. Da MariaDB das von den Websites der Wikimedia Foundation verwendete relationale Datenbankverwaltungssystem ist, wird es im MediaWiki gut unterstützt.

Siehe Kompatibilität#Datenbank für eine Liste der unterstützten Versionen.

Zu MariaDB verbinden

 mysql -u wikiuser -p my_wiki

Change wikiuser and my_wiki to the username and database name for your wiki ($wgDBuser and $wgDBname ). Wenn Sie dazu aufgefordert werden, geben Sie Ihr Passwort ein.

Beispiel

$ mysql -u root -p my_wiki
Enter password: 
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 150
Server version: 5.6.24-0ubuntu2 (Ubuntu)
...

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>.

Installation

Für weitere Informationen siehe Manual:Installing MediaWiki#Create a database

If MariaDB is installed, the installation script can create a database for you. Just supply the script with your RDBMS root password (by default, blank).

Warnung Warnung: Leaving the root password blank can seriously compromise the security of the MediaWiki installation. You should modify the password if you haven't already.
If you are installing MediaWiki on an ISP server, you might have to share a db with some other applications, which increases the risk of a conflict between database tables required by MediaWiki with pre-existing tables. To solve this problem you can instruct MediaWiki to use a table prefix, so that all tables of MediaWiki begin with this prefix. Alternatively, if your ISP allows, use different databases for each application that resides on the server.


Wartung

Multiple maintenance scripts are included in the /maintenance/ directory of your MediaWiki installation. Some of these scripts are provided to refresh parts of the database as one-time operations.

Datenbank importieren

Für weitere Informationen siehe Handbuch:XML-Dumps importieren

Datenbank exportieren

Für weitere Informationen siehe Anleitung:Backup eines Wikis

Siehe auch

Externe Links