authserver/homestead/scripts/create-mysql.sh
author durandn
Thu, 10 Sep 2015 14:10:06 +0200
changeset 119 5f78fdba6ecc
parent 8 5a0cbbe0922a
permissions -rw-r--r--
Remie: marker delete button is now red to make its function more understandable

#!/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";