Windows 10 mysql 5.7.21 winx64 installation and configuration methods graphic tutorial, 5.7.21winx64
Mysql 5.7.21 winx64 installation and configuration method:
Download Community version mysql (register an oracle account before downloading)
Extract
Configure Environment Variables
Add: C: \ mysql-5.7.21-winx64 \ bin on the system variable path (to the bin path of mysql)
Initialization
Open cmd as an administrator and enter the command (the data directory is created in the installation directory during initialization; otherwise, the path does not exist ):
Mysqld -- initialize -- user = mysql -- console
A temporary root password is generated during initialization. Remember to log on later.
Install
Run the following command at the command prompt: mysqld-install
Start the service
Net start mysql
Login
Mysql-uroot-p
Change root Password
Alter user 'root' @ 'localhost' identified by '123 ';
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.