utf 8 - How do I convert the OpenShift MySQL 5.1 cartridge to UTF-8 -
the default mysql 5.1 cartridge apparently creates tables latin1 character set. have application (review board, python/django application) has issues unless db running utf-8. how change that? can't edit my.cnf because wiped @ next cartridge restart.
mysql> show variables 'character_set%'; +--------------------------+----------------------------+ | variable_name | value | +--------------------------+----------------------------+ | character_set_client | latin1 | | character_set_connection | latin1 | | character_set_database | latin1 | | character_set_filesystem | binary | | character_set_results | latin1 | | character_set_server | latin1 | | character_set_system | utf8 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+ 8 rows in set (0.00 sec)
i cannot change setting in my.cnf, because best of knowledge, there exists no openshift environment variable set character encoding. how persistently change (ideally in openshift hooks persist future deployments) , update existing tables utf-8?
i found solution not perfect 1 :
in openshift installing phpmyadmin, find , change server settings, relevant character variables changed latin1 utf8. hope helps
Comments
Post a Comment