First step: Download
: http://dev.mysql.com/downloads/mysql/
Scroll to the bottom to see, according to their own needs to download;
My Computer for 64 is so downloaded for Windows (x86, 64-bit), ZIP Archive this version;
Download it and unzip it to the place you want to put it;
Step Two: Configure
1: Configure the Bin folder of the root directory to the path environment variable (Baidu is not known);
my: D:\Program files\mysql-5.7.16-winx64\bin configuration to environment variables just fine;
2: Modify or duplicate a copy of the my-default.ini file and rename it to My.ini;
In the corresponding location, modify add the following code:
[mysql] #设置mysql客户端默认字符集 default - Character-set =utf8;[ MYSQLD] #设置3306端口port =3306 ;# Set the installation directory for MySQL basedir =d:\program files\mysql-5.7 . 16 -winx64;# set the data storage directory for the MySQL database datadir =d : \program Files\mysql-5.7 . 16 -winx64\data;# allow maximum number of connections max_connections =200 ;# the character set used by the service side defaults to a 8-bit encoded latin1 character set character -set -server=utf8;# The default storage engine that will be used when creating a new table default -storage-engine=innodb;
3: At the command prompt, enter
mysqld --install MySQL --defaults-file="my.ini"
Install MySQL and set "My.ini" as the configuration file. Tip "Service successfully installed." Indicate success;
4: At the command prompt, enter
mysqld --initialize
First initialize the data directory, before the 5.7 version is not required this step, 5.7 start to initialize the data directory, after initialization you will find the root directory more than a data folder;
5: Enter the net start MySQL at the command prompt to start MySQL, prompting the service to start successfully;
Original Portal: please click:
MySQL free installation download and configuration tutorial