日期:2014-05-16  浏览次数:20792 次

wamp 2.2 的phpmyadmin 想改成输入密码登陆方式。
我安装 wamp 2.2 以后,
登陆phpmyadmin 3.5.1 时,
不输入密码,直接登陆,
我想改成输入密码登陆phpmyadmin.
所以,改了MYSQL的ROOT密码,
PHP code

<?php

/* Servers configuration */
$i = 0;

/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'abc123';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

/* End of servers configuration */

$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';


/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';


?>



D:\wamp\apps\phpmyadmin3.5.1\config.inc.php
 这个文件改成上面内容以后,
还是不输入密码直接登陆phpmyadmin.
请问大家,这个怎么解决?
谢谢。




------解决方案--------------------
把 config 改成 cookie 就可以手动登录了~