Commit 84a5fece authored by Jesper Zedlitz's avatar Jesper Zedlitz
Browse files

Update README.md

parent c800ea73
......@@ -27,9 +27,9 @@ Die Seiten in der `wiki-commons`-Datenbank benötigen eine neue Nummer, da die N
```bash
docker run --name db-commons -d -e MARIADB_ROOT_PASSWORD=vdlefZLigejn6 mariadb:latest
IP=`docker inspect db-commons |grep '"IPAddress": "1' |tail -n1 | sed 's/",//' | sed 's/^.*"//'`
echo "create database wiki_commons;" mysql -h $IP -pvdlefZLigejn6
zcat /root/wiki_commons.sql.gz| mysql -h $IP -pvdlefZLigejn6 wiki_commons
DB=`docker inspect db-commons |grep '"IPAddress": "1' |tail -n1 | sed 's/",//' | sed 's/^.*"//'`
echo "create database wiki_commons;" mysql -h $DB -pvdlefZLigejn6
zcat /root/wiki_commons.sql.gz| mysql -h $DB -pvdlefZLigejn6 wiki_commons
# dauert etwa 1 Minute
```
......@@ -46,10 +46,12 @@ commit;
```
```bash
mysqldump -t -w "page_namespace=6" -h $IP -pvdlefZLigejn6 wiki_commons page > page.sql
mysqldump -t -h $IP -pvdlefZLigejn6 wiki_commons image > image.sql
mysqldump -t -h $IP -pvdlefZLigejn6 wiki_commons text > text.sql
mysqldump -t -h $IP -pvdlefZLigejn6 wiki_commons revision > revision.sql
mysqldump -t -w "page_namespace=6" -h $DB -pvdlefZLigejn6 wiki_commons page > page.sql
mysqldump -t -h $DB -pvdlefZLigejn6 wiki_commons image > image.sql
mysqldump -t -h $DB -pvdlefZLigejn6 wiki_commons text > text.sql
mysqldump -t -h $DB -pvdlefZLigejn6 wiki_commons revision > revision.sql
cat page.sql image.sql text.sql revision.sql | mysql -h $IP -u wiki_de -pgwLfmlNrZm8Rs wiki_de
```
## Durchführen des MediaWiki-Updates
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment