Permalink
Browse files

Added attributes to control the default collation and character set

  • Loading branch information...
1 parent aa3432b commit fa16d539139d35258e4b934e6f5df9813c1e15d7 @jphalip committed Jul 15, 2012
Showing with 10 additions and 0 deletions.
  1. +3 −0 attributes/server.rb
  2. +7 −0 templates/default/my.cnf.erb
View
@@ -148,3 +148,6 @@
default['mysql']['tunable']['expire_logs_days'] = 10
default['mysql']['tunable']['max_binlog_size'] = "100M"
+
+default['mysql']['tunable']['default-character-set'] = "utf8"
+default['mysql']['tunable']['default-collation'] = "utf8_unicode_ci"
@@ -81,6 +81,13 @@ table_cache = <%= node['mysql']['tunable']['table_cache'] %>
max_heap_table_size = <%= node['mysql']['tunable']['max_heap_table_size'] %>
#
+# * Encoding and collation
+#
+
+default-character-set = <%= node['mysql']['tunable']['default-character-set'] %>
+default-collation = <%= node['mysql']['tunable']['default-collation'] %>
+
+#
# * Query Cache Configuration
#
query_cache_limit = <%= node['mysql']['tunable']['query_cache_limit'] %>

0 comments on commit fa16d53

Please sign in to comment.