1. Download the installation file
Go to mysql.com/" target=_blank>MySQL official websiteFind the ZIP file
Tips: Some are installation files, there will be prompts during installation, we will not explain them here
2. Unzip the file and select the location
It is best to put it in the mysql folder of a certain drive, so that it is easier to find. Here we will extract the file to the mysql folder of the D drive.
3. Let Windows know where your MySQL is located
Create a my.ini file in the Windows home directory of the system disk with the following content:
[mysqld]<br>basedir=D:/mysql/<br>datadir=D:/mysql/data/
Then set the PATH environment variable. Add D:mysql in, so that you can use mysql directly the next time you enter command mode without first moving to the mysql/bin directory on the d drive.
4. Let the Windows service join MySQL
It means that MySQL can start automatically when windows starts
In command line (CMD) mode, first go to the mysql/bin directory on drive d, and then enter
mysqld-nt -install
If everything goes well, it will prompt:
Server successfully installed.
5. Restart the computer and the installation is complete
After restarting, go to "Control Panel" - "Services" and see if the MySQL service is available and whether it is displayed as "Start".
If you don’t want MySQL to start directly every time you start the computer, you can change the automatic option to manual.