Manual:MariaDB/pl
↑ Podręcznik:Spis treści | MediaWiki database layout | MariaDB/pl |
The MariaDB database engine is one of the most commonly-used database backends for MediaWiki. Since MariaDB is the relational database management system used by the Wikimedia Foundation websites, it is well-supported in MediaWiki.
See Compatibility#Database for a list of supported versions.
Connecting to MariaDB
mysql -u wikiuser -p my_wiki
<translate> Change <tvar|1>wikiuser</> and <tvar|2>my_wiki</> to the username and database name for your wiki (<tvar|3>$wgDBuser
</> and <tvar|4>$wgDBname
</>).</translate>
<translate> When prompted, enter your password.</translate>
<translate>
Example
</translate>
$ 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>.
Instalacja
<translate>
- For further information, see <tvar|1>Manual:Installing MediaWiki#Create a database </>
</translate>
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).
Maintenance
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.
Importowanie bazy danych
<translate>
- For further information, see <tvar|1>Manual:Importing XML dumps </>
</translate>
Export database
<translate>
- For further information, see <tvar|1>Podręcznik:Tworzenie kopii zapasowej wiki </>
</translate>
Zobacz też