Debian Codegraph @

devtools/prep-mysql-db.sh

raw
1 #!/bin/bash
2 # this script prepares a mysql instance for use by the rsyslog testbench
3
4 mysql -u root -e "CREATE USER 'rsyslog'@'localhost' IDENTIFIED BY 'testbench';"
5 mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'rsyslog'@'localhost'; FLUSH PRIVILEGES;"