1、下载最新版的MySQL mysql-5.1.41-win32.zip
2、解压到一个目录下,最好目录名称不要有空格。例如,D:/mysql/mysql-5.1.41-win32
3、在D:/mysql/mysql-5.1.41-win32下新建一个名为“my.ini"的配置文件(就是新建一个txt,再改一下扩展名罢了)。
4、在my.ini中写入以下内容:
# Example MySQL config file for small systems.
#
# This is for a system with little memory (<= 64M) where MySQL is only used
# from time to time and it's important that the mysqld daemon
# doesn't use much resources.
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is C:/mysql/data) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "