After phpstudy upgrade mysql to change the root password mysql5.7.17

After finish the process in accordance with the previous article, then continue below

1. to D: \ phpStudy \ MySQL \ data directory to find the .err file (different versions of the names may be different, but only one .err file)

    I was z-PC.err

2. This is the initial password

 

 3. Open cmd input mysql -uroot -p and enter the initial password

 

 4. Note: then immediately change the password (the password can not be too simple, I set the password contains lowercase letters, numbers and special characters)

alter user 'root' @ 'localhost' indentified by 'your password';

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/loveufofbi/p/12010170.html