Skip to content

Instantly share code, notes, and snippets.

@BetaStacks
BetaStacks / create-mysql.bash
Last active July 27, 2017 13:57 — forked from askz/create-mysql.bash
Simple bash script to create mysql db, user with generated password
#!/bin/bash
# The script will fail at the first error encountered
set -e
echo "Type the name for your database, followed by [ENTER]:"
read DB
echo "Type the username for your database, followed by [ENTER]:"
read USR