mysql5.7.9 installation-free version initialization

Mysql 5.7.9 Free Installation Initialization

1. Unzip the mysql compressed package, for example, mysql-5.7.9-winx64.zip to D:\database\mysql5.7.9.

 

2. Add the D:\database\mysql5.7.9\bin directory to the environment variable path of the Windows system.

 

 

3. Start the command line as a system administrator and execute the initialization mysql database command mysqld --initialize --user=mysql --console

After the execution is complete, the password of the root user will be automatically generated. Such as root@localhost: FQ_hfp9oPsAt.

 

4. Execute the command mysqld --install to register the mysql service with the window service.

 

5. Execute the net start mysql command to start the mysql database.



  

6. To modify the root user password, first execute the command mysql -u root -p to log in to MySQL, and then execute the password modification command, format: mysql> set password for username@localhost = password('new password'); 

例如:mysql> set password for root@localhost=password('123');



 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326605489&siteId=291194637