Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:MariaDB

From mediawiki.org
Translate this page
Languages:
Manual:Contents
MediaWiki database layout
MariaDB

TheMariaDB database engine is one of the most commonly-used database backends for MediaWiki.Since MariaDB is the relational database management system used by theWikimedia Foundation websites, it is well-supported in MediaWiki.

SeeCompatibility#Database for a list of supported versions.

Connecting to MariaDB

$ mariadb -u root -p my_wiki

If using a MariaDB 10.3 or earlier:

 mysql -uwikiuser -pmy_wiki

Changewikiuser andmy_wiki to the username and database name for your wiki ($wgDBuser and$wgDBname).When prompted, enter your password.

Example

$ mysql -u root -p my_wikiEnter password: Reading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with -AWelcome to the MySQL monitor.  Commands end with ; or \g.Your MySQL connection id is 150Server version: 5.6.24-0ubuntu2 (Ubuntu)...Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>.

Installation

For further information, seeManual:Installing MediaWiki#Create a database

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

WarningWarning: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.


Maintenance

Multiplemaintenance 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.

Import database

For further information, seeManual:Restoring a wiki from backup


Export database

For further information, seeManual:Backing up a wiki

See also

External links

Engines
Current
Former
Technical documentation
Configuration
Development
Core tables
Current
Former
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:MariaDB&oldid=8076423"
Category:

[8]ページ先頭

©2009-2026 Movatter.jp