一、以空密码状态登陆phpMyAdmin并修改root用户密码
二、编辑phpMyAdmin目录下的文件config.inc.php
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config'; 将改为“cookie”或“http”;$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* Server parameters */
//$cfg['Servers'][$i]['host'] = 'localhost';
//$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;
本文介绍如何通过编辑phpMyAdmin的config.inc.php文件实现以空密码登录,并修改root用户的密码。主要内容包括更改认证类型、配置服务器参数等。
2162

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



