1.首先去下载unzip安装包(Without installer)http://dev.mysql.com/downloads/mysql/5.0.html#win32。
2.然后解到你的需要放置目录。当然接着是配置my.ini。
具体可以看看:http://www.sitebuddy.com/mysql/install_wizard_mysql_41
但记得写正确配置文件里路径参数。
3.安装成系统服务,如:(安装目录:C:\Program Files\MySQL\MySQL Server 5.0)
"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt"
--install MySQL5
--defaults-file="C:\Program Files\MySQL\MySQL Server 5.0\my.ini"
完成后,就医使用net start MySQL 开启服务了
附上我的开发时使用的配置:
[ini]
[client]
port=3306
[mysql]
default-character-set=latin1
# 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]
port=3306
basedir=”x:/server/MySQL5/”
datadir=”x:/server/MySQL5/Data/”
default-character-set=latin1
default-storage-engine=INNODB
sql-mode=”STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”
max_connections=100
query_cache_size=0
table_cache=256
tmp_table_size=17M
thread_cache_size=8
myisam_max_sort_file_size=100G
myisam_max_extra_sort_file_size=100G
myisam_sort_buffer_size=34M
key_buffer_size=25M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=256K
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=1M
innodb_buffer_pool_size=47M
innodb_log_file_size=24M
innodb_thread_concurrency=8
[/ini]