Manual:Desinstalação

From mediawiki.org
This page is a translated version of the page Manual:Uninstallation and the translation is 22% complete.

Desinstalar MediaWiki por completo pode ser realizado em dois passos: removendo a diretoria onde o MediaWiki foi instalado, e eliminar a base de dados do MediaWiki de MySQL ou Postgres.

Eliminação dos ficheiros do MediaWiki

To uninstall the wiki itself, simply delete the directory containing the wiki's files. For example, if you installed MediaWiki to /var/www/mediawiki-xyz, you might do:

rm -rf /var/www/mediawiki-xyz
Aviso Aviso: Depending how you configured your wiki, uploaded files and images may be stored within a sub-directory of the installation directory. If you don't want to delete the uploaded content, make sure you move this to a safe place before deleting!

Eliminação da base de dados

Aviso Aviso: This will completely delete all your wiki data. Also, if you installed your wiki into an existing database that also contains other unrelated tables DO NOT use the instructions below or you will lose everything. In this case you will need to manually delete each of the wiki's tables. See the instructions for your database software for more details about how to do this.
This assumes that you used the default database name during install. If you used a database name other than wikidb you may have to replace wikidb below with whatever name you used for your database.

MySQL

To remove the MySQL database holding your wiki, use the mysql utility to interactively connect to MySQL as a user with adequate permissions, then issue the following command at the mysql> prompt:

DROP DATABASE wikidb;

Alternatively, you can use a DB administrative tool, such as PHPMyAdmin, to perform the same action.

PostgreSQL

To remove the Postgres database holding your wiki, run the following command:

dropdb wikidb

or connect to the database as a user with the correct permissions and issue:

DROP DATABASE wikidb;