日期:2014-05-16  浏览次数:20712 次

安装绿色版mysql-5.6.14
1)下载www.mysql.com mysql安装程序,mysql-5.6.14-winx64.zip
2)解压至你的本地硬盘文件夹内,如:D:\D\Database\mysql-5.6.14-winx64
3)根目录下新建my.ini
内容如下:
# Save as "my.ini" in your MySQL installed directory
[mysqld]
# Set MySQL base (installed) directory
# @@ Change to your MySQL installed directory @@
basedir=D:/D/Database/mysql-5.6.14-winx64

# Set MySQL data directory
# @@ Change to sub-directory "data" of your MySQL installed directory  @@
datadir=D:/D/Database/mysql-5.6.14-winx64/data

# Run the server on this TCP port number
port=2222
   
[client]
# MySQL client connects to the server running on this TCP port number
port=2222

4)设置系统环境变量:
   MYSQL_HOME D:\D\Database\mysql-5.6.14-winx64
   PATH               ;%MYSQL_HOME%\bin

5)运行mysql服务
    cmd-> mysqld --console

?