安裝OpenStack ValueError: Tables "migrate_version" have non utf8 collation, please make sure all tables are CHARSET=utf8 在Openstack中,安裝 Glance 鏡像組件時,初始化mysql
# glance-manage db_sync
……sql
ValueError: Tables "migrate_version" have non utf8 collation, please make sure all tables are CHARSET=utf8數據庫
初始化失敗bash
而後登錄MySQL數據庫查看此表,ide
mysql> use glance;
Database changed spa
mysql> show tables;
+------------------+
| Tables_in_glance |
+------------------+
| migrate_version |
+------------------+
1 row in set (0.00 sec)
it
而後根據報錯信息設置 migrate_version 表的字符集爲 utf8io
mysql> alter table migrate_version convert to character set 'utf8'; Query OK, 1 row affected (0.02 sec) Records: 1 Duplicates: 0 Warnings: 0
接着再繼續初始化table
# glance-manage db_sync
問題完美解決class