How to run MySQL command on bash?
Use double quotes while using BASH variables. mysql –user=”$user” –password=”$password” –database=”$database” –execute=”DROP DATABASE $user; CREATE DATABASE $database;” BASH doesn’t expand variables in single quotes.