Files
tosca-parser/toscaparser/tests/artifacts/mysql/mysql_database_configure.sh
spzala 0a1568ba38 Redefine respository structure
Change the file structure to make appropriate for stand alone parser.

Change-Id: I6d5259b61b1cd82949262fee4930fa66703ad036
2015-08-25 08:18:39 -07:00

8 lines
209 B
Bash
Executable File

#!/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