1, the installation package download 5.7.27 Baidu network disk (Note: To install 5.7.27 NET faframework4.5.2 )
2, and the data file is created my.ini
5.7.27 decompressed after downloading, creating my.ini file and directory data, as shown below:
3, edit my.ini file
[mysql] # mysql client to set the default character set default -CHARACTER-the SET = utf8 # Password never expires default_password_lifetime = 0 [mysqld] # set port 3306 Port = 3306 # Set the mysql installation directory basedir = D: // Software / / // MySQL- mysql 5.7 . 27 - Winx64 # set data store directory mysql database DATADIR = D: mysql // // // Software MySQL- 5.7 . 27 -winx64 // data # maximum number of connections max_connections = 200 is # server default character set used for the 8-bit coded character set latin1 character -set-Server = UTF8 # open query cache explicit_defaults_for_timestamp = to true # skip the certification authority that you can not password #skip -grant- the Tables will be used when creating a new table # default storage engine default -storage-Engine = INNODB
4, configure the environment variables
Variable name: MYSQL_HOME
Variable value: D: \ software \ mysql \ mysql-5.7.27-winx64 (Note: Select mysql installation directory)
Path variable is added;% MYSQL_HOME% \ bin (note: the foregoing;)
5, install mysql
Run cmd, to run as administrator
1) installation services command:. Mysqld --install mysql
2) to start the service command:. Net start mysql (net stop mysql command to stop the service)
3) Connect mysql command: mysql -u root -p, after running this command prompts for a password password :( entered here above initialization saved passwords),
4) .set password for root @ localhost = password ( 'your password');
6, connectivity tools
Download navicat connection mysql, registration code: NAVH-WK6A-DMVK-DKW3 name and organization do not fill