# The TCP/IP Port the MySQL Server will listen on port=3306
#Path to installation directory. All paths are usually resolved relative to this. basedir="C:/Program Files/MySQL/MySQL Server 5.1/"
#Path to the database root datadir="C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/Data/"
# The default character set that will be used when a new schema or table is # created and no character set is defined default-character-set=utf8 这里把编码改成utf8
------解决方案-------------------- 楼主只需要做到“四个统一”:mysql数据库编码、数据表编码、中文字段编码及调用页面编码一致,再有乱码都难。强烈建议使用UTF8。
------解决方案--------------------