Jump to content

Manual:Update.php/ko

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

상세

update.php는 현재 버전의 미디어위키를 구동하기 위해 미디어위키 데이터베이스 스키마를 업데이트해야 하는지에 대한 여부를 확인합니다. 미디어위키를 업그레이드하거나 스키마 업데이트가 필요한 확장 기능을 설치한 후에 update.php를 실행하여야 합니다. 스키마 업데이트가 필요한 확장 기능들은 대부분 문서에 업데이트 여부를 언급합니다.

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.

Usage

경고 경고: update.php may exit with errors, leaving the database in an inconsistent state. Always backup the database before running the script!

브라우저에서

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

웹 업데이터

From the command line

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

$ php maintenance/run.php update

Vagrant 인스턴스를 사용하는 경우 다음을 따르십시오 (vagrant ssh에서 실행하십시오).

$ mwscript update.php

Parameters

This script offers several parameters (generic, script-dependent, and script-specific) that 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 a virtual host, where wikiId - database name (e.g., enwiki, dewiki ...)
--conf
Specifies the config file (the LocalSettings.php file for the specific wiki). 위키 패밀리에 사용됩니다.
Script specific parameters
--quick
skip countdown sequence
--initial
(1.43버전부터 도입됨) Do initial updates required after manual installation using tables-generated.sql
--doshared
Update shared tables as well.
--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 indexes, which "update.php" also performs).
--force
Run this script even if configuration options disable it.
--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.
경고 경고: 개발자만 사용하는 것을 권장합니다.
--skip-config-validation
(1.39버전부터 도입됨) Skips checking whether the existing configuration is valid. Otherwise, this script will not run if an invalid configuration is detected.
--skip-compat-checks
(1.41 에서 제거됨) 호환성 검사 무시, Gerrit change 851684
--nopurge
(1.36 에서 제거됨) 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.

주의 주의:

같이 보기