Movatterモバイル変換


[0]ホーム

URL:


Jump to content
Wikitech
Search

Nova Resource:Deployment-prep/Import to betawiki

From Wikitech
<Nova Resource:Deployment-prep

How to import articles to Betawiki

1. Export desired article(s) in XML format usingSpecial:Exports from source wiki.

2. Log in to deployment-bastion. This requires shell access (root?) to betawikis.

3. Go to mediawiki maintenance folder:

/data/scratch/mediawiki/core/maintenance

4. Become root.

5. Import from XML:

mwscript importDump.php --wiki=eswiki /tmp/Wikipedia-TIMESTAMP.xml

Test using --dry-run if needed. It isimportant to have dump/XML in /tmp so that mwscript can access it.

6. RebuildRecentChanges by:

mwscript rebuildrecentchanges.php --wiki=eswiki

Troubleshooting

1.DB connection error: Can't connect to local MySQL server throughsocket '/var/run/mysqld/mysqld.sock' (2) (localhost)

Solution: Your dump file must be in /tmp

Retrieved from "https://wikitech.wikimedia.org/w/index.php?title=Nova_Resource:Deployment-prep/Import_to_betawiki&oldid=147740"

[8]ページ先頭

©2009-2025 Movatter.jp