repo.or.cz
/
mediawiki.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge "Make update.php file executable"
[mediawiki.git]
/
maintenance
/
storage
/
make-blobs
blob
16dcb67206d24673e167a213eeafa61502375f32
1
#!/bin/bash
2
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
11
fi
12
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