Saturday, November 5, 2011

freebsd mysql5.1 与mysql5.5的参数变更

MySQL 5.1

[mysql]
default-character-set=utf8
[mysqld]
default-character-set=utf8

MySQL 5.5

[mysql]
default-character-set=utf8
[mysqld]
character-set-server=utf8

察看支持的编码 使用 
mysql> SHOW VARIABLES LIKE  'char%';
+--------------------------+----------------------------------+
| Variable_name            | Value                            |
+--------------------------+----------------------------------+
| character_set_client     | utf8                             |
| character_set_connection | utf8                             |
| character_set_database   | latin1                           |
| character_set_filesystem | binary                           |
| character_set_results    | utf8                             |
| character_set_server     | latin1                           |
| character_set_system     | utf8                             |
| character_sets_dir       | /usr/local/share/mysql/charsets/ |
+--------------------------+----------------------------------+
8 rows in set (0.00 sec)


参考 mysql5.1与mysql5.5的参数变更

No comments: