Below you will find pages that utilize the taxonomy term “编码”
December 28, 2009
修改mysql数据库编码
"修改my.ini文件\n加上\ndefault-character-set=gb2312\n设定数据库字符集\nalter database da_name default character set ‘charset’\n1)设置数据库编码 /etc/my.cnf [mysqld] default-character-set=gbk … [client] default-character-set=gbk --------------------------------------- 2)按字符集导出 $mysqldump -u root -p dbname –default-character-set=gbk \u0026gt; a.sql; 3)查看SQL文件的编码 [root@localhost gethtml]# file a.sql a.sql: UTF-8 Unicode … [root@localhost gethtml]# iconv -f utf-8 -t gbk a.sql \u0026gt; a2.sql [root@localhost gethtml]# file a2.sql …"