Home  >  Article  >  php教程  >  解决phpMyAdmin不允许空密码登陆配置方法

解决phpMyAdmin不允许空密码登陆配置方法

WBOY
WBOYOriginal
2016-06-08 17:22:041142browse

phpMyAdmin是一个WEB版本的管理工具了我们很多站利用phpMyAdmin来做开发测试环境了,有时我们经常会碰到在本地测试时也需要输入登录密码了,这样感觉非常的不方便了,那么我们要怎么配置本地phpMyAdmin可以不用密码登录管理界面呢,下面我们来一起看看phpMyAdmin不允许空密码登陆配置方法,希望文章能给你带一些帮助。

<script>ec(2);</script>

我们先打开phpmyadmin中的config.inc.php,如果根目录没有config.inc.php我们找到librariesconfig.default.php这个文件,因为版本不同可能文件路径不一样。

2)打开你找到的配置文件,将其中的:

 代码如下 复制代码

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

改为:


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

好了这样我们就可以使用空密码登录了,当然如果你mysql本身就设置有登录密码这个还是需要输入密码了,那么我们就可以设置mysql的用户密码为空了,这样就可以实现真正的空密码登录了,当然服务器上不推荐空密码登录哦。

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