Home >Database >Mysql Tutorial >MySQL5.7加强了root用户登录安全性

MySQL5.7加强了root用户登录安全性

WBOY
WBOYOriginal
2016-06-07 14:53:131425browse

MySQL5.7在安装完后,第一次启动时,会在root目录下生产一个随机的密码,文件名为 .mysql_secret 登录时需要用随机密码登录,然后通过以下命令修改密码 SETPASSWORD=PASSWORD('newpassword'); 例: 650) this.width=650;" src="http://www.68idc.cn/help/upl

MySQL5.7在安装完后,第一次启动时,会在root目录下生产一个随机的密码,文件名为

.mysql_secret

登录时需要用随机密码登录,然后通过以下命令修改密码

SET PASSWORD = PASSWORD('new password');

例:

wKiom1RRsfmAjpoDAAOWfQWCX8c056.jpg

wKiom1RRsfmgaw8NAAQLtKYtwlk051.jpg



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn