MySQL真的好难搞

山贼导了个.sql,我导入进去死活都是乱码,而且无法在phpmyadmin里改.太郁闷了.于是想到加一个SET NAMES UTF8依然如此.后来问山贼,说,程序里有一句set names gb2312的, 晕啊…搞了半天问题处在这里.mysql 4.0.x和4.1.x的编码问题搞死人了.

唉,读书少就是不好啊

3 Responses to MySQL真的好难搞

  1. xsw says:

    以前刚用mysql的时间经常为这样的事情懊恼,后来才明白是编码的问题。

  2. valq says:

    猪啊,我BLOG上不是有这个转换的教程么。

  3. Gnik says:

    最好设置数据库编码为gb2312,通过整理数据库操作,连接时候如有必要连接校对改成gb2312, :em03:

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>