summaryrefslogtreecommitdiffstats
path: root/devtools/prep-mysql-db.sh
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/prep-mysql-db.sh')
-rwxr-xr-xdevtools/prep-mysql-db.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/devtools/prep-mysql-db.sh b/devtools/prep-mysql-db.sh
new file mode 100755
index 0000000..5f94a3d
--- /dev/null
+++ b/devtools/prep-mysql-db.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+# this script prepares a mysql instance for use by the rsyslog testbench
+
+mysql -u root -e "CREATE USER 'rsyslog'@'localhost' IDENTIFIED BY 'testbench';"
+mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'rsyslog'@'localhost'; FLUSH PRIVILEGES;"