mysql 中文配置(轉)

Dos下鏈接mysql後,運行一下幾項就能夠插入中文了:
SET character_set_client = gbk; 
SET character_set_connection = gbk; 
SET character_set_database = gbk; 
SET character_set_results = gbk; 
SET character_set_server = gbk;

SET collation_connection = gbk_bin; 
SET collation_database = gbk_bin; 
SET collation_server = gbk_bin;
相關文章
相關標籤/搜索