
Change the file structure to make appropriate for stand alone parser. Change-Id: I6d5259b61b1cd82949262fee4930fa66703ad036
8 lines
209 B
Bash
Executable File
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 |