mediawiki 복구 edit

압축백업된 mediawiki 디렉토리 압축 풀고 웹 루트에 넣고 phpmyadmin으로 DB생성.

DB 계정 생성


$ mysql -u root -p
Enter Password:
Mysql> grant all privileges on mediawiki.* to mediawiki@localhost identified by '******' with grant option;
Mysql> flush privileges;

DB덤프파일 압축 풀고 복구


$ mysql -u mediawiki -p mediawiki < wiki.db.dump

LocalSettings.php 수정


베이스 경로 설정

...
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath       = "/mediawiki";
...

DB 설정

...
## Database settings
$wgDBtype           = "mysql";
$wgDBserver         = "localhost";
$wgDBname           = "mediawiki";
$wgDBuser           = "mediawiki";
$wgDBpassword       = "******";
...

0 comments:

Post a Comment

Newer -> <- Older