osx - character_set_database not updating on mysql -
so followed "tutorial" here:
http://outofcontrol.ca/blog/comments/change-mysql-5.5-default-character-set-to-utf8
and after doing so, mysql 5.7 servers on linux updated , showing expect.
but, did same on development machine, macbook pro, el capitan, , see following:
character_set_client utf8 character_set_connection utf8 **character_set_database latin1** character_set_filesystem binary character_set_results utf8 character_set_server utf8 character_set_system utf8 character_sets_dir /usr/local/mysql-5.6.10-osx10.7-x86_64/share/charsets/
why still latin1? other entries updated utf8 , worked on linux.
character_set_database
of virtually no use. don't worry it.
when creating table, explicitly state
create table (...) ... character set utf8;
that helps avoid various changes defaults may occur or in future.
actually, future utf8mb4
collation utf8mb4_unicode_520_ci
.
as long going 5.7, may go combo. utf8mb4 lets emoji , rest of chinese character set; 520 collation arguably "more correct".
the link gave bit weak -- not explain how convert data have.
existing tables not changed changing settings mentioned.
so, whole picture? have existing data? in utf8 or latin1? updating in place? or dumping , reloading? etc.
Comments
Post a Comment