Installation mysql5.7 zip unzip version

1, download the compressed package

  mysql5.7 Download: https: //dev.mysql.com/downloads/mysql/5.7.html#downloads

  

2, unzip the folder, set the environment variable

  Extract to the root folder (file path without spaces - forget what software this requirement)

  Extract to:  D: \ MySQL-5.7.27-Winx64  , adding environment variables  D: \ MySQL-5.7.27-Winx64 \ bin  .

  

  Verify Success:

 mysqld -install MySQL57

  result:

 

 

3, configure my.ini

   

[mysqld]
port = 3306
# MySQL installation directory
basedir=D:\mysql-5.7.27-winx64

# Database file storage address
datadir=D:\mysql-5.7.27-winx64\Data 

# Maximum number of connections
max_connections=200

character-set-server=utf8

# Default database engine
default-storage-engine=INNODB

[mysql]
default-character-set=utf8
# Mysql client default character set, 5.7 only, and 5.6 and earlier versions do not default-character-set property

 

  

  After my.ini mysqld initializes the database built by the console

  

mysqld --initialize-insecure --user=mysql

 

 

4, the installation process server

  In the console input:

  

mysqld -install MySQL57

 

 

5, set a password

  Start mysql57 Service

 net start MySQL57

 

   set password

  

-p password root-uroot-mysqladmin // password for the root 
the Enter password: // What do not enter, just press Enter

 

 

6, modify the service process to manually open (by default automatically open that boot)

 

7, test the connection

Guess you like

Origin www.cnblogs.com/fuluS/p/11462814.html