MySQL 5.7.11 install zip archive version

Installation Environment:

Windows 7 64th

MySQL version 5.7.11 community version zip archive

http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.11-winx64.zip

Installation steps: (d:\mysql\bin)

1. Unzip mysql-5.7.11-winx64.zip. For example: d:\mysql

2. Modify the file my.ini

Copy the file my-default.ini to my.ini

Added content:

[mysql]

# Set the default character set of the mysql client

default-character-set=utf8 

[mysqld]

#Set 3306 port

port = 3306 

# Set the installation directory of mysql

basedir=D:\mysql\mysql-5.6.17-winx64

# Set the storage directory for the data of the mysql database

datadir=D:\mysql\mysql-5.6.17-winx64\data

# maximum number of connections allowed

max_connections=200

# The character set used by the server defaults to the 8-bit encoded latin1 character set

character-set-server=utf8

# The default storage engine that will be used when creating new tables

default-storage-engine=INNODB 

3. Because there is no data folder after decompression in 5.7.11, the database needs to be initialized to generate the data folder

mysqld --initialize-insecure --user=root

4. Install MySQL service

 

mysqld -install

5. The default root password is empty, now modify the root password

mysqladmin -u root password "newpass"

6.启动MYSQL服务,可以通过 控制面板->管理工具->服务->MYSQL

启动

7.数据库连接测试

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327077132&siteId=291194637