Implement extension registration from an extension.json file
[mediawiki.git] / maintenance / storage / make-blobs
blob16dcb67206d24673e167a213eeafa61502375f32
1 #!/bin/bash
3 if [ -z $2 ];then
4 echo 'Usage: make-blobs <server> <db> [<table name>]'
5 exit 1
6 fi
7 if [ -z $3 ]; then
8 table=blobs
9 else
10 table=$3
13 echo "CREATE DATABASE $2" | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 && \
14 sed "s/blobs\>/$table/" blobs.sql | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2