매뉴얼:MySQL

From mediawiki.org
This page is a translated version of the page Manual:MySQL and the translation is 69% complete.
Outdated translations are marked like this.
Manual:컨텐츠 미디어위키 데이터베이스 레이아웃 MySQL/ko

MySQLMariaDB 데이터베이스 엔진은 미디어위키의 가장 흔히 쓰이는 데이터베이스 백엔드입니다. MariaDB는 웹사이트의 위키미디어 재단 위키 팜에 쓰이는 관계형 데이터베이스 관리 시스템이므로 미디어위키에서 잘 지원됩니다. Much of the advice for MySQL and for MariaDB apply to each other.

See Compatibility#Database for a list of supported versions.

MySQL 또는 MariaDB에 연결하기

 mysql -u wikiuser -p my_wiki

Change wikiuser and my_wiki to the username and database name for your wiki ($wgDBuser and $wgDBname ). When prompted, enter your password.

Example

$ 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>.

설치

For further information, see 매뉴얼:미디어위키 설치#데이터베이스 만들기

기본적으로 MySQL이나 MariaDB가 설치되어 있다면 설치 스크립트를 통해 데이터베이스를 생성할 수 있습니다. 간단히 스크립트에 mysql 루트 비밀번호를 지정하십시오. (기본값은 비어있음)

경고 경고: 루트 비밀번호를 빈 상태로 두면 미디어위키 설치의 보안에 심각한 위협을 줄 수 있습니다. 아직 진행하지 않으셨다면 비밀번호를 수정하는 것이 좋습니다.
ISP 서버에 미디어위키를 설치하고 있는 경우 다른 일부 다른 애플리케이션과 DB를 공유해야 할 수 있는데 이 경우 기존의 테이블과 미디어위키에 필요한 데이터베이스 테이블 간 충돌이 발생할 위험이 커집니다. 이 문제의 해결을 위해 미디어위키에 테이블 접두어를 사용하도록 지시할 수 있으며 이로써 미디어위키의 모든 테이블은 이 접두어로 시작하게 됩니다. 다른 방법으로, ISP가 허용하는 경우 서버에 상주하는 개별 애플리케이션에 대해 다른 데이터베이스를 사용하십시오.

정비

여러 정비용 스크립트가 미디어위키 설치본의 /maintenance/ 디렉터리에 포함되어 있습니다. 이 스크립트 중 일부는 단일성 작업으로 데이터베이스의 일부를 갱신하기 위해 제공됩니다.

데이터베이스 가져오기

For further information, see Manual:Importing XML dumps

데이터베이스 내보내기

For further information, see 매뉴얼:위키를 백업하는 법

같이 보기

외부 링크