1.下载地址http://pan.baidu.com/s/1kV18bnp
2.解压到D盘目录下
2.配置环境变量MYSQL_HOME=D:\mysql-5.5.29-winx64
在path后面加上%MYSQL_HOME%\bin
3.重命名my-small.ini 为my.ini并修改文件内容为
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
[mysql]
#设置mysql客户端的字符集
default-character-set = utf8
# The MySQL server
[mysqld]
port = 3306
#设置mysql的安装目录
basedir = D:\mysql-5.5.29-winx64
#设置mysql数据库的数据存放目录,必须是data或者\xxx-data
datadir = D:\mysql-5.5.29-winx64\data
#设置服务器段的字符集
character_set_server = utf8
4.注册服务
cmd命令进入Mysql安装目录的bin文件夹下D:\mysql-5.5.29-winx64\bin,执行命令
- mysqld --install mysql5
- net start mysql5