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

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

WBOY
Release: 2016-06-07 14:53:13
Original
1426 people have browsed it

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

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

.mysql_secret
Copy after login

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

SET PASSWORD = PASSWORD('new password');
Copy after login

例:

wKiom1RRsfmAjpoDAAOWfQWCX8c056.jpg

wKiom1RRsfmgaw8NAAQLtKYtwlk051.jpg



Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template