rsyslog/devtools/prep-mysql-db.sh
Rainer Gerhards 0307a0cc0a
testbench: improve mysql test framework plumbing
This is an initial try to make mysql tests able to run in parallel,
which also hardens them against some timing problems.
2019-11-26 10:56:33 +01:00

6 lines
257 B
Bash
Executable File

#!/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;"