Home > Database > Mysql Tutorial > body text

MySQL的root密码由空改为123456

WBOY
Release: 2016-06-07 16:45:38
Original
1298 people have browsed it

要求:MySQL的root密码由空改为123456。 使用mysqladmin mysqladmin -u root -p password mypasswd 输入这个命令后,需要输入roo

要求:MySQL的root密码由空改为123456。

使用mysqladmin

mysqladmin -u root -p password mypasswd

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

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

[work@master bin]$

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

root密码为123456了。

MySQL 修改用户密码及重置root密码

MySQL修改密码和忘记ROOT密码

CentOS 6.4下安装MySQL后重置root密码方法

本文永久更新链接地址:

linux

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!