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;
本文介绍如何在MySQL中更新用户密码,并详细展示了如何配置phpMyAdmin以使用特定的用户名和密码进行身份验证。这包括直接修改数据库中的密码以及调整phpMyAdmin配置文件的具体步骤。
2169

被折叠的 条评论
为什么被折叠?



