处理请求时出错错误代码:200 错误文本:OK(拒绝)- WAMP 服务器

Posted

技术标签:

【中文标题】处理请求时出错错误代码:200 错误文本:OK(拒绝)- WAMP 服务器【英文标题】:Error in processing request Error code: 200 Error text: OK (rejected) - WAMP server 【发布时间】:2021-02-08 15:50:05 【问题描述】:

我最近尝试登录我的 WAMP 服务器(本地主机)中的 phpMyAdmin 面板,但出现以下错误

Error in processing request
Error code: 200
Error text: OK (rejected)
It seems that the connection to the server has been lost. Please check your network connectivity and server status.

我正在使用: PHP: 7.1.33 PhpMyAdmin:5.0.2 MariaDB:10.3.23

这是我的 config.inc.php:

<?php

/* Servers configuration */
$i = 0;
/* The 'cookie' auth_type uses AES algorithm to encrypt the password. If
 * at least one server configuration uses 'cookie' auth_type, enter here a
 * pass phrase that will be used by AES. The minimum length is 32 characters
 * The maximum length seems to be 46 characters. */
$cfg['blowfish_secret'] = 'h]C+nqW$omNoTIkCwC$%z-LTcy%p6_j';

//Checking Active DBMS Servers
$wampConf = @parse_ini_file('../../wampmanager.conf');
//Check if mysql and MariaDB with MariaDB on default port
$mariaFirst = ($wampConf['SupportMySQL'] == 'on' && $wampConf['SupportMariaDB'] == 'on' && $wampConf['mariaPortUsed'] == $wampConf['mysqlDefaultPort']) ? true : false;
if($wampConf['SupportMySQL'] == 'on') 
/* Server: localhost [1] */
    $i++;
    if($mariaFirst) $i++;
    $cfg['Servers'][$i]['verbose'] = 'MySQL';
    $cfg['Servers'][$i]['host'] = '127.0.0.1';
    $cfg['Servers'][$i]['port'] = $wampConf['mysqlPortUsed'];
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    $cfg['Servers'][$i]['user'] = '';
    $cfg['Servers'][$i]['password'] = '';

    // Hidden databases in PhpMyAdmin left panel
    //$cfg['Servers'][$i]['hide_db'] = '(information_schema|mysql|performance_schema|sys)';

    // Allow connection without password
    $cfg['Servers'][$i]['AllowNoPassword'] = true;

/* Server: localhost [2] */
if($wampConf['SupportMariaDB'] =='on') 
    $i++;
    if($mariaFirst) $i -= 2;
    $cfg['Servers'][$i]['verbose'] = 'MariaDB';
    $cfg['Servers'][$i]['host'] = '127.0.0.1';
    $cfg['Servers'][$i]['port'] = $wampConf['mariaPortUsed'];
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    $cfg['Servers'][$i]['user'] = '';
    $cfg['Servers'][$i]['password'] = '';

    // Hidden databases in PhpMyAdmin left panel
    //$cfg['Servers'][$i]['hide_db'] = '(information_schema|mysql|performance_schema|sys)';
    // Allow connection without password
    $cfg['Servers'][$i]['AllowNoPassword'] = true;


// Suppress Warning about pmadb tables
$cfg['PmaNoRelation_DisableWarning'] = true;

// To have PRIMARY & INDEX in table structure export
$cfg['Export']['sql_drop_table'] = true;
$cfg['Export']['sql_if_not_exists'] = true;

$cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman/5.7/en/';
/* End of servers configuration */

?>

我尝试清除所有 cookie 并刷新网页,以及“允许修复所有 cookie”。我也在其他浏览器中尝试过,但错误仍然存​​在。我也尝试重新安装所有服务,但仍然出现相同的错误。 谁能看到这里出了什么问题?

【问题讨论】:

您能告诉我们您使用的是哪个 MariaDB、PHP 和 phpMyAdmin 版本吗? PHP:7.1.33 PhpMyAdmin:5.0.2 MariaDB:10.3.23 这真的很奇怪,因为错误消息表明 MariaDB 版本非常旧(我很难准确找到引入 lc_messages 的时间,但它可能在 5.1 或 5.5 版本左右)。但是您的 MariaDB 10.3 应该支持它,而且我不知道为什么它不能正常工作。您是否有可能在服务器上运行的另一个 MySQL 或 MariaDB 服务器实例不是您所期望的?也许您可以查看您的操作系统进程列表以查看正在运行的实例的完整路径。 【参考方案1】:

好的,今天我终于修复了它,我猜是由于防病毒更新(我不确定)。我安装了 Bitdefender,安装后 WAMP 确实可以工作,但几天后这个错误开始出现。为了解决这个问题,我卸载了 WAMP 并禁用了我的防病毒软件并再次安装了 WAMP 服务器。现在它完美地工作了!希望对你有帮助:)

【讨论】:

以上是关于处理请求时出错错误代码:200 错误文本:OK(拒绝)- WAMP 服务器的主要内容,如果未能解决你的问题,请参考以下文章

熟悉了下HTTP协议

PHPMYADMIN ,,Error in Processing Request 错误代码:200 错误文本:OK

http请求 常见状态码

HTTP-相应状态

加载表结构时 Phpmyadmin 错误 200

不同类型的状态码及含义