Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/251.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用XAMPP锁定PHPMyAdmin_Php_Mysql_Phpmyadmin_Xampp - Fatal编程技术网

使用XAMPP锁定PHPMyAdmin

使用XAMPP锁定PHPMyAdmin,php,mysql,phpmyadmin,xampp,Php,Mysql,Phpmyadmin,Xampp,我在OSX上使用CakePHP和Xampp,最近第一次安装了wordpress。我更改了一些密码,我没有意识到这会影响PHPMyAdmin。在尝试转到localhost/phpmyadmin时,系统会提示我登录屏幕。我记下了我更改的密码和用户名,但仍然不允许我进入。我得到以下错误 Authentication required! This server could not verify that you are authorized to access the URL "/phpmyadmin

我在OSX上使用CakePHP和Xampp,最近第一次安装了wordpress。我更改了一些密码,我没有意识到这会影响PHPMyAdmin。在尝试转到localhost/phpmyadmin时,系统会提示我登录屏幕。我记下了我更改的密码和用户名,但仍然不允许我进入。我得到以下错误

Authentication required!

This server could not verify that you are authorized to access the URL "/phpmyadmin". You either supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
我试过了,但没用

这是我的config.inc.php文件的内容

$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */

/*
 * Servers configuration
 */
$i = 0;

/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
//$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

/*
 * phpMyAdmin configuration storage settings.
 */

/* User used to manipulate with storage */
// $cfg['Servers'][$i]['controlhost'] = '';
#$cfg['Servers'][$i]['controluser'] = 'pma';
# commented out by xampp security
#$cfg['Servers'][$i]['controlpass'] = '';
#$cfg['Servers'][$i]['controlpass'] = '';

/* Storage database and tables */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['relation'] = 'pma__relation';
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['history'] = 'pma__history';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
/* Contrib / Swekey authentication */
// $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';

我甚至尝试重新安装XAMPP。我已清除了每次更改之间的浏览器历史记录。

在config.inc.php中,替换

    $cfg['Servers'][$i]['auth_type'] = 'config';


然后您将看到“正常”phpMyAdmin登录屏幕(带有帆船徽标)。

在config.inc.php中,替换

    $cfg['Servers'][$i]['auth_type'] = 'config';


然后,您将获得“正常”phpMyAdmin登录屏幕(带有帆船徽标)。

在您的
config.inc.php
文件中,请注意以下内容(我的第21行):


如果您在此处输入密码并通过管理面板重新启动MySQL,您应该能够进入,它对我来说仍然有效。

在您的
config.inc.php
文件中,请注意以下内容(我的第21行):


如果您在此处输入密码并通过管理面板重新启动MySQL,您应该能够进入,它对我来说仍然有效。

您是否尝试了没有密码的用户名
root
?我几乎尝试了所有“默认”用户名和密码组合。root:null、root:password、admin:password、daemon:password、nobody:xampp等…一个简单的方法是使用“sudo xampp security”命令重置密码,您是否尝试了用户名
root
而没有密码?我几乎尝试了所有“默认”用户名和密码组合。root:null、root:password、admin:password、daemon:password、nobody:xampp等…一个简单的方法是使用“sudo xampp security”命令重置密码,
$cfg['Servers'][$i]['password'] = '';