MySQL5.7 after the installation, the first startup, the root directory will be produced a random password, the file name is
. Mysql_secret
Login with a random password to log in, and then change the password with the following command
SET PASSWORD = PASSWORD (' new PASSWORD ');
Cases:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4D/74/wKiom1RRsfmAjpoDAAOWfQWCX8c056.jpg "style=" float: none; "title=" security. jpg "alt=" wkiom1rrsfmajpodaaowfqwcx8c056.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4D/74/wKiom1RRsfmgaw8NAAQLtKYtwlk051.jpg "style=" float: none; "title=" Security 2.jpg "alt=" Wkiom1rrsfmgaw8naaqltkytwlk051.jpg "/>
This article is from the "Spring Yang Technical column" blog, please be sure to keep this source http://hcymysql.blog.51cto.com/5223301/1569589
MySQL5.7 Enhanced root User login security