Renamed the dbshard module to schemarouter.

This commit is contained in:
Markus Makela
2015-02-24 05:49:38 +02:00
parent fc969acc73
commit 5477cdf5eb
19 changed files with 98 additions and 98 deletions

View File

@ -0,0 +1,19 @@
#!/bin/bash
if [ $# -lt 5 ]
then
printf "Not enough arguments: '"
for i in $@
do
printf "$i "
done
echo "'given, 5 needed."
echo "usage $0 <host> <port> <username> <password> <database name>"
exit 1
fi
HOST=$1
PORT=$2
USER=$3
PW=$4
SHD=$5
mysql -u $USER -p$PW -P $PORT -h $HOST -e "create database $SHD;"
echo "Created database \"$SHD\" at $HOST:$PORT"