How to modify the mysql-8.0.14 version of the password

After successful installation, there is such a line in the .err file in the data directory:

A temporary password is generated for root@localhost:xxxxxx

'' Xxxxxx '' is the initial password later.

Run as administrator cmd in the bin directory

Has entered net start mysql

mysql -u root -p

alter user user() identified by "新密码";

In the new password, where you can enter your password. Then you can modify successfully.

 

 

Published 105 original articles · won praise 53 · views 60000 +

Guess you like

Origin blog.csdn.net/zhao2018/article/details/86596838