xampp 修改 mysql 密码

版权声明:本文为博主原创文章,未经博主允许不得(商用)转载。 https://blog.csdn.net/tang1jun/article/details/81903903

mysql用户的相关信息是保存在mysql数据库的user表

执行语句,修改密码

UPDATE user SET password=PASSWORD('root') WHERE user='root';

找到phpMyadmin的配置文件,即phpMyAdmin目录下的config.inc.php

如下代码

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

修改为

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

猜你喜欢

转载自blog.csdn.net/tang1jun/article/details/81903903
今日推荐