File: prep-mysql-db.sh

package info (click to toggle)
rsyslog 8.2302.0-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,980 kB
  • sloc: ansic: 112,474; sh: 36,403; makefile: 4,284; lex: 560; python: 535; yacc: 191; perl: 162; sql: 103; tcl: 9; ruby: 2
file content (5 lines) | stat: -rwxr-xr-x 257 bytes parent folder | download | duplicates (5)
1
2
3
4
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;"