Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / local / mysql-user-create
diff --git a/local/mysql-user-create b/local/mysql-user-create
new file mode 100755 (executable)
index 0000000..1b234fa
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh -eux
+user="$1"
+sudo -u mysql mysql -u mysql --batch --verbose <<-EOF
+       CALL mysql.create_user('$user', 'localhost');
+       EOF
+sudo adduser "$user" mysql-data