Manual:RenameDbPrefix.php

This page is a translated version of the page Manual:RenameDbPrefix.php and the translation is 38% complete.
Versão MediaWiki:
1.13

Detalhes

O arquivo renameDbPrefix.php é um script de manutenção que altera o prefixo das tabelas do banco de dados.

Run this script after changing $wgDBprefix on a wiki. The wiki will have to get downtime to do this correctly.

Arguments

Option Description Required
--old Old db prefix; 0 for none Required
--new New db prefix; 0 for none Required

Usage

php maintenance/run.php renameDbPrefix --old oldDBprefix --new newDBprefix
Terminal
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Common error

Invalid prefix!

This error occurs when either the --old or --new value is incorrect.

See also