Home >Database >Mysql Tutorial >Mysql的root密码由空改为123456_MySQL

Mysql的root密码由空改为123456_MySQL

WBOY
WBOYOriginal
2016-06-01 13:04:141285browse

使用mysqladmin

mysqladmin -u root -p password mypasswd
输入这个命令后,需要输入root的原密码(空的),然后root的密码将改为mypasswd。

[work@master bin]$ mysqladmin -u root password 123456

[work@master bin]$

以上命令执行完后,第二行为空,这说明你的密码已经更新成功了。

root密码为123456了。

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