测试的机器是ubuntu 12.04个别linux发行版可能略有不同. 登陆mysql查看当前字符集命令: mysql> show variable like '%char%'; +--------------------------+----------------------------+| Variable_name | Value |+--------------------------+----------------------------+| character_set_clien