Home > Database > Mysql Tutorial > body text

修改mysql密码的方法(root密码)

WBOY
Release: 2016-06-07 17:51:56
Original
1026 people have browsed it

我们这里讲述的修改密码是说在你记得你的mysql用户密码的前提下进行修改,这种修改方法不但可以修改root密码还可以修改任何的mysql用户的密码。

方法一,大家最常用的myadmin修改方法,首先我们要登录phpmyadmin

我们可以看到修改密码

输入你自己的新密码

点击执行就修改密码成功了

方法二,sql语句来修改

use
update user set Password=password('newpassword') where User='root';
flush privileges;

MySQL 忘记口令的解决办法
如果 MySQL 正在运行,首先杀之: killall -TERM mysqld。
启动 MySQL :bin/safe_mysqld --skip-grant-tables &

更多详细内容请查看:

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