configuration group 可能修改 mysql 默认的配置,如,修改mysql字符集。在使用configuration group 前,需要将 configuration group 验证规则加载到trove 数据库
1、加载验证规则
trove-manage db_load_datastore_config_parameters mysql mysql-5.6 ven_trove/lib/python2.7/site-packages/trove/templates/mysql/validation-rules.json
2、创建configuration group
trove configuration-create default-character-set ‘{"character_set_server":"utf8"}‘ --datastore b10f2f73-77cd-484c-9105-a33bc56e0fa4 --datastore_version 4ee1da20-df29-4e88-b3eb-795b2f4c12f2
3、已知的问题:
配置组的character_set_database参数应用到mysql5.6会引起mysql5.6不能正常启动,报如下错
/usr/sbin/mysqld: unknown variable ‘character_set_database=utf8‘
可以屏蔽参数“character_set_database”
参考链接:
http://docs.openstack.org/cli-reference/trove-manage.html
http://docs.openstack.org/user-guide/manage-db-config.html
时间: 2024-11-01 22:07:37