| author | rougeronj |
| Wed, 09 Sep 2015 12:13:28 +0200 | |
| changeset 108 | 00e42730e11a |
| parent 8 | 5a0cbbe0922a |
| permissions | -rw-r--r-- |
|
8
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
diff
changeset
|
1 |
#!/usr/bin/env bash |
|
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
diff
changeset
|
2 |
|
|
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
diff
changeset
|
3 |
DB=$1; |
|
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
diff
changeset
|
4 |
|
|
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
diff
changeset
|
5 |
mysql -uhomestead -psecret -e "DROP DATABASE IF EXISTS \`$DB\`"; |
|
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
diff
changeset
|
6 |
mysql -uhomestead -psecret -e "CREATE DATABASE \`$DB\` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci"; |