Manual:Update.php/ko

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Update.php and the translation is 23% complete.
Outdated translations are marked like this.


상세

update.php는 현재 버전의 MediaWiki를 구동하기 위해 미디어위키 데이터베이스 스키마를 업데이트해야 하는지에 대한 여부를 확인합니다. MediaWIki를 업그레이드하거나 스키마 업데이트가 필요한 확장 기능을 설치한 후에 update.php를 실행하여야 합니다. 스키마 업데이트가 필요한 확장 기능들은 대부분 문서에 업데이트 여부를 언급합니다. You should run update.php after each upgrade of MediaWiki or after the update or install of an extension that requires a schema update. Most extensions that require schema updates will say so in their documentation.

브라우저에서

서버의 명령줄에 접근할 권한이 없는 경우, 웹 업데이터를 사용하여 업데이트 스크립트를 실행시킬 수 있습니다.

웹 업데이터

명령줄에서

명령줄, 혹은 SSH 쉘, 혹은 비슷한 경우:

  • maintenance 폴더로 이동합니다.
  • 스크립트를 실행합니다:
  • Run the update script:
$ php update.php
경고 경고: update.php may exit with errors, leaving the database in an inconsistent state. Always backup the database before running the script!


This maintenance script can be disabled via $wgAllowSchemaUpdates . People with extremely large and busy wikis may need to do upgrades with care, but if you're not sure if that applies to you, then it probably doesn't.
Vagrant 인스턴스를 사용하는 경우 다음을 따르십시오 (vagrant ssh에서 실행하십시오).
$ mwscript update.php

Parameters

This script offers several parameters (generic, script dependent and script specific) which may be required in some wiki environments.

Generic maintenance parameters
--help
used to get a prompt of all available script parameters (generic, script dependent and script specific) together with short explanations of their usage. These are less often used parameters.
--wiki wikiId
update wiki family if database name depends on virtual host, where wikiId - database name (e.g. enwiki, dewiki ...)
Script specific parameters
--quick
skip countdown sequence
--nopurge
do not purge objectcache table. Normally update.php purges the objectcache table (generally contains the parser cache and the messages cache), msg_resource and msg_resource_links (these are used for ResourceLoader message caching and are cleared in 1.21 and later) tables in the database, if you don't want to purge this table, use the --nopurge option.
--doshared
Update shared tables as well.
--force
Run this script even if it is disabled by configuration options.
--conf
Specifies the config file (the LocalSettings.php file for the specific wiki). 위키 패밀리에 사용됩니다.
--noschema
All changes to the table structure or table additions are skipped. Only data changes are made.
--schema
No schema changes are made to the database, but the schema changes are saved to a separate SQL file that can be run.
Allows "update.php" to be run when $wgAllowSchemaUpdates is set to false. This is useful for non-WMF environments where strict DB permissions allow database updates (which "update.php" performs), but no schema changes (such as adding or dropping tables or indices, which "update.php" also performs).
--skip-compat-checks
호환성 검사 무시
--skip-external-dependencies
when using composer.local.json to let Composer install extensions and their dependencies, you may see an error message saying that there is a mismatch between the installed and required version (e.g. "mediawiki/semantic-breadcrumb-links: 1.3.0 installed, ~1.3 required"). You can use this parameter to ignore the message and run update.php regardless.
경고 경고: 개발자만 사용하는 것을 권장합니다.


Extensions can install/update their schemas using LoadExtensionSchemaUpdates hook.

같이 보기