当我使用我的phpmyadmin它总是告诉我错误但我不知道它有什么问题

问题描述 投票:0回答:1

当我测试我的数据库时,它可以成功读写,但我的phpmyadmin告诉我一些错误的意思。但是当我在我的xcode上使用它通过Alamofire发布我的网址时,数据是错误的。像这些:

可选({URL:http://XXXXXXX/register.php/?ema=123&pas=123} {状态代码:200,标题{连接=(“升级,关闭”);“内容编码”=(gzip);“内容长度”=(194);“内容类型” =(“text / html”); Date =(“Wed,06 Mar 2019 09:26:15 GMT”);“Proxy-Connection”=(“keep-alive”); Server =(Apache); Upgrade =( h2); Vary =(“Accept-Encoding”);“X-Powered-By”=(“PHP / 5.4.45”);}})可选(344字节)FAILURE

当我查看我的phpmyadmin时,它告诉我有错误:

{
    "pma_version": "4.4.15.10",
    "browser_name": "CHROME",
    "browser_version": "69.0.3497.100",
    "user_os": "Win",
    "server_software": "Apache",
    "user_agent_string": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
    "locale": "zh_CN",
    "configuration_storage": "disabled",
    "php_version": "5.4.45",
    "exception_type": "js",
    "exception": {
        "mode": "stack",
        "name": "TypeError",
        "message": "Cannot read property '0' of null",
        "stack": [
            {
                "line": 235,
                "func": "",
                "context": [
                    "                lastException = null;",
                    "                notifyHandlers.apply(null, [stack, null].concat(args));",
                    "            }",
                    "        }, (stack.incomplete ? 2000 : 0));",
                    "",
                    "        throw ex; // re-throw to propagate to the top level (and cause wind//...",
                    "    }",
                    "",
                    "    report.subscribe = subscribe;",
                    "    report.unsubscribe = unsubscribe;",
                    "    return report;"
                ],
                "column": "",
                "filename": "tracekit/tracekit.js"
            },
            {
                "func": "getFieldValidators",
                "line": 302,
                "column": "40",
                "context": [
                    " * @return array of [function, parameters to be passed to function]",
                    " */",
                    "function getFieldValidators(field_id, onKeyUpOnly)",
                    "{",
                    "    // look for field bound validator",
                    "    var name = field_id.match(/[^-]+$/)[0];",
                    "    if (typeof validators._field[name] != 'undefined') {",
                    "        return [[validators._field[name], null]];",
                    "    }",
                    "",
                    "    // look for registered validators"
                ],
                "filename": "config.js"
            },
            {
                "func": "validate_field",
                "line": 418,
                "column": "21",
                "context": [
                    "{",
                    "    var args, result;",
                    "    var $field = $(field);",
                    "    var field_id = $field.attr('id');",
                    "    errors[field_id] = [];",
                    "    var functions = getFieldValidators(field_id, isKeyUp);",
                    "    for (var i = 0; i < functions.length; i++) {",
                    "        if (typeof functions[i][1] !== 'undefined' && functions[i][1] !== n//...",
                    "            args = functions[i][1].slice(0);",
                    "        } else {",
                    "            args = [];"
                ],
                "filename": "config.js"
            },
            {
                "func": "HTMLDocument.<anonymous>",
                "line": 511,
                "column": "13",
                "context": [
                    "    var $check_page_refresh = $('#check_page_refresh');",
                    "    if ($check_page_refresh.length === 0 || $check_page_refresh.val() == '1') {",
                    "        // run all field validators",
                    "        var errors = {};",
                    "        for (var i = 0; i < $elements.length; i++) {",
                    "            validate_field($elements[i], false, errors);",
                    "        }",
                    "        // run all fieldset validators",
                    "        $('fieldset').each(function () {",
                    "            validate_fieldset(this, false, errors);",
                    "        });"
                ],
                "filename": "config.js"
            },
            {
                "func": "HTMLDocument.new_func",
                "line": 279,
                "column": "33",
                "context": [
                    "     */",
                    "    wrap_function: function (func) {",
                    "        if (!func.wrapped) {",
                    "            var new_func = function () {",
                    "                try {",
                    "                    return func.apply(this, arguments);",
                    "                } catch (x) {",
                    "                    TraceKit.report(x);",
                    "                }",
                    "            };",
                    "            new_func.wrapped = true;"
                ],
                "filename": "error_report.js"
            },
            {
                "func": "HTMLDocument.dispatch",
                "line": 3,
                "column": "8436",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "HTMLDocument.$event.dispatch",
                "line": 374,
                "column": "19",
                "context": [
                    "$event.dispatch = function( event ){",
                    "\tif ( $.data( this, \"suppress.\"+ event.type ) - new Date().getTime() > 0 ){",
                    "\t\t$.removeData( this, \"suppress.\"+ event.type );",
                    "\t\treturn;",
                    "\t}",
                    "\treturn $dispatch.apply( this, arguments );",
                    "};",
                    "",
                    "// event fix hooks for touch events...",
                    "var touchHooks = ",
                    "$event.fixHooks.touchstart = "
                ],
                "filename": "jquery/jquery.event.drag-2.2.js"
            },
            {
                "func": "HTMLDocument.r.handle",
                "line": 3,
                "column": "5139",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "Object.trigger",
                "line": 3,
                "column": "7537",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "HTMLDocument.<anonymous>",
                "line": 3,
                "column": "15404",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "Function.each",
                "line": 2,
                "column": "2973",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            }
        ],
        "useragent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
        "incomplete": "false",
        "partial": "true",
        "uri": "sql.php?target="
    },
    "script_name": "sql.php",
    "microhistory": {
        "current_index": "0"
    }
}
and the phpmyadmin's error:

{
    "pma_version": "4.4.15.10",
    "browser_name": "CHROME",
    "browser_version": "69.0.3497.100",
    "user_os": "Win",
    "server_software": "Apache",
    "user_agent_string": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
    "locale": "zh_CN",
    "configuration_storage": "disabled",
    "php_version": "5.4.45",
    "exception_type": "js",
    "exception": {
        "mode": "stack",
        "name": "TypeError",
        "message": "Cannot read property '0' of null",
        "stack": [
            {
                "line": 235,
                "func": "",
                "context": [
                    "                lastException = null;",
                    "                notifyHandlers.apply(null, [stack, null].concat(args));",
                    "            }",
                    "        }, (stack.incomplete ? 2000 : 0));",
                    "",
                    "        throw ex; // re-throw to propagate to the top level (and cause wind//...",
                    "    }",
                    "",
                    "    report.subscribe = subscribe;",
                    "    report.unsubscribe = unsubscribe;",
                    "    return report;"
                ],
                "column": "",
                "filename": "tracekit/tracekit.js"
            },
            {
                "func": "getFieldValidators",
                "line": 302,
                "column": "40",
                "context": [
                    " * @return array of [function, parameters to be passed to function]",
                    " */",
                    "function getFieldValidators(field_id, onKeyUpOnly)",
                    "{",
                    "    // look for field bound validator",
                    "    var name = field_id.match(/[^-]+$/)[0];",
                    "    if (typeof validators._field[name] != 'undefined') {",
                    "        return [[validators._field[name], null]];",
                    "    }",
                    "",
                    "    // look for registered validators"
                ],
                "filename": "config.js"
            },
            {
                "func": "validate_field",
                "line": 418,
                "column": "21",
                "context": [
                    "{",
                    "    var args, result;",
                    "    var $field = $(field);",
                    "    var field_id = $field.attr('id');",
                    "    errors[field_id] = [];",
                    "    var functions = getFieldValidators(field_id, isKeyUp);",
                    "    for (var i = 0; i < functions.length; i++) {",
                    "        if (typeof functions[i][1] !== 'undefined' && functions[i][1] !== n//...",
                    "            args = functions[i][1].slice(0);",
                    "        } else {",
                    "            args = [];"
                ],
                "filename": "config.js"
            },
            {
                "func": "HTMLDocument.<anonymous>",
                "line": 511,
                "column": "13",
                "context": [
                    "    var $check_page_refresh = $('#check_page_refresh');",
                    "    if ($check_page_refresh.length === 0 || $check_page_refresh.val() == '1') {",
                    "        // run all field validators",
                    "        var errors = {};",
                    "        for (var i = 0; i < $elements.length; i++) {",
                    "            validate_field($elements[i], false, errors);",
                    "        }",
                    "        // run all fieldset validators",
                    "        $('fieldset').each(function () {",
                    "            validate_fieldset(this, false, errors);",
                    "        });"
                ],
                "filename": "config.js"
            },
            {
                "func": "HTMLDocument.new_func",
                "line": 279,
                "column": "33",
                "context": [
                    "     */",
                    "    wrap_function: function (func) {",
                    "        if (!func.wrapped) {",
                    "            var new_func = function () {",
                    "                try {",
                    "                    return func.apply(this, arguments);",
                    "                } catch (x) {",
                    "                    TraceKit.report(x);",
                    "                }",
                    "            };",
                    "            new_func.wrapped = true;"
                ],
                "filename": "error_report.js"
            },
            {
                "func": "HTMLDocument.dispatch",
                "line": 3,
                "column": "8436",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "HTMLDocument.$event.dispatch",
                "line": 374,
                "column": "19",
                "context": [
                    "$event.dispatch = function( event ){",
                    "\tif ( $.data( this, \"suppress.\"+ event.type ) - new Date().getTime() > 0 ){",
                    "\t\t$.removeData( this, \"suppress.\"+ event.type );",
                    "\t\treturn;",
                    "\t}",
                    "\treturn $dispatch.apply( this, arguments );",
                    "};",
                    "",
                    "// event fix hooks for touch events...",
                    "var touchHooks = ",
                    "$event.fixHooks.touchstart = "
                ],
                "filename": "jquery/jquery.event.drag-2.2.js"
            },
            {
                "func": "HTMLDocument.r.handle",
                "line": 3,
                "column": "5139",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "Object.trigger",
                "line": 3,
                "column": "7537",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "HTMLDocument.<anonymous>",
                "line": 3,
                "column": "15404",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "Function.each",
                "line": 2,
                "column": "2973",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            }
        ],
        "useragent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
        "incomplete": "false",
        "partial": "true",
        "uri": "sql.php?target="
    },
    "script_name": "sql.php",
    "microhistory": {
        "current_index": "0"
    }
}
swift phpmyadmin
1个回答
0
投票

我已经解决了这个问题。我的服务器中的api是php,我的php中有一些警告,我之前没有解决它,但前几天它出错了。但我的其他数据库运行流畅。然后我尝试解决这些警告,然后它作品。

© www.soinside.com 2019 - 2024. All rights reserved.