1. Open the data file to the end of the file err , this is my file, the file name is not this, but the same suffix.
2. Use Notepad to open xxx.err file, find the localhost this is my initial password. The initial password is random, and you certainly will not be the same.
3. XXX \ bin> mysqld.exe -install Registration Service
After starting the service, in the bin directory Enter: mysql -u root -p Enter the default password before this time to copy and paste it into the carriage over the following interface, then entered the mysql interface.
4. Modify the default password, only the following command can be: mysql> ALTER USER 'root' @ 'localhost' IDENTIFIED BY 'XXXXXX'; XXXXXX part is your new password.
5. Then exit to exit and enter mysql: mysql -u root -p, Enter, just set the password, you can smoothly into the mysql welcome interface.