Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / local / mysql-database-create
1 #!/bin/sh -eux
2 db="$1"
3 user="${2:-$1}"
4 sudo -u mysql mysql --batch --verbose <<-EOF
5 CALL mysql.create_database('$db', '$user', 'localhost');
6 EOF