Home >Backend Development >PHP Tutorial >安装phpmyadmin报错怎么办

安装phpmyadmin报错怎么办

PHPz
PHPzOriginal
2016-06-06 20:08:071935browse

安装phpmyadmin报错怎么办

安装phpmyadmin报错怎么办?

问题1 :

2002 无法登录 MySQL 服务器

phpMyAdmin无法登录,输入用户名和密码后点击“执行”后一直报 “#2002 无法登录 MySQL 服务器”。

解决办法,将 “phpMyAdmin/libraries”文件夹下的config.default.php文件中的

$cfg['Servers'][$i]['host'] = 'localhost';

修改为

$cfg['Servers'][$i]['host'] = '127.0.0.1';

问题2:

#1045 无法登录 MySQL 服务

1. 修改/phpmyadmin/libraries/config.default.PHP 文件.

找到下面两行

$cfg['Servers'][$i]['nopassword'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;

修改为:

$cfg['Servers'][$i]['nopassword'] = true;
$cfg['Servers'][$i]['AllowNoPassword'] = true;

2. 如果此时仍然不能登陆,尝试清除一下cookie。或者随便输入几个字符。

3. 登陆成功后及时修改密码。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn