首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

PHP的ServerWamp中的phpmyadmin解决登陆SQL有关问题

2012-12-26 
PHP的ServerWamp中的phpmyadmin解决登陆SQL问题PHP的ServerWamp中的phpmyadmin解决登陆SQL问题对于以上问

PHP的ServerWamp中的phpmyadmin解决登陆SQL问题

PHP的ServerWamp中的phpmyadmin解决登陆SQL问题

对于以上问题,可能的解决方案有如下:

1.如果你是新安装的Wamp,那么可能你没有设定好phpmyadmin的设置问题

下面方法给予解决:

1.1首先到phpmyadmin的文件夹目录中,找到文件config.inc.php文件

1.2然后打开文件夹看到如下代码:更改user和password的值即可

<?php/* Servers configuration */$i = 0;/* Server: localhost [1] */$i++;$cfg['Servers'][$i]['verbose'] = 'localhost';$cfg['Servers'][$i]['host'] = 'localhost';$cfg['Servers'][$i]['port'] = '3306';$cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';$cfg['Servers'][$i]['connect_type'] = 'tcp';$cfg['Servers'][$i]['extension'] = 'mysqli';$cfg['Servers'][$i]['auth_type'] = 'config';$cfg['Servers'][$i]['user'] = ' ';$cfg['Servers'][$i]['password'] = ' ';$cfg['Servers'][$i]['AllowNoPassword'] = true;/* End of servers configuration */$cfg['DefaultLang'] = 'en-utf-8';$cfg['ServerDefault'] = 1;$cfg['UploadDir'] = '';$cfg['SaveDir'] = '';?>
?

1.3最后测试是否能登陆

2.如果你新建了一个用户,但用这个用户登陆可能登不上去

可能的解决方案如下:

2.1首先还是找到如上的文件

2.2将user和password改成新的用户名和密码,然后再将权限

auth_type

改成http

2.3 测试登陆情况

其实也就是修改这个文件然后做一些变化而已,配置好这个,也就没什么问题了

如果还有其他问题

首先检查服务是否开着

然后检查database的服务是否开着

最后就是配置这个文件了

祝你愉快

?

?

热点排行
Bad Request.