Home  >  Article  >  Database  >  使用phpMyAdmin修改MySQL数据库root用户密码的方法

使用phpMyAdmin修改MySQL数据库root用户密码的方法

WBOY
WBOYOriginal
2016-06-07 16:19:551049browse

这篇文章主要介绍了使用phpMyAdmin修改MySQL数据库root用户密码的方法,需要的朋友可以参考下 点击顶部的SQL标签进入sql命令输入界面。输入以下命令: 代码如下:update mysql.user set password=PASSWORD('jb51$123456') where user='root'; 然后点击右下角的

   这篇文章主要介绍了使用phpMyAdmin修改MySQL数据库root用户密码的方法,需要的朋友可以参考下

  点击顶部的“SQL”标签进入sql命令输入界面。输入以下命令:

  代码如下:update mysql.user set password=PASSWORD('jb51$123456') where user='root';

  然后点击右下角的“执行”,没有报错就表示修改成功。

  另外需要注意的是,如果你修改了root密码之后我们的phpMyAdmin的配置文件中的密码也需要修改,否则登录不上去哦。

  找到

  代码如下:$cfg['Servers'][$i]['password'] = '';

  修改为

  代码如下:$cfg['Servers'][$i]['password'] = 'jb51$123456';

  然后点击右下角的“执行”,,看到如下界面,就表示修改成功。(注意:有的mysql这里影响的列数并不是2)

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