Windows下mysql的配置文件是:my.ini
CLIENT SECTION:
The following options will be read by MySQL client applications. Note that only client applications shipped by MySQL are guaranteed to read this section. If you want your own MySQL client program to honor these values, you need to specify it as an option during the MySQL client library initialization.
[client]
port=3306 [mysql]
default-character-set=utf8
SERVER SECTION:
The following options will be read by the MySQL Server. Make sure that you have installed the server correctly (see above) so it reads this file.
[mysqld]
......