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

安装phpmyadmin报错怎么办

PHPz
Release: 2020-09-05 11:09:43
Original
1934 people have browsed it

安装phpmyadmin报错怎么办

安装phpmyadmin报错怎么办?

问题1 :

2002 无法登录 MySQL 服务器

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

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

$cfg['Servers'][$i]['host'] = 'localhost';
Copy after login

修改为

$cfg['Servers'][$i]['host'] = '127.0.0.1';
Copy after login

问题2:

#1045 无法登录 MySQL 服务

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

找到下面两行

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

修改为:

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

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

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template