1:解压zip 包
2:在解压后的文件中创建my.ini文件,文件中放入如下内容
# MySQL Server Instance Configuration File
#----------------------------------------------------------------------
# Generated by the MySQL Server Instance ConfigurationWizard
#
#
# Installation Instructions
#----------------------------------------------------------------------
#
#
# CLIENT SECTION
#----------------------------------------------------------------------
#
# The following options will be read by MySQL clientapplications.
# Note that only client applications shipped by MySQLare guaranteed
# to read this section. If you want your own MySQLclient program to
# honor these values, you need to specify it as anoption during the
# MySQL client library initialization.
#
[client]
port=3306
[mysql]
default-character-set=utf8
# SERVER SECTION
#----------------------------------------------------------------------
#
# The following options will be read by the MySQL Server.Make sure that
# you have installed the server correctly (see above)so it reads this
# file.
#
[mysqld]
# The TCP/IP Port the MySQL Server will listen on
port=3306
#Path to installation directory. All paths are usuallyresolved relative to this.
basedir="D:\Program Files (x86)\mysql-8.0.15-winx64"
#Path to the database root
datadir="D:\Program Files (x86)\mysql-8.0.15-winx64\data"
[WinMySQLadmin]
Server="D:\Program Files (x86)\mysql-8.0.15-winx64\bin\mysqld.exe"
# The default character set that will be used when anew schema or table is
# cre