【问题标题】:after a while I opened phpmyadmin and this appeared on ubuntu 17过了一会儿,我打开了 phpmyadmin,这出现在 ubuntu 17
【发布时间】:2018-05-13 04:34:35
【问题描述】:

getHeader(); $scripts = $header->getScripts(); $scripts->addFile('jquery/jquery-ui-timepicker-addon.js'); $scripts->addFile('jquery/jquery.uitablefilter.js'); $scripts->addFile('tbl_change.js'); $scripts->addFile('indexes.js'); $scripts->addFile('gis_data_editor.js'); $scripts->addFile('multi_column_sort.js'); /** * 如果已经设置 ajax_reload 在响应中设置 */ if (isset($ajax_reload) && $ajax_reload['reload'] === true) { $response->addJSON('ajax_reload', $ajax_reload) ; } /** * 定义 sql 语句出错时返回的 url */ $is_gotofile = true; if (empty($goto)) { if (empty($table)) { $goto = Util::getScriptNameForOption( $GLOBALS['cfg']['DefaultTabDatabase'], 'database' ); } else { $goto = Util::getScriptNameForOption( $GLOBALS['cfg']['DefaultTabTable'], 'table' ); } } // 结束 if (!isset($err_url)) { $err_url = (!empty($back) ? $back : $goto) . “?” . PMA_URL_getCommon(array('db' => $GLOBALS['db'])) 。 ((mb_strpos(' ' . $goto, 'db_') != 1 && mb_strlen($table)) ? '&table=' . urlencode($table) : '' ); } // end if // 来自书签对话框 if (isset($_POST['bkm_fields']['bkm_sql_query'])) { $sql_query = $_POST['bkm_fields']['bkm_sql_query']; } elseif (isset($_GET['sql_query'])) { $sql_query = $_GET['sql_query']; } // 这个只是填$db if (isset($_POST['bkm_fields']['bkm_database'])) { $db = $_POST['bkm_fields']['bkm_database']; } // 在网格编辑期间,如果我们有一个关系字段,则显示它的下拉列表。 if (isset($_REQUEST['get_relational_values']) && $_REQUEST['get_relational_values'] == true ) { PMA_getRelationalValues($db, $table); // 脚本此时已退出 } // 就像上面一样,在网格编辑期间找到枚举字段的可能值。 if (isset($_REQUEST['get_enum_values']) && $_REQUEST['get_enum_values'] == true) { PMA_getEnumOrSetValues($db, $table, "enum"); // 脚本此时已退出 } // 在网格编辑期间查找设置字段的可能值。 if (isset($_REQUEST['get_set_values']) && $_REQUEST['get_set_values'] == true) { PMA_getEnumOrSetValues($db, $table, "set"); // 脚本此时已退出 } if (isset($_REQUEST['get_default_fk_check_value']) && $_REQUEST['get_default_fk_check_value'] == true ) { $response = Response::getInstance(); $response->addJSON('default_fk_check_value', Util::isForeignKeyCheck());出口; } /** * 检查 ajax 请求以设置列顺序和可见性 */ if (isset($_REQUEST['set_col_prefs']) && $_REQUEST['set_col_prefs'] == true) { PMA_setColumnOrderOrVisibility($table, $db) ; // 脚本此时已退出 } // 如果没有设置查询并且我们有表,则默认浏览 // (需要从 DefaultTabTable 浏览) $tableLength = mb_strlen($table); $dbLength = mb_strlen($db); if (empty($sql_query) && $tableLength && $dbLength) { $sql_query = PMA_getDefaultSqlQueryForBrowse($db, $table); // 将 $goto 设置为查询返回 0 行时将显示的内容 $goto = ''; } else { // 现在我们可以检查参数 Util::checkParameters(array('sql_query')); } /** * 解析和分析查询 */ require_once 'libraries/parse_analyze.lib.php';列表($analyzed_sql_results,$db,$table_from_sql)= PMA_parseAnalyze($sql_query,$db); // @todo: 可能重构 extract($analyzed_sql_results); if ($table != $table_from_sql && !empty($table_from_sql)) { $table = $table_from_sql; } /** * 在 DROP DATABASE 的情况下检查权限 * * 如果 $is_js_confirmed = 1(已经用 js 检查过),这个测试可能会被绕过 * 但是由于恶意用户可能通过 url/form 传递这个变量,我们不采取* 考虑到这种情况。 */ if (PMA_hasNoRightsToDropDatabase( $analyzed_sql_results, $cfg['AllowUserDropDatabase'], $is_superuser )) { Util::mysqlDie( __('"DROP DATABASE" statements are disabled.'), '', false, $err_url ); } // end if /** * 需要找到真正的行尾? */ if (isset($find_real_end) && $find_real_end) { $unlim_num_rows = PMA_findRealEndOfRows($db, $table); } /** * 添加书签 */ if (isset($_POST['store_bkm'])) { PMA_addBookmark($goto); // 脚本此时已退出 } // end if /** * 如果需要,设置或修改 $goto 变量 */ if ($goto == 'sql.php') { $is_gotofile = false; $goto = 'sql.php' 。 PMA_URL_getCommon( 数组('db' => $db, 'table' => $table, 'sql_query' => $sql_query ) ); } // end if PMA_executeQueryAndSendQueryResponse( $analyzed_sql_results, //analyzed_sql_results $is_gotofile, // is_gotofile $db, // db $table, // table isset($find_real_end) ? $find_real_end : null, // find_real_end isset($import_text) ? $import_text : null, // sql_query_for_bookmark isset($extra_data) ? $extra_data : null, // extra_data isset($message_to_show) ? $message_to_show : null, // message_to_show isset($message) ? $message : null, // message isset($sql_data) ? $sql_data : null, // sql_data $goto, // 转到 $pmaThemeImage, // pmaThemeImage isset($disp_query) ? $display_query : null, // disp_query isset($disp_message) ? $disp_message : null, // disp_message isset($query_type) ? $query_type : null, // query_type $sql_query, // sql_query isset($selected) ? $selected : null, // selectedTables isset($complete_query) ? $complete_query : null / / 完成查询); 一些忠告?谢谢

【问题讨论】:

    标签: ubuntu phpmyadmin ubuntu-server


    【解决方案1】:

    我在将 ubuntu 更新到 17.10 后遇到了同样的问题。 Apache2 和 php 未正确安装。 运行:

    sudo apt install --reinstall php7.1 libapache2-mod-php7.1
    sudo service apache2 restart
    

    您可能需要更新 apache2 并(重新)安装一些库(例如,我丢失了 mbstring)。如果是这样,请查看此帖子:phpMyAdmin Error: The mbstring extension is missing. Please check your PHP configuration

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-06-12
      • 1970-01-01
      • 1970-01-01
      • 2016-11-05
      • 2015-05-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多