Manual:MySQL
↑ Handbuch:Inhaltsübersicht | MediaWiki Datenbank-Layout | MySQL/de |
MySQL und MariaDB werden im Bezug auf MediaWiki am öftensten verwendet. Da MariaDB das von den Websites der Wikimedia Foundation verwendete relationale Datenbankverwaltungssystem ist, wird es im MediaWiki gut unterstützt. Much of the advice for MySQL and for MariaDB apply to each other.
See Compatibility#Database for a list of supported versions.
Verbindung zu MySQL oder MariaDB
mysql -u wikiuser -p wikidb
Change wikiuser and wikidb 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 wikidb
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
- Weitere Informations: Manual:Installing MediaWiki#Create a database
Grundsätzlich kann das Installationscript, sofern MySQL oder MariaDB installiert ist, eine Datenbank für Sie erstellen. Das Skript ist einfach mit dem mysql-Root-Passwort (standardmäßig leer) zu versehen.
Wartung
Mehrere Verwaltungsskripte sind in dem $maintenace Verzeichnis von ihrer MediaWiki installation. Manche dieser Scripte sind als einmal Operationen um die Datenbank neu zuladen gedacht.
Importieren von Datenbanken
- Weitere Informationen: Handbuch:XML-Dumps importieren
Exportieren von Datenbanken
- Weitere Informationen: Anleitung:Backup eines Wikis