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

Mysql的root密码由空改为123456_MySQL

WBOY
Release: 2016-06-01 13:04:14
Original
1289 people have browsed it

使用mysqladmin

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

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

[work@master bin]$

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

root密码为123456了。

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