summaryrefslogtreecommitdiff
path: root/maintenance/storage/make-blobs
blob: 9eb7e83e7bf12569d1ae42acacd8ef507c666931 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

if [ X$2 == X ];then
	echo 'Usage: make-blobs <server> <db>'
	exit 1
fi

echo "CREATE DATABASE $2" | mysql -u wikiadmin -p`wikiadmin_pass` -h $1 && \
mysql -u wikiadmin -p`wikiadmin_pass` -h $1 $2 < blobs.sql