-
The first step is of course to download the installation package first! (Download address https://download.csdn.net/download/xiaohaigary/12985361)
-
Unzip the file mysql-8.0.15-winx64
-
Put the my.ini file in the unzipped directory
-
Modify the mysql path
-
Configure the bin path to the environment variable
D:\Program\mysql\mysql-8.0.15-winx64\bin -
Administrator permission cmd enter the bin directory to run, initialize mysql
a. mysqld --initialize --console and record the temporary password
b. mysqld install
c. net start mysql start
Deamon means the guardian deity, which means the daemon process. mysqld is the server side of mysql, which is a server-side program based on socket
- Connect
a. mysql -u root -p
b. Modify the password: alter user root@localhost identified by '970520';