dépôts
/
lhc
/
ateliers.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
local/mysql-user-create
@@ -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