mysql数据库有两个root用户,默认密码都为空,其对应主机分别为为localhost和%,linux下有所不同,建议两个都设置密码,而且密码相同,然后在phpmyadmin目录下找到config.inc.php或者config.inc.php3,修改其内容:
$cfg['PmaAbsoluteUri'] = 'http://你的IP地址/phpMyAdmin';
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '你的密码';
重新启动mysql,应该就OK啦!
$cfg['PmaAbsoluteUri'] = 'http://你的IP地址/phpMyAdmin';
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '你的密码';
重新启动mysql,应该就OK啦!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货