1、Reasons of production:
Didn't initialize the login password of mysql. (But I think so), so, you can tell me the real reason if you know about it.
2、Solving process:
-Open file my.ini located in mysql installation path.
-Insert a statement in order to pass password authentication:
skip_grant_tables
-Close and start mysql service with administrator status by CMD:
net stop mysql
net start mysql
-Connect mysql and don not need to enter password:
mysql -uroot -p
-Modify root user password:
-Delete the statement added before: skip_grant_tables.
3、 The above is all the, welcome leave a message for me if you have any question.