summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-11 10:02:13 +0200
committerErich Eckner <git@eckner.net>2019-07-11 10:02:13 +0200
commit7350a144458a55ac2934bc89368441005bf25c23 (patch)
tree914422f76ad872ef526d7cee9f753280058be214 /bin
parent12a44751d35ac4a63a0bb522370f75a69816f0bf (diff)
downloadbuilder-7350a144458a55ac2934bc89368441005bf25c23.tar.xz
bin/bootstrap-mysql: webserver@localhost need REPLICATION CLIENT ON *.*
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bootstrap-mysql7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/bootstrap-mysql b/bin/bootstrap-mysql
index 967a65d..e94c5d2 100755
--- a/bin/bootstrap-mysql
+++ b/bin/bootstrap-mysql
@@ -826,9 +826,10 @@ fi
printf 'GRANT %s ON %s TO '"'"'mysqldump'"'"'@'"'"'localhost'"'"';\n' \
'RELOAD' '*.*' \
'FILE' '*.*'
- printf 'GRANT %s ON `buildmaster`.* TO '"'"'webserver'"'"'@'"'"'localhost'"'"';\n' \
- 'CREATE TEMPORARY TABLES' \
- 'SELECT'
+ printf 'GRANT %s ON %s TO '"'"'webserver'"'"'@'"'"'localhost'"'"';\n' \
+ 'CREATE TEMPORARY TABLES' '`buildmaster`.*' \
+ 'SELECT' '`buildmaster`.*' \
+ 'REPLICATION CLIENT' '*.*'
printf 'FLUSH PRIVILEGES;\n'
fi
} | \