win7 installation mysql5.7.26 Community Edition

Download mysql 5.7.26 Community Edition

Address: https://dev.mysql.com/downloads/mysql/5.7.html#downloads
select the version you want.

installation

1. Extract archive
2. Create my.ini file, as follows

[mysql]

# 设置mysql客户端默认字符集

default-character-set=utf8

[mysqld]

# 设置3306端口

port = 3306

# 设置mysql的安装目录

basedir=C:\mysql-8.0.12-winx64

# 设置mysql数据的存放目录

datadir=C:\mysql-8.0.12-winx64\data

# 允许最大连接数

max_connections=200

# 服务端使用的字符集默认为8比特编码的latin1字符集

character-set-server=utf8

# 创建新表时将使用的默认存储引擎

default-storage-engine=INNODB

3. Start cmd administrator console, cd to the installation directory \ bin folder into the bin

执行命令1:mysqld –initialize    根目录会生成Data文件夹
执行命令2:mysqld –install       安装MySQL服务
执行命令3:net start mysql        启动MySQL服务

Note: If you encounter the following circumstances
. MySQL service is starting
MySQL service failed to start.

The service did not report any errors.

Type NET HELPMSG 3534 to get more help.


Mysqld --initialize-insecure at the input a, cmd

b, then execute mysqld -install

c、net start mysql

4. Go to mysql

mysql -u root -p #登录系统 密码为空 直接回车

5. Change Password

set password for 用户名@localhost = password('新密码');

6. End

reference

1.https://blog.csdn.net/gravely/article/details/90488772

Guess you like

Origin blog.csdn.net/qq_33973154/article/details/91952825