authserver/homestead/scripts/create-mysql.sh
author ymh <ymh.work@gmail.com>
Wed, 16 Sep 2015 21:41:11 +0200
changeset 142 8d5035e5adaf
parent 8 5a0cbbe0922a
permissions -rw-r--r--
change the way the user is created after a cas login

#!/usr/bin/env bash

DB=$1;

mysql -uhomestead -psecret -e "DROP DATABASE IF EXISTS \`$DB\`";
mysql -uhomestead -psecret -e "CREATE DATABASE \`$DB\` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci";