当前位置:网站首页>How to restore MySQL database after win10 system is reinstalled (mysql-8.0.26-winx64. Zip)

How to restore MySQL database after win10 system is reinstalled (mysql-8.0.26-winx64. Zip)

2022-04-23 18:14:00 The hunter is eating meat

Before system reinstallation ,mysql It's through mysql-8.0.26-winx64.zip Installation of green version , stay win10 After the system is reinstalled , How to restore it , Take a look at the following steps .

(1) Configure it in the environment variable Mysql

MYSQL_HOME=D:\dev_tools\mySQL\mysql-8.0.26-winx64

 Insert picture description here

stay Path Add :

%MYSQL_HOME%\bin

 Insert picture description here

(2) With Administrators Mode start cmd, Run the command mysqld –install

(3) start-up Mysql service , adopt net start mysql

 Insert picture description here

(4) Sign in mysql , mysql -u root -p , After returning , Input again Original password , Access to database .
 Insert picture description here

版权声明
本文为[The hunter is eating meat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210611118146.html