搭建lamp时的phpmyadmin报#1045Access denied for user 'root'@'localhost'

昨天在一台redhat上安装了mysql,和phpmyadmin,开始是好的,后来改了mysql的密码后,登录myadmin时提示 " #1045 - Access denied for user ’root’@’localhost’ (using password: NO)" 的错误,在网上找了好多办法,都不行,最后发现是自己修改的配置文件一直是 config.sample.inc.php,后来执行一个 cp config.sample.inc.php config.inc.php复制一份为config.inc.php, 然后修改config.inc.php就可以用myadmin登录了

你可能感兴趣的:(PHP,mysql,redhat,Access)