summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser/toscaparser/tests/artifacts/mysql/mysql_database_configure.sh
blob: 092136a17fae3bbbae1c6bd4f47aa561c3483e32 (plain)
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