MySQL数据库修改字符集

通过MySQL命令行修改:

mysql> set character_set_server=utf8; //服务器级别
Query OK, 0 rows affected (0.00 sec)
mysql> set character_set_database=utf8;//数据库级别
Query OK, 0 rows affected (0.00 sec)
mysql> set character_set_connection=utf8; //数据库连接级别
Query OK, 0 rows affected (0.00 sec

继续阅读>>