File: mysql_database_configure.sh

package info (click to toggle)
python-tosca-parser 2.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,920 kB
  • sloc: python: 11,185; sh: 144; makefile: 26
file content (8 lines) | stat: -rwxr-xr-x 209 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
#!/bin/sh
cat << EOF | mysql -u root --password=$db_root_password
CREATE DATABASE $db_name;
GRANT ALL PRIVILEGES ON $db_name.* TO "$db_user"@"localhost"
IDENTIFIED BY "$db_password";
FLUSH PRIVILEGES;
EXIT
EOF