Permalink
Browse files

Use latin1 character set when creating the nova database

This works around bug 829209, where we end up with a "'Specified key was
too long" error.

Change-Id: I81e6ed476e8a310fe01809e9afcc2c8d5360e9df
  • Loading branch information...
1 parent 6a29dde commit a147b1c3f1231ca0db3d78e1c6e6b2f258af33a8 @vuntz vuntz committed Jun 14, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 stack.sh
View
3 stack.sh
@@ -1782,7 +1782,8 @@ fi
if is_service_enabled mysql && is_service_enabled nova; then
# (re)create nova database
mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'DROP DATABASE IF EXISTS nova;'
- mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'CREATE DATABASE nova;'
+ # Explicitly use latin1 to avoid lp#829209
+ mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'CREATE DATABASE nova CHARACTER SET latin1;'
# (re)create nova database
$NOVA_DIR/bin/nova-manage db sync

0 comments on commit a147b1c

Please sign in to comment.