-
administratorRun cmd
cd to the mysql installation folderbinUnder contents
net stop mysql //停止数据库服务
-
Manually delete the mysql installation folder data folder
-
mysqld -remove MySQL //移除mysql服务
-
mysqld -install //安装mysql
Display Service successfully installed Configuration completed -
mysqld --initialize-insecure --user=mysql //不设置密码初始化
No information shows the folder appears after completion data table of Contents -
net start mysql //启动服务
-
mysql -u root -p //进入数据库
Press Enter without entering the password -
alter user user() identified by " ";
do not forgetsemicolon, Enter the set password in quotation marks -
quit //退出数据库
-
mysql -u root -p
Log in to the database again and enter the password you just set
mysql Forgot your password? You can set a new password in just ten steps!
Guess you like
Origin blog.csdn.net/weixin_46329969/article/details/109323200
Recommended
Ranking