diff options
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser/tests/artifacts/mysql/mysql_database_configure.sh')
-rw-r--r-- | tosca2heat/tosca-parser/toscaparser/tests/artifacts/mysql/mysql_database_configure.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/tests/artifacts/mysql/mysql_database_configure.sh b/tosca2heat/tosca-parser/toscaparser/tests/artifacts/mysql/mysql_database_configure.sh new file mode 100644 index 0000000..092136a --- /dev/null +++ b/tosca2heat/tosca-parser/toscaparser/tests/artifacts/mysql/mysql_database_configure.sh @@ -0,0 +1,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
\ No newline at end of file |