One. Download MySQL unpacking package
There is no Data folder in the Unpacked folder.
Two. Create the file 1.Create a my.ini file under the root directory
The contents are as follows:
[Mysqld]
# Set up the MySQL installation directory
Basedir=d:\mysql-5.7.11-winx64\mysql-5.7.11-winx64
# Set the data storage directory for MySQL database, must be
Datadir=d:\mysql-5.7.11-winx64\mysql-5.7.11-winx64\data
# MySQL Port
port=3306
# Character Set
Character_set_server=utf8
Sql_mode=no_engine_substitution,strict_trans_tables
2.Execute Command
Create a new folder under the root directory name: Data
Execute the following code under DOS command (Run as Administrator)
Mysqld--initialize-insecure (not set root password, recommended)
3.Execute Command
Mysqld-install (install MySQL service)
4.Execute Command
net start MySQL (start MySQL service)services.msc
5.Login
Mysql-uroot-p no password by default
-U followed by login name
-P followed by login password
6.Set Password after login
Execute Command
Set Password=password (' root ');
Set Admin account and password same
Installation tutorial for MySQL unpacking package