Create heat database with default character set utf-8

The heat-db-setup script wasn't creating the heat database with default
character set utf-8 which can cause the migrations to fail.

Closes-Bug: #1276880

Change-Id: I35861af66d70314285fa76bb148e403aeea4b654
This commit is contained in:
Matt Riedemann 2014-02-05 17:26:25 -08:00
parent 2361051705
commit 84e1942f0b

View File

@ -235,7 +235,7 @@ echo "Verified connectivity to MySQL."
echo "Creating 'heat' database."
cat << EOF | mysql -u root ${MYSQL_ROOT_PW_ARG}
CREATE DATABASE IF NOT EXISTS heat;
CREATE DATABASE IF NOT EXISTS heat DEFAULT CHARACTER SET utf8;
GRANT ALL ON heat.* TO 'heat'@'localhost' IDENTIFIED BY '${MYSQL_HEAT_PW}';
GRANT ALL ON heat.* TO 'heat'@'%' IDENTIFIED BY '${MYSQL_HEAT_PW}';
flush privileges;