diff --git a/choupas/www/admin/app/cache/debug/providers/invalides/provider.php b/choupas/www/admin/app/cache/debug/providers/invalides/provider.php index da89070..a4aa213 100644 --- a/choupas/www/admin/app/cache/debug/providers/invalides/provider.php +++ b/choupas/www/admin/app/cache/debug/providers/invalides/provider.php @@ -2,9 +2,9 @@ return array( 'type' => 'MySQLProvider', - 'host' => '10.42.42.8', - 'user' => 'choupas', - 'password' => 'rTAu83FZu4E63MEe', + 'host' => 'localhost', + 'user' => 'root', + 'password' => '8MW8zgD8EUqZaE', 'dbname' => 'choupas', 'encoding' => 'utf-8', 'name' => 'invalides', @@ -747,11 +747,11 @@ return array( 'plural' => '', ), 'value' => array( - 'minlength' => 0, - 'maxlength' => 255, + 'min' => -4294967297, + 'max' => 4294967296, 'default' => null, 'null' => false, - 'type' => 'string', + 'type' => 'integer', ), ), 'image2' => array( @@ -779,11 +779,11 @@ return array( 'plural' => '', ), 'value' => array( - 'minlength' => 0, - 'maxlength' => 255, + 'min' => -4294967297, + 'max' => 4294967296, 'default' => null, 'null' => false, - 'type' => 'string', + 'type' => 'integer', ), ), 'image3' => array( @@ -811,11 +811,11 @@ return array( 'plural' => '', ), 'value' => array( - 'minlength' => 0, - 'maxlength' => 255, + 'min' => -4294967297, + 'max' => 4294967296, 'default' => null, 'null' => false, - 'type' => 'string', + 'type' => 'integer', ), ), 'image4' => array( @@ -843,11 +843,11 @@ return array( 'plural' => '', ), 'value' => array( - 'minlength' => 0, - 'maxlength' => 255, + 'min' => -4294967297, + 'max' => 4294967296, 'default' => null, 'null' => false, - 'type' => 'string', + 'type' => 'integer', ), ), 'Imagecentree' => array( @@ -859,11 +859,11 @@ return array( 'plural' => '', ), 'value' => array( - 'minlength' => 0, - 'maxlength' => 255, + 'min' => -4294967297, + 'max' => 4294967296, 'default' => null, 'null' => false, - 'type' => 'string', + 'type' => 'integer', ), ), 'legendeimagecentree' => array( @@ -875,11 +875,11 @@ return array( 'plural' => '', ), 'value' => array( - 'minlength' => 0, - 'maxlength' => 255, + 'min' => -4294967297, + 'max' => 4294967296, 'default' => null, 'null' => false, - 'type' => 'string', + 'type' => 'integer', ), ), 'imagefull' => array( @@ -891,11 +891,11 @@ return array( 'plural' => '', ), 'value' => array( - 'minlength' => 0, - 'maxlength' => 255, + 'min' => -4294967297, + 'max' => 4294967296, 'default' => null, 'null' => false, - 'type' => 'string', + 'type' => 'integer', ), ), 'legendeimagefull' => array( @@ -907,11 +907,11 @@ return array( 'plural' => '', ), 'value' => array( - 'minlength' => 0, - 'maxlength' => 255, + 'min' => -4294967297, + 'max' => 4294967296, 'default' => null, 'null' => false, - 'type' => 'string', + 'type' => 'integer', ), ), 'Audio' => array( @@ -939,11 +939,11 @@ return array( 'plural' => '', ), 'value' => array( - 'minlength' => 0, - 'maxlength' => 255, + 'min' => -4294967297, + 'max' => 4294967296, 'default' => null, 'null' => false, - 'type' => 'string', + 'type' => 'integer', ), ), ), diff --git a/choupas/www/admin/app/cache/debug/templates/back/elements/menus/main.db.setml b/choupas/www/admin/app/cache/debug/templates/back/elements/menus/main.db.setml old mode 100755 new mode 100644 diff --git a/choupas/www/admin/app/cache/debug/templates/back/elements/menus/main.db.setml.php b/choupas/www/admin/app/cache/debug/templates/back/elements/menus/main.db.setml.php old mode 100755 new mode 100644 diff --git a/choupas/www/admin/app/cache/debug/templates/back/elements/menus/main.html b/choupas/www/admin/app/cache/debug/templates/back/elements/menus/main.html old mode 100755 new mode 100644 diff --git a/choupas/www/admin/app/cache/debug/templates/back/elements/menus/main.html.php b/choupas/www/admin/app/cache/debug/templates/back/elements/menus/main.html.php old mode 100755 new mode 100644 index fd03732..8dff199 --- a/choupas/www/admin/app/cache/debug/templates/back/elements/menus/main.html.php +++ b/choupas/www/admin/app/cache/debug/templates/back/elements/menus/main.html.php @@ -16,8 +16,8 @@ $runtime->frame["data"] = array_merge($data, $runtime->lpop()); $runtime->appendContent( '' . "\n" . '' . "\n" . '' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . "\n" . ' '; - - if (isset($sts_data['TABLE_ROWS'])) { - echo ''; - echo ''; - if ($cfg['ShowStats']) { - $tblsize = $sts_data['Data_length'] + $sts_data['Index_length']; - $sum_size += $tblsize; - list($formated_size, $unit) - = PMA_Util::formatByteDown($tblsize, 3, 1); - echo ''; - } // end if - } else { - echo ''; - } - echo ''; - echo ''; - } - echo ''; - echo ''; - echo ''; - echo ''; - if ($cfg['ShowStats']) { - list($sum_formated, $unit) - = PMA_Util::formatByteDown($sum_size, 3, 1); - echo ''; - } - echo ''; - echo ''; - echo ''; - echo ''; -} - -/** - * Displays the footer - */ -echo PMA_Util::getButton(); - -echo "
\n"; -?> diff --git a/choupas/www/admin/phpmy/db_qbe.php b/choupas/www/admin/phpmy/db_qbe.php index f499efd..842d46b 100644 --- a/choupas/www/admin/phpmy/db_qbe.php +++ b/choupas/www/admin/phpmy/db_qbe.php @@ -22,7 +22,7 @@ $cfgRelation = PMA_getRelationsParam(); $savedSearchList = array(); $savedSearch = null; $currentSearchId = null; -if (isset($cfgRelation['savedsearcheswork']) && $cfgRelation['savedsearcheswork']) { +if ($cfgRelation['savedsearcheswork']) { include 'libraries/SavedSearches.class.php'; $header = $response->getHeader(); $scripts = $header->getScripts(); @@ -80,15 +80,30 @@ if (isset($_REQUEST['submit_sql']) && ! empty($sql_query)) { if (! preg_match('@^SELECT@i', $sql_query)) { $message_to_display = true; } else { - $goto = 'db_sql.php'; + $goto = 'db_sql.php'; // Parse and analyze the query include_once 'libraries/parse_analyze.inc.php'; PMA_executeQueryAndSendQueryResponse( - $analyzed_sql_results, false, $_REQUEST['db'], null, false, null, null, - false, null, null, null, $goto, $pmaThemeImage, null, null, null, - $sql_query, null, null + $analyzed_sql_results, // analyzed_sql_results + false, // is_gotofile + $_REQUEST['db'], // db + null, // table + false, // find_real_end + null, // sql_query_for_bookmark + null, // extra_data + null, // message_to_show + null, // message + null, // sql_data + $goto, // goto + $pmaThemeImage, // pmaThemeImage + null, // disp_query + null, // disp_message + null, // query_type + $sql_query, // sql_query + null, // selectedTables + null // complete_query ); } } @@ -97,7 +112,18 @@ $sub_part = '_qbe'; require 'libraries/db_common.inc.php'; $url_query .= '&goto=db_qbe.php'; $url_params['goto'] = 'db_qbe.php'; -require 'libraries/db_info.inc.php'; + +list( + $tables, + $num_tables, + $total_num_tables, + $sub_part, + $is_show_stats, + $db_is_system_schema, + $tooltip_truename, + $tooltip_aliasname, + $pos +) = PMA_Util::getDbInfo($db, isset($sub_part) ? $sub_part : ''); if ($message_to_display) { PMA_Message::error(__('You have to choose at least one column to display!')) @@ -106,7 +132,7 @@ if ($message_to_display) { unset($message_to_display); // create new qbe search instance -$db_qbe = new PMA_DBQbe($GLOBALS['db'], $savedSearchList, $savedSearch); +$db_qbe = new PMA_DbQbe($GLOBALS['db'], $savedSearchList, $savedSearch); $url = 'db_designer.php' . PMA_URL_getCommon( array_merge( @@ -128,4 +154,3 @@ $response->addHTML( * Displays the Query by example form */ $response->addHTML($db_qbe->getSelectionForm()); -?> diff --git a/choupas/www/admin/phpmy/db_routines.php b/choupas/www/admin/phpmy/db_routines.php index a58d4c0..be7791c 100644 --- a/choupas/www/admin/phpmy/db_routines.php +++ b/choupas/www/admin/phpmy/db_routines.php @@ -16,6 +16,7 @@ require_once 'libraries/mysql_charsets.inc.php'; /** * Include all other files */ +require_once 'libraries/check_user_privileges.lib.php'; require_once 'libraries/rte/rte_routines.lib.php'; /** @@ -23,5 +24,3 @@ require_once 'libraries/rte/rte_routines.lib.php'; */ $_PMA_RTE = 'RTN'; require_once 'libraries/rte/rte_main.inc.php'; - -?> diff --git a/choupas/www/admin/phpmy/db_search.php b/choupas/www/admin/phpmy/db_search.php index 349f720..3789ed9 100644 --- a/choupas/www/admin/phpmy/db_search.php +++ b/choupas/www/admin/phpmy/db_search.php @@ -24,7 +24,7 @@ $scripts->addFile('jquery/jquery-ui-timepicker-addon.js'); require 'libraries/db_common.inc.php'; -// If config variable $GLOBALS['cfg']['Usedbsearch'] is on false : exit. +// If config variable $GLOBALS['cfg']['UseDbSearch'] is on false : exit. if (! $GLOBALS['cfg']['UseDbSearch']) { PMA_Util::mysqlDie( __('Access denied!'), '', false, $err_url @@ -37,8 +37,18 @@ $url_params['goto'] = 'db_search.php'; $db_search = new PMA_DbSearch($GLOBALS['db']); // Display top links if we are not in an Ajax request -if ( $GLOBALS['is_ajax_request'] != true) { - include 'libraries/db_info.inc.php'; +if ($GLOBALS['is_ajax_request'] != true) { + list( + $tables, + $num_tables, + $total_num_tables, + $sub_part, + $is_show_stats, + $db_is_system_schema, + $tooltip_truename, + $tooltip_aliasname, + $pos + ) = PMA_Util::getDbInfo($db, isset($sub_part) ? $sub_part : ''); } // Main search form has been submitted, get results @@ -60,4 +70,3 @@ $response->addHTML( ); $response->addHTML($db_search->getSelectionForm()); $response->addHTML($db_search->getResultDivs()); -?> diff --git a/choupas/www/admin/phpmy/db_sql.php b/choupas/www/admin/phpmy/db_sql.php index 987dbaf..fc140a8 100644 --- a/choupas/www/admin/phpmy/db_sql.php +++ b/choupas/www/admin/phpmy/db_sql.php @@ -10,6 +10,9 @@ * */ require_once 'libraries/common.inc.php'; +require_once 'libraries/config/page_settings.class.php'; + +PMA_PageSettings::showGroup('Sql_queries'); /** * Runs common work @@ -41,5 +44,3 @@ $response->addHTML( : ';' ) ); - -?> diff --git a/choupas/www/admin/phpmy/db_sql_autocomplete.php b/choupas/www/admin/phpmy/db_sql_autocomplete.php index 4897f00..3be88c4 100644 --- a/choupas/www/admin/phpmy/db_sql_autocomplete.php +++ b/choupas/www/admin/phpmy/db_sql_autocomplete.php @@ -8,17 +8,19 @@ require_once 'libraries/common.inc.php'; -$db = isset($_POST['db']) ? $_POST['db'] : $GLOBALS['db']; -$sql_autocomplete = array(); - -if ($db) { - $tableNames = $GLOBALS['dbi']->getTables($db); - foreach ($tableNames as $tableName) { - $sql_autocomplete[$tableName] = $GLOBALS['dbi']->getColumns( - $db, $tableName - ); +if ($GLOBALS['cfg']['EnableAutocompleteForTablesAndColumns']) { + $db = isset($_POST['db']) ? $_POST['db'] : $GLOBALS['db']; + $sql_autocomplete = array(); + if ($db) { + $tableNames = $GLOBALS['dbi']->getTables($db); + foreach ($tableNames as $tableName) { + $sql_autocomplete[$tableName] = $GLOBALS['dbi']->getColumns( + $db, $tableName + ); + } } +} else { + $sql_autocomplete = true; } - $response = PMA_Response::getInstance(); $response->addJSON("tables", json_encode($sql_autocomplete)); diff --git a/choupas/www/admin/phpmy/db_sql_format.php b/choupas/www/admin/phpmy/db_sql_format.php index a83e527..610b3e2 100644 --- a/choupas/www/admin/phpmy/db_sql_format.php +++ b/choupas/www/admin/phpmy/db_sql_format.php @@ -6,13 +6,15 @@ * @package PhpMyAdmin */ +/** + * Loading common files. Used to check for authorization, localization and to + * load the parsing library. + */ require_once 'libraries/common.inc.php'; -require_once 'libraries/sql-formatter/lib/SqlFormatter.php'; -$query = isset($_POST['sql']) ? $_POST['sql'] : ''; +$query = !empty($_POST['sql']) ? $_POST['sql'] : ''; -SqlFormatter::$tab = "\t"; -$query = SqlFormatter::format($query, false); +$query = SqlParser\Utils\Formatter::format($query); $response = PMA_Response::getInstance(); $response->addJSON("sql", $query); diff --git a/choupas/www/admin/phpmy/db_structure.php b/choupas/www/admin/phpmy/db_structure.php index 9773a94..14ab8b8 100644 --- a/choupas/www/admin/phpmy/db_structure.php +++ b/choupas/www/admin/phpmy/db_structure.php @@ -6,340 +6,49 @@ * @package PhpMyAdmin */ -/** - * - */ +namespace PMA; + +use PMA_Response; + require_once 'libraries/common.inc.php'; +require_once 'libraries/db_common.inc.php'; -/** - * Function implementations for this script - */ -require_once 'libraries/structure.lib.php'; +list( + $tables, + $num_tables, + $total_num_tables, + $sub_part, + $is_show_stats, + $db_is_system_schema, + $tooltip_truename, + $tooltip_aliasname, + $pos +) = \PMA_Util::getDbInfo($GLOBALS['db'], isset($sub_part) ? $sub_part : ''); -// Add/Remove favorite tables using Ajax request. -if ($GLOBALS['is_ajax_request'] && ! empty($_REQUEST['favorite_table'])) { - PMA_addRemoveFavoriteTables($db); - exit; -} +require_once 'libraries/di/Container.class.php'; +require_once 'libraries/controllers/DatabaseStructureController.class.php'; +require_once 'libraries/Response.class.php'; -$response = PMA_Response::getInstance(); -$header = $response->getHeader(); -$scripts = $header->getScripts(); -$scripts->addFile('db_structure.js'); -$scripts->addFile('tbl_change.js'); -$scripts->addFile('jquery/jquery-ui-timepicker-addon.js'); +$container = DI\Container::getDefaultContainer(); +$container->factory('PMA\Controllers\DatabaseStructureController'); +$container->alias( + 'DatabaseStructureController', 'PMA\Controllers\DatabaseStructureController' +); +$container->set('PMA_Response', PMA_Response::getInstance()); +$container->alias('response', 'PMA_Response'); -// Drops/deletes/etc. multiple tables if required -if ((!empty($_POST['submit_mult']) && isset($_POST['selected_tbl'])) - || isset($_POST['mult_btn']) -) { - $action = 'db_structure.php'; - $err_url = 'db_structure.php' . PMA_URL_getCommon(array('db' => $db)); - - // see bug #2794840; in this case, code path is: - // db_structure.php -> libraries/mult_submits.inc.php -> sql.php - // -> db_structure.php and if we got an error on the multi submit, - // we must display it here and not call again mult_submits.inc.php - if (! isset($_POST['error']) || false === $_POST['error']) { - include 'libraries/mult_submits.inc.php'; - } - if (empty($_POST['message'])) { - $_POST['message'] = PMA_Message::success(); - } -} - -require 'libraries/db_common.inc.php'; -$url_query .= '&goto=db_structure.php'; - -// Gets the database structure -$sub_part = '_structure'; -require 'libraries/db_info.inc.php'; - -// If there is an Ajax request for real row count of a table. -if ($GLOBALS['is_ajax_request'] - && isset($_REQUEST['real_row_count']) - && $_REQUEST['real_row_count'] == true -) { - PMA_handleRealRowCountRequest(); - exit; -} - -if (!PMA_DRIZZLE) { - include_once 'libraries/replication.inc.php'; -} else { - $GLOBALS['replication_info']['slave']['status'] = false; -} - -require_once 'libraries/bookmark.lib.php'; - -require_once 'libraries/mysql_charsets.inc.php'; -$db_collation = PMA_getDbCollation($db); - -$titles = PMA_Util::buildActionTitles(); - -// 1. No tables - -if ($num_tables == 0) { - $response->addHTML( - PMA_message::notice(__('No tables found in database.')) - ); - PMA_possiblyShowCreateTableDialog($db, $db_is_system_schema, $response); - exit; -} - -// else -// 2. Shows table informations - -/** - * Displays the tables list - */ -$response->addHTML('
'); -$_url_params = array( +global $db, $pos, $db_is_system_schema, $total_num_tables, $tables, $num_tables; +/* Define dependencies for the concerned controller */ +$dependency_definitions = array( + 'db' => $db, + 'url_query' => &$GLOBALS['url_query'], 'pos' => $pos, - 'db' => $db); - -// Add the sort options if they exists -if (isset($_REQUEST['sort'])) { - $_url_params['sort'] = $_REQUEST['sort']; -} - -if (isset($_REQUEST['sort_order'])) { - $_url_params['sort_order'] = $_REQUEST['sort_order']; -} - -$response->addHTML( - PMA_Util::getListNavigator( - $total_num_tables, $pos, $_url_params, 'db_structure.php', - 'frame_content', $GLOBALS['cfg']['MaxTableList'] - ) + 'db_is_system_schema' => $db_is_system_schema, + 'num_tables' => $num_tables, + 'total_num_tables' => $total_num_tables, + 'tables' => $tables, ); -// tables form -$response->addHTML( - '' -); - -$response->addHTML(PMA_URL_getHiddenInputs($db)); - -$response->addHTML( - PMA_tableHeader( - $db_is_system_schema, $GLOBALS['replication_info']['slave']['status'] - ) -); - -$i = $sum_entries = 0; -$overhead_check = ''; -$create_time_all = ''; -$update_time_all = ''; -$check_time_all = ''; -$num_columns = $cfg['PropertiesNumColumns'] > 1 - ? ceil($num_tables / $cfg['PropertiesNumColumns']) + 1 - : 0; -$row_count = 0; -$sum_size = (double) 0; -$overhead_size = (double) 0; - -$hidden_fields = array(); -$odd_row = true; -// Instance of PMA_RecentFavoriteTable class. -$fav_instance = PMA_RecentFavoriteTable::getInstance('favorite'); -foreach ($tables as $keyname => $current_table) { - // Get valid statistics whatever is the table type - - $drop_query = ''; - $drop_message = ''; - $already_favorite = false; - $overhead = ''; - - $table_is_view = false; - $table_encoded = urlencode($current_table['TABLE_NAME']); - // Sets parameters for links - $tbl_url_query = $url_query . '&table=' . $table_encoded; - // do not list the previous table's size info for a view - - list($current_table, $formatted_size, $unit, $formatted_overhead, - $overhead_unit, $overhead_size, $table_is_view, $sum_size) - = PMA_getStuffForEngineTypeTable( - $current_table, $db_is_system_schema, - $is_show_stats, $table_is_view, $sum_size, $overhead_size - ); - - if (! PMA_Table::isMerge($db, $current_table['TABLE_NAME'])) { - $sum_entries += $current_table['TABLE_ROWS']; - } - - if (isset($current_table['Collation'])) { - $collation = '' - . $current_table['Collation'] . ''; - } else { - $collation = '---'; - } - - if ($is_show_stats) { - if ($formatted_overhead != '') { - $overhead = '' - . '' . $formatted_overhead . ' ' - . '' . $overhead_unit . '' - . '' . "\n"; - $overhead_check .= - "markAllRows('row_tbl_" . ($i + 1) . "');"; - } else { - $overhead = '-'; - } - } // end if - - unset($showtable); - - if ($GLOBALS['cfg']['ShowDbStructureCreation']) { - list($create_time, $create_time_all) = PMA_getTimeForCreateUpdateCheck( - $current_table, 'Create_time', $create_time_all - ); - } - - if ($GLOBALS['cfg']['ShowDbStructureLastUpdate']) { - // $showtable might already be set from ShowDbStructureCreation, see above - list($update_time, $update_time_all) = PMA_getTimeForCreateUpdateCheck( - $current_table, 'Update_time', $update_time_all - ); - } - - if ($GLOBALS['cfg']['ShowDbStructureLastCheck']) { - // $showtable might already be set from ShowDbStructureCreation, see above - list($check_time, $check_time_all) = PMA_getTimeForCreateUpdateCheck( - $current_table, 'Check_time', $check_time_all - ); - } - - list($alias, $truename) = PMA_getAliasAndTrueName( - $tooltip_aliasname, $current_table, $tooltip_truename - ); - - $i++; - - $row_count++; - if ($table_is_view) { - $hidden_fields[] = ''; - } - - /* - * Always activate links for Browse, Search and Empty, even if - * the icons are greyed, because - * 1. for views, we don't know the number of rows at this point - * 2. for tables, another source could have populated them since the - * page was generated - * - * I could have used the PHP ternary conditional operator but I find - * the code easier to read without this operator. - */ - list($browse_table, $search_table, $browse_table_label, $empty_table, - $tracking_icon) = PMA_getHtmlForActionLinks( - $current_table, $table_is_view, $tbl_url_query, - $titles, $truename, $db_is_system_schema, $url_query - ); - - if (! $db_is_system_schema) { - list($drop_query, $drop_message) - = PMA_getTableDropQueryAndMessage($table_is_view, $current_table); - } - - if ($num_columns > 0 - && $num_tables > $num_columns - && ($row_count % $num_columns) == 0 - ) { - $row_count = 1; - $odd_row = true; - - $response->addHTML( - '' - ); - - $response->addHTML( - PMA_tableHeader(false, $GLOBALS['replication_info']['slave']['status']) - ); - } - - list($do, $ignored) = PMA_getServerSlaveStatus( - $GLOBALS['replication_info']['slave']['status'], $truename - ); - // Handle favorite table list. ----START---- - $already_favorite = PMA_checkFavoriteTable($db, $current_table['TABLE_NAME']); - - if (isset($_REQUEST['remove_favorite'])) { - if ($already_favorite) { - // If already in favorite list, remove it. - $favorite_table = $_REQUEST['favorite_table']; - $fav_instance->remove($db, $favorite_table); - } - } - - if (isset($_REQUEST['add_favorite'])) { - if (!$already_favorite) { - // Otherwise add to favorite list. - $favorite_table = $_REQUEST['favorite_table']; - $fav_instance->add($db, $favorite_table); - } - } // Handle favorite table list. ----ENDS---- - - list($html_output, $odd_row, $approx_rows) = PMA_getHtmlForStructureTableRow( - $i, $odd_row, $table_is_view, $current_table, - $browse_table_label, $tracking_icon, - $GLOBALS['replication_info']['slave']['status'], - $browse_table, $tbl_url_query, $search_table, $db_is_system_schema, - $titles, $empty_table, $drop_query, $drop_message, $collation, - $formatted_size, $unit, $overhead, - (isset ($create_time) ? $create_time : ''), - (isset ($update_time) ? $update_time : ''), - (isset ($check_time) ? $check_time : ''), - $is_show_stats, $ignored, $do, $colspan_for_structure - ); - $response->addHTML($html_output); - -} // end foreach - -// Show Summary -$response->addHTML(''); -$response->addHTML( - PMA_getHtmlBodyForTableSummary( - $num_tables, $GLOBALS['replication_info']['slave']['status'], - $db_is_system_schema, $sum_entries, $db_collation, $is_show_stats, $sum_size, - $overhead_size, $create_time_all, $update_time_all, $check_time_all, - isset($approx_rows) ? $approx_rows : false - ) -); -$response->addHTML(''); -//check all -$response->addHTML( - PMA_getHtmlForCheckAllTables( - $pmaThemeImage, $text_dir, $overhead_check, - $db_is_system_schema, $hidden_fields - ) -); -$response->addHTML(''); //end of form - -// display again the table list navigator -$response->addHTML( - PMA_Util::getListNavigator( - $total_num_tables, $pos, $_url_params, 'db_structure.php', - 'frame_content', $GLOBALS['cfg']['MaxTableList'] - ) -); - -$response->addHTML('

'); - -/** - * Work on the database - */ -/* DATABASE WORK */ -/* Printable view of a table */ -$response->addHTML( - PMA_getHtmlForTablePrintViewLink($url_query) - . PMA_getHtmlForDataDictionaryLink($url_query) -); - -PMA_possiblyShowCreateTableDialog($db, $db_is_system_schema, $response); - -?> +/** @var Controllers\DatabaseStructureController $controller */ +$controller = $container->get('DatabaseStructureController', $dependency_definitions); +$controller->indexAction(); diff --git a/choupas/www/admin/phpmy/db_tracking.php b/choupas/www/admin/phpmy/db_tracking.php index 8a5028d..e451ccd 100644 --- a/choupas/www/admin/phpmy/db_tracking.php +++ b/choupas/www/admin/phpmy/db_tracking.php @@ -12,6 +12,7 @@ require_once 'libraries/common.inc.php'; require_once './libraries/tracking.lib.php'; +require_once 'libraries/display_create_table.lib.php'; //Get some js files needed for Ajax requests $response = PMA_Response::getInstance(); @@ -28,7 +29,18 @@ $url_query .= '&goto=tbl_tracking.php&back=db_tracking.php'; // Get the database structure $sub_part = '_structure'; -require 'libraries/db_info.inc.php'; + +list( + $tables, + $num_tables, + $total_num_tables, + $sub_part, + $is_show_stats, + $db_is_system_schema, + $tooltip_truename, + $tooltip_aliasname, + $pos +) = PMA_Util::getDbInfo($db, isset($sub_part) ? $sub_part : ''); // Work to do? // (here, do not use $_REQUEST['db] as it can be crafted) @@ -89,7 +101,7 @@ if ($num_tables == 0 && count($data['ddlog']) == 0) { echo '

' . __('No tables found in database.') . '

' . "\n"; if (empty($db_is_system_schema)) { - include 'libraries/display_create_table.lib.php'; + echo PMA_getHtmlForCreateTable($db); } exit; } @@ -108,234 +120,20 @@ $all_tables_query = ' SELECT table_name, MAX(version) as version FROM ' . $all_tables_result = PMA_queryAsControlUser($all_tables_query); // If a HEAD version exists -if ($GLOBALS['dbi']->numRows($all_tables_result) > 0) { - ?> -
-

- -
- - - - - - - - - - - - - - - - fetchArray($all_tables_result)) { - list($table_name, $version_number) = $one_result; - $table_query = ' SELECT * FROM ' . - PMA_Util::backquote($cfgRelation['db']) . '.' . - PMA_Util::backquote($cfgRelation['tracking']) . - ' WHERE `db_name` = \'' . PMA_Util::sqlAddSlashes($_REQUEST['db']) - . '\' AND `table_name` = \'' . PMA_Util::sqlAddSlashes($table_name) - . '\' AND `version` = \'' . $version_number . '\''; - - $table_result = PMA_queryAsControlUser($table_query); - $version_data = $GLOBALS['dbi']->fetchArray($table_result); - - $tmp_link = 'tbl_tracking.php' . $url_query . '&table=' - . htmlspecialchars($version_data['table_name']); - $delete_link = 'db_tracking.php' . $url_query . '&table=' - . htmlspecialchars($version_data['table_name']) - . '&delete_tracking=true&'; - $checkbox_id = "selected_tbl_" - . htmlspecialchars($version_data['table_name']); - ?> - - - - - - - - ' - . ''; - if ($style == 'even') { - $style = 'odd'; - } else { - $style = 'even'; - } - } - unset($tmp_link); - ?> - -
- - - - - array( - 'label' => __('not active'), - 'value' => 'deactivate_now', - 'selected' => ($state != 'active') - ), - 1 => array( - 'label' => __('active'), - 'value' => 'activate_now', - 'selected' => ($state == 'active') - ) - ); - echo PMA_Util::toggleButton( - $tmp_link . '&version=' . $version_data['version'], - 'toggle_activation', - $options, - null - ); - ?> - - - - ' - . '' - . '' . $versions . '' - . '  ' - . '' . $report . '' - . '  ' - . '' . $structure . '' - . '
- numRows($all_tables_result) > 0) { + PMA_displayTrackedTables( + $GLOBALS['db'], $all_tables_result, $url_query, $pmaThemeImage, + $text_dir, $cfgRelation ); - ?> -
-
- $value) { - // If $value is a table group. - if (array_key_exists(('is' . $sep . 'group'), $value) - && $value['is' . $sep . 'group'] - ) { - foreach ($value as $temp_table) { - // If $temp_table is a table with the value for 'Name' is set, - // rather than a property of the table group. - if (is_array($temp_table) - && array_key_exists('Name', $temp_table) - ) { - $tracking_version = PMA_Tracker::getVersion( - $GLOBALS['db'], - $temp_table['Name'] - ); - if ($tracking_version == -1) { - $my_tables[] = $temp_table['Name']; - } - } - } - } else { // If $value is a table. - if (PMA_Tracker::getVersion($GLOBALS['db'], $value['Name']) == -1) { - $my_tables[] = $value['Name']; - } - } -} +$untracked_tables = PMA_getUntrackedTables($GLOBALS['db']); // If untracked tables exist -if (count($my_tables) > 0) { - ?> -

-
- - - - - - - - - - - $tablename) { - $checkbox_id = "selected_tbl_" - . htmlspecialchars($tablename); - if (PMA_Tracker::getVersion($GLOBALS['db'], $tablename) == -1) { - $my_link = ''; - $my_link .= PMA_Util::getIcon('eye.png', __('Track table')); - $my_link .= ''; - ?> - - - - - - - -
- - - -
- 0) { + PMA_displayUntrackedTables( + $GLOBALS['db'], $untracked_tables, $url_query, $pmaThemeImage, $text_dir ); - ?> -
- 0) { @@ -346,5 +144,3 @@ if (count($data['ddlog']) > 0) { } echo PMA_Util::getMessage(__('Database Log'), $log); } - -?> diff --git a/choupas/www/admin/phpmy/db_triggers.php b/choupas/www/admin/phpmy/db_triggers.php index d1a2a8c..a415fb4 100644 --- a/choupas/www/admin/phpmy/db_triggers.php +++ b/choupas/www/admin/phpmy/db_triggers.php @@ -21,5 +21,3 @@ require_once 'libraries/rte/rte_triggers.lib.php'; */ $_PMA_RTE = 'TRI'; require_once 'libraries/rte/rte_main.inc.php'; - -?> diff --git a/choupas/www/admin/phpmy/doc/_ext/configext.py b/choupas/www/admin/phpmy/doc/_ext/configext.py index 097f876..021b450 100644 --- a/choupas/www/admin/phpmy/doc/_ext/configext.py +++ b/choupas/www/admin/phpmy/doc/_ext/configext.py @@ -179,7 +179,7 @@ class ConfigFileDomain(Domain): labelid, contnode) def get_objects(self): - for (type, name), info in self.data['objects'].iteritems(): + for (type, name), info in self.data['objects'].items(): yield (name, name, type, info[0], info[1], self.object_types[type].attrs['searchprio']) diff --git a/choupas/www/admin/phpmy/doc/conf.py b/choupas/www/admin/phpmy/doc/conf.py index 618da6a..6ba577a 100644 --- a/choupas/www/admin/phpmy/doc/conf.py +++ b/choupas/www/admin/phpmy/doc/conf.py @@ -51,7 +51,7 @@ copyright = u'2012 - 2014, The phpMyAdmin devel team' # built documents. # # The short X.Y version. -version = '4.4.9' +version = '4.5.4.1' # The full version, including alpha/beta/rc tags. release = version @@ -127,7 +127,7 @@ html_theme = 'default' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +#html_static_path = ['_static'] # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied diff --git a/choupas/www/admin/phpmy/doc/config.rst b/choupas/www/admin/phpmy/doc/config.rst index 6d8ed51..76d5175 100644 --- a/choupas/www/admin/phpmy/doc/config.rst +++ b/choupas/www/admin/phpmy/doc/config.rst @@ -144,6 +144,17 @@ Basic settings set, and the :config:option:`$cfg['UserprefsDisallow']` directive should contain ``'SendErrorReports'`` in one of its array values. +.. config:option:: $cfg['ConsoleEnterExecutes'] + + :type: boolean + :default: false + + Setting this to ``true`` allows the user to execute queries by pressing Enter + instead of Ctrl+Enter. A new line can be inserted by pressing Shift + Enter. + + The behaviour of the console can be temporarily changed using console's + settings interface. + .. config:option:: $cfg['AllowThirdPartyFraming'] :type: boolean @@ -159,7 +170,7 @@ Server connection settings .. config:option:: $cfg['Servers'] :type: array - :default: one server array with settings listed bellow + :default: one server array with settings listed below Since version 1.4.2, phpMyAdmin supports the administration of multiple MySQL servers. Therefore, a :config:option:`$cfg['Servers']`-array has been @@ -771,6 +782,22 @@ Server connection settings * put the table name in :config:option:`$cfg['Servers'][$i]['central_columns']` (e.g. ``pma__central_columns``) +.. _designer_settings: +.. config:option:: $cfg['Servers'][$i]['designer_settings'] + + :type: string + :default: ``''`` + + Since release 4.5.0 your designer settings can be remembered. + Your choice regarding 'Angular/Direct Links', 'Snap to Grid', 'Toggle Relation Lines', + 'Small/Big All', 'Move Menu' and 'Pin Text' can be remembered persistently. + + To allow the usage of this functionality: + + * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage + * put the table name in :config:option:`$cfg['Servers'][$i]['designer_settings']` (e.g. + ``pma__designer_settings``) + .. _savedsearches: .. config:option:: $cfg['Servers'][$i]['savedsearches'] @@ -785,6 +812,20 @@ Server connection settings * put the table name in :config:option:`$cfg['Servers'][$i]['savedsearches']` (e.g. ``pma__savedsearches``) +.. _export_templates: +.. config:option:: $cfg['Servers'][$i]['export_templates'] + + :type: string + :default: ``''`` + + Since release 4.5.0 you can save and load export templates. + + To allow the usage of this functionality: + + * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage + * put the table name in :config:option:`$cfg['Servers'][$i]['export_templates']` (e.g. + ``pma__export_templates``) + .. _tracking: .. config:option:: $cfg['Servers'][$i]['tracking'] @@ -1100,8 +1141,8 @@ Generic settings :type: boolean :default: true - Enables check for latest versions using javascript on main phpMyAdmin - page. + Enables check for latest versions using JavaScript on the main phpMyAdmin + page or by directly accessing :file:`version_check.php`. .. note:: @@ -1149,8 +1190,7 @@ Generic settings :default: 250 The maximum number of table names to be displayed in the main panel's - list (except on the Export page). This limit is also enforced in the - navigation panel when in Light mode. + list (except on the Export page). .. config:option:: $cfg['ShowHint'] @@ -1223,10 +1263,12 @@ Generic settings :default: ``'-1'`` Set the number of bytes a script is allowed to allocate. If set to - ``'-1'``, no limit is imposed. + ``'-1'``, no limit is imposed. If set to ``'0'``, no change of the + memory limit is attempted and the :file:`php.ini` ``memory_limit`` is + used. - This setting is used while importing/exporting dump files and at some other - places in phpMyAdmin so you definitely don't want to put here a too low + This setting is used while importing/exporting dump files + so you definitely don't want to put here a too low value. It has no effect when PHP is running in safe mode. You can also use any string as in :file:`php.ini`, eg. '16M'. Ensure you @@ -1266,6 +1308,16 @@ Generic settings middle-clicking for pasting the clipboard contents in some Linux distributions (such as Ubuntu) is not supported by all browsers. +.. config:option:: $cfg['DefaultForeignKeyChecks'] + + :type: string + :default: ``'default'`` + + Default value of the checkbox for foreign key checks, to disable/enable + foreign key checks for certain queries. The possible values are ``'default'``, + ``'enable'`` or ``'disable'``. If set to ``'default'``, the value of the + MySQL variable ``FOREIGN_KEY_CHECKS`` is used. + .. config:option:: $cfg['AllowUserDropDatabase'] :type: boolean @@ -1524,9 +1576,9 @@ Navigation panel setup :type: string :default: ``'index.php'`` - Enter :term:`URL` where logo in the - navigation panel will point to. For use especially with self made - theme which changes this. + Enter :term:`URL` where logo in the navigation panel will point to. + For use especially with self made theme which changes this. + For external URLs, you should include URL scheme as well. .. config:option:: $cfg['NavigationLogoLinkWindow'] @@ -1578,16 +1630,17 @@ Navigation panel setup .. config:option:: $cfg['NavigationTreeDefaultTabTable'] :type: string - :default: ``'tbl_structure.php'`` + :default: ``'structure'`` Defines the tab displayed by default when clicking the small icon next - to each table name in the navigation panel. Possible values: + to each table name in the navigation panel. The possible values are the + localized equivalent of: - * ``tbl_structure.php`` - * ``tbl_sql.php`` - * ``tbl_select.php`` - * ``tbl_change.php`` - * ``sql.php`` + * ``structure`` + * ``sql`` + * ``search`` + * ``insert`` + * ``browse`` .. config:option:: $cfg['NavigationTreeDefaultTabTable2'] @@ -1595,14 +1648,15 @@ Navigation panel setup :default: null Defines the tab displayed by default when clicking the second small icon next - to each table name in the navigation panel. Possible values: + to each table name in the navigation panel. The possible values are the + localized equivalent of: * ``(empty)`` - * ``tbl_structure.php`` - * ``tbl_sql.php`` - * ``tbl_select.php`` - * ``tbl_change.php`` - * ``sql.php`` + * ``structure`` + * ``sql`` + * ``search`` + * ``insert`` + * ``browse`` .. config:option:: $cfg['NavigationTreeEnableExpansion'] @@ -1611,6 +1665,42 @@ Navigation panel setup Whether to offer the possibility of tree expansion in the navigation panel. +.. config:option:: $cfg['NavigationTreeShowTables'] + + :type: boolean + :default: true + + Whether to show tables under database in the navigation panel. + +.. config:option:: $cfg['NavigationTreeShowViews'] + + :type: boolean + :default: true + + Whether to show views under database in the navigation panel. + +.. config:option:: $cfg['NavigationTreeShowFunctions'] + + :type: boolean + :default: true + + Whether to show functions under database in the navigation panel. + +.. config:option:: $cfg['NavigationTreeShowProcedures'] + + :type: boolean + :default: true + + Whether to show procedures under database in the navigation panel. + +.. config:option:: $cfg['NavigationTreeShowEvents'] + + :type: boolean + :default: true + + Whether to show events under database in the navigation panel. + + Main panel ---------- @@ -1665,6 +1755,23 @@ Main panel in the configuration file, end users can't be allowed to change their passwords. +.. config:option:: $cfg['ShowGitRevision'] + + :type: boolean + :default: true + + Defines whether to display informations about the current Git revision (if + applicable) on the main panel. + +.. config:option:: $cfg['MysqlMinVersion'] + + :type: array + + Defines the minimum supported MySQL version. The default is chosen + by the phpMyAdmin team; however this directive was asked by a developer + of the Plesk control panel to ease integration with older MySQL servers + (where most of the phpMyAdmin features work). + Database structure ------------------ @@ -1929,40 +2036,43 @@ Tabs display settings .. config:option:: $cfg['DefaultTabServer'] :type: string - :default: ``'index.php'`` + :default: ``'welcome'`` - Defines the tab displayed by default on server view. Possible values: + Defines the tab displayed by default on server view. The possible values + are the localized equivalent of: - * ``main.php`` (recommended for multi-user setups) - * ``server_databases.php``, - * ``server_status.php`` - * ``server_variables.php`` - * ``server_privileges.php`` + * ``welcome`` (recommended for multi-user setups) + * ``databases``, + * ``status`` + * ``variables`` + * ``privileges`` .. config:option:: $cfg['DefaultTabDatabase'] :type: string - :default: ``'db_structure.php'`` + :default: ``'structure'`` - Defines the tab displayed by default on database view. Possible - values: + Defines the tab displayed by default on database view. The possible values + are the localized equivalent of: - * ``db_structure.php`` - * ``db_sql.php`` - * ``db_search.php``. + * ``structure`` + * ``sql`` + * ``search`` + * ``operations`` .. config:option:: $cfg['DefaultTabTable'] :type: string - :default: ``'sql.php'`` + :default: ``'browse'`` - Defines the tab displayed by default on table view. Possible values: + Defines the tab displayed by default on table view. The possible values + are the localized equivalent of: - * ``tbl_structure.php`` - * ``tbl_sql.php`` - * ``tbl_select.php`` - * ``tbl_change.php`` - * ``sql.php`` + * ``structure`` + * ``sql`` + * ``search`` + * ``insert`` + * ``browse`` PDF Options ----------- @@ -2002,8 +2112,8 @@ Languages :default: ``'utf8_general_ci'`` Defines the default connection collation to use, if not user-defined. - See the `MySQL documentation for charsets - `_ + See the `MySQL documentation for charsets + `_ for list of possible values. This setting is ignored when connected to Drizzle server. @@ -2142,7 +2252,7 @@ Web server settings Additional string to include in allowed script and image sources in Content Security Policy header. - This can be useful when you want to include some external javascript files + This can be useful when you want to include some external JavaScript files in :file:`config.footer.inc.php` or :file:`config.header.inc.php`, which would be normally not allowed by Content Security Policy. @@ -2336,6 +2446,16 @@ Design customization put when tables contents are displayed (you may have them displayed at the left side, right side, both sides or nowhere). +.. config:option:: $cfg['RowActionLinksWithoutUnique'] + + :type: boolean + :default: false + + Defines whether to show row links (Edit, Copy, Delete) and checkboxes + for multiple row operations even when the selection does not have a unique key. + Using row actions in the absence of a unique key may result in different/more + rows being affected since there is no guaranteed way to select the exact row(s). + .. config:option:: $cfg['RememberSorting'] :type: boolean @@ -2445,6 +2565,14 @@ Text fields Defines if the whole textarea of the query box will be selected on click. +.. config:option:: $cfg['EnableAutocompleteForTablesAndColumns'] + + :type: boolean + :default: true + + Whether to enable autocomplete for table and column names in any + SQL query box. + SQL query box settings ---------------------- @@ -2783,7 +2911,7 @@ Developer :default: false Enable logging queries and execution times to be - displayed in the bottom of main page (right frame). + displayed in the console's Debug SQL tab. .. config:option:: $cfg['DBG']['demo'] @@ -2792,4 +2920,3 @@ Developer Enable to let server present itself as demo server. This is used for . - diff --git a/choupas/www/admin/phpmy/doc/credits.rst b/choupas/www/admin/phpmy/doc/credits.rst index db0ba8a..ecebcd9 100644 --- a/choupas/www/admin/phpmy/doc/credits.rst +++ b/choupas/www/admin/phpmy/doc/credits.rst @@ -37,7 +37,7 @@ Credits, in chronological order * Loïc Chapeaux - * rewrote and optimized javascript, DHTML and DOM stuff + * rewrote and optimized JavaScript, DHTML and DOM stuff * rewrote the scripts so they fit the :term:`PEAR` coding standards and generate XHTML1.0 and CSS2 compliant codes @@ -402,6 +402,18 @@ Credits, in chronological order * Export with table/column name changes +* Dan Ungureanu (Google Summer of Code 2015) + + * New parser and analyzer + +* Nisarg Jhaveri (Google Summer of Code 2015) + + * Page-related settings + + * SQL debugging integration to the Console + + * Other UI improvements + And also to the following people who have contributed minor changes, enhancements, bugfixes or support for a new language since version 2.1.0: diff --git a/choupas/www/admin/phpmy/doc/developers.rst b/choupas/www/admin/phpmy/doc/developers.rst index ba4cfa8..2b2f586 100644 --- a/choupas/www/admin/phpmy/doc/developers.rst +++ b/choupas/www/admin/phpmy/doc/developers.rst @@ -9,4 +9,4 @@ to make phpMyAdmin a useful tool. You can check out all the possibilities to contribute in the `contribute section on our website -`_. +`_. diff --git a/choupas/www/admin/phpmy/doc/doctrees/config.doctree b/choupas/www/admin/phpmy/doc/doctrees/config.doctree index 2abafd4..59467b2 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/config.doctree and b/choupas/www/admin/phpmy/doc/doctrees/config.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/copyright.doctree b/choupas/www/admin/phpmy/doc/doctrees/copyright.doctree index 71a7fb1..32810bd 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/copyright.doctree and b/choupas/www/admin/phpmy/doc/doctrees/copyright.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/credits.doctree b/choupas/www/admin/phpmy/doc/doctrees/credits.doctree index 95eaf7d..1b7e34a 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/credits.doctree and b/choupas/www/admin/phpmy/doc/doctrees/credits.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/developers.doctree b/choupas/www/admin/phpmy/doc/doctrees/developers.doctree index fe0870a..b99386c 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/developers.doctree and b/choupas/www/admin/phpmy/doc/doctrees/developers.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/environment.pickle b/choupas/www/admin/phpmy/doc/doctrees/environment.pickle index 3c7aaf0..50f9937 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/environment.pickle and b/choupas/www/admin/phpmy/doc/doctrees/environment.pickle differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/faq.doctree b/choupas/www/admin/phpmy/doc/doctrees/faq.doctree index 090bf17..83200a2 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/faq.doctree and b/choupas/www/admin/phpmy/doc/doctrees/faq.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/glossary.doctree b/choupas/www/admin/phpmy/doc/doctrees/glossary.doctree index e437894..8d4ce5b 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/glossary.doctree and b/choupas/www/admin/phpmy/doc/doctrees/glossary.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/import_export.doctree b/choupas/www/admin/phpmy/doc/doctrees/import_export.doctree index e54cc5f..6353247 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/import_export.doctree and b/choupas/www/admin/phpmy/doc/doctrees/import_export.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/index.doctree b/choupas/www/admin/phpmy/doc/doctrees/index.doctree index 0983c18..089a355 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/index.doctree and b/choupas/www/admin/phpmy/doc/doctrees/index.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/intro.doctree b/choupas/www/admin/phpmy/doc/doctrees/intro.doctree index d8a26f4..d4643eb 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/intro.doctree and b/choupas/www/admin/phpmy/doc/doctrees/intro.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/other.doctree b/choupas/www/admin/phpmy/doc/doctrees/other.doctree index 37abbab..9d1132d 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/other.doctree and b/choupas/www/admin/phpmy/doc/doctrees/other.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/privileges.doctree b/choupas/www/admin/phpmy/doc/doctrees/privileges.doctree index f83ea3a..d82cdbc 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/privileges.doctree and b/choupas/www/admin/phpmy/doc/doctrees/privileges.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/require.doctree b/choupas/www/admin/phpmy/doc/doctrees/require.doctree index d6fbcbf..69c2bd2 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/require.doctree and b/choupas/www/admin/phpmy/doc/doctrees/require.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/setup.doctree b/choupas/www/admin/phpmy/doc/doctrees/setup.doctree index 76e1024..7d8fc4e 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/setup.doctree and b/choupas/www/admin/phpmy/doc/doctrees/setup.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/transformations.doctree b/choupas/www/admin/phpmy/doc/doctrees/transformations.doctree index ef8dae3..8aa2cc8 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/transformations.doctree and b/choupas/www/admin/phpmy/doc/doctrees/transformations.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/user.doctree b/choupas/www/admin/phpmy/doc/doctrees/user.doctree index 771d40a..31890ac 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/user.doctree and b/choupas/www/admin/phpmy/doc/doctrees/user.doctree differ diff --git a/choupas/www/admin/phpmy/doc/doctrees/vendors.doctree b/choupas/www/admin/phpmy/doc/doctrees/vendors.doctree index 62d85f8..0913d04 100644 Binary files a/choupas/www/admin/phpmy/doc/doctrees/vendors.doctree and b/choupas/www/admin/phpmy/doc/doctrees/vendors.doctree differ diff --git a/choupas/www/admin/phpmy/doc/faq.rst b/choupas/www/admin/phpmy/doc/faq.rst index 8e8d17f..40d5f6c 100644 --- a/choupas/www/admin/phpmy/doc/faq.rst +++ b/choupas/www/admin/phpmy/doc/faq.rst @@ -4,7 +4,7 @@ FAQ - Frequently Asked Questions ================================ Please have a look at our `Link section -`_ on the official +`_ on the official phpMyAdmin homepage for in-depth coverage of phpMyAdmin's features and or interface. @@ -186,24 +186,16 @@ hosting provider is unwilling to change the settings: .. _faq1_17: -1.17 Which MySQL versions does phpMyAdmin support? --------------------------------------------------- +1.17 Which Database versions does phpMyAdmin support? +----------------------------------------------------- -Since phpMyAdmin 3.0.x, only MySQL 5.0.1 and newer are supported. For -older MySQL versions, you need to use the latest 2.x branch. -phpMyAdmin can connect to your MySQL server using PHP's classic `MySQL -extension `_ as well as the `improved MySQL -extension (MySQLi) `_ that is available in PHP -5.0. The latter one should be used unless you have a good reason not -to do so. When compiling PHP, we strongly recommend that you manually -link the MySQL extension of your choice to a MySQL client library of -at least the same minor version since the one that is bundled with -some PHP distributions is rather old and might cause problems see -:ref:`faq1_17a`. `MariaDB `_ is also supported -(versions 5.1 and 5.2 were tested). +For `MySQL `_, versions 5.5 and newer are supported. +For older MySQL versions, our `Downloads `_ page offers older phpMyAdmin versions +(which may have become unsupported). -.. versionchanged:: 3.5 - Since phpMyAdmin 3.5 `Drizzle `_ is supported. +For `MariaDB `_, versions 5.5 and newer are supported. + +For `Drizzle `_, versions 7.1 and newer are supported. .. _faq1_17a: @@ -393,8 +385,7 @@ MMCache but upgrading MMCache to version 2.3.21 solves the problem. Yes. -Since release 4.1 phpMyAdmin supports only PHP 5.3 and newer. For PHP 5.2 you -can use 4.0.x releases. +Since release 4.5, phpMyAdmin supports only PHP 5.5 and newer. Since release 4.1 phpMyAdmin supports only PHP 5.3 and newer. For PHP 5.2 you can use 4.0.x releases. .. _faq1_32: @@ -902,7 +893,7 @@ just put your own input-elements inside. If you use a custom submit input field, the form will submit itself to the displaying page again, where you can validate the $HTTP\_POST\_VARS in a transformation. For a tutorial on how to effectively use transformations, see our `Link -section `_ on the +section `_ on the official phpMyAdmin-homepage. .. _faq3_9: @@ -1601,8 +1592,8 @@ mimetypes by heart so he/she can enter it at will? .. _faqbookmark: -6.18 Bookmarks: Where can I store bookmarks? Why can't I see any bookmarks below the query box? What is this variable for? --------------------------------------------------------------------------------------------------------------------------- +6.18 Bookmarks: Where can I store bookmarks? Why can't I see any bookmarks below the query box? What are these variables for? +----------------------------------------------------------------------------------------------------------------------------- Any query you have executed can be stored as a bookmark on the page where the results are displayed. You will find a button labeled @@ -1611,39 +1602,38 @@ stored a bookmark, it is related to the database you run the query on. You can now access a bookmark dropdown on each page, the query box appears on for that database. -You can also have, inside the query, a placeholder for a variable. -This is done by inserting into the query a SQL comment between ``/*`` and -``*/``. Inside the comment, the special string ``[VARIABLE]`` is used. -Be aware that the whole query minus the SQL comment must be +You can also have, inside the query, placeholders for variables. +This is done by inserting into the query SQL comments between ``/*`` and +``*/``. Inside the comments, the special strings ``[VARIABLE{variable-number}]`` is used. +Be aware that the whole query minus the SQL comments must be valid by itself, otherwise you won't be able to store it as a bookmark. -When you execute the bookmark, everything typed into the *value* -input box on the query box page will replace the string ``/*[VARIABLE]*/`` in +When you execute the bookmark, everything typed into the *Variables* +input boxes on the query box page will replace the strings ``/*[VARIABLE{variable-number}]*/`` in your stored query. -Also remember, that everything else inside the ``/*[VARIABLE]*/`` string for +Also remember, that everything else inside the ``/*[VARIABLE{variable-number}]*/`` string for your query will remain the way it is, but will be stripped of the ``/**/`` chars. So you can use: .. code-block:: mysql - /*, [VARIABLE] AS myname */ + /*, [VARIABLE1] AS myname */ which will be expanded to .. code-block:: mysql - , VARIABLE as myname + , VARIABLE1 as myname -in your query, where VARIABLE is the string you entered in the input box. If an -empty string is provided, no replacements are made. +in your query, where VARIABLE1 is the string you entered in the Variable 1 input box. A more complex example. Say you have stored this query: .. code-block:: mysql - SELECT Name, Address FROM addresses WHERE 1 /* AND Name LIKE '%[VARIABLE]%' */ + SELECT Name, Address FROM addresses WHERE 1 /* AND Name LIKE '%[VARIABLE1]%' */ Say, you now enter "phpMyAdmin" as the variable for the stored query, the full query will be: @@ -1652,18 +1642,11 @@ query will be: SELECT Name, Address FROM addresses WHERE 1 AND Name LIKE '%phpMyAdmin%' -You can use multiple occurrences of ``/*[VARIABLE]*/`` in a single query -(that is, multiple occurrences of the *same* variable). - **NOTE THE ABSENCE OF SPACES** inside the ``/**/`` construct. Any spaces inserted there will be later also inserted as spaces in your query and may lead to unexpected results especially when using the variable expansion inside of a "LIKE ''" expression. -Your initial query which is going to be stored as a bookmark has to yield at -least one result row so you can store the bookmark. You may have that to work -around using well positioned ``/**/`` comments. - .. _faq6_19: 6.19 How can I create simple LATEX document to include exported table? @@ -1886,7 +1869,7 @@ to display the plot. After the plot is generated, you can use the mousewheel to zoom in and out of the plot. In addition, panning feature is enabled to navigate through the plot. You can zoom-in to a -certail level of detail and use panning to locate your area of +certain level of detail and use panning to locate your area of interest. Clicking on a point opens a dialogue box, displaying field values of the data row represented by the point. You can edit the values if required and click on submit to issue an update query. Basic @@ -1988,7 +1971,7 @@ On startup of the wizard, user gets to select upto what normal form they want to normalize the table structure. Here is an example table which you can use to test all of the three First, Second and -Third Normal From. +Third Normal Form. .. code-block:: mysql @@ -2019,6 +2002,78 @@ Which says, OwnerEmail depends on OwnerLastName and OwnerFirstName. OwnerPhone depends on OwnerLastName and OwnerFirstName. PetType depends on PetBreed. +.. _faq6_38: + +6.38 How can I reassign auto-incremented values? +------------------------------------------------ + +Some users prefer their AUTO_INCREMENT values to be consecutive; this is not +always the case after row deletion. + +Here are the steps to accomplish this. These are manual steps because they +involve a manual verification at one point. + +* Ensure that you have exclusive access to the table to rearrange + +* On your primary key column (i.e. id), remove the AUTO_INCREMENT setting + +* Delete your primary key in Structure > indexes + +* Create a new column future_id as primary key, AUTO_INCREMENT + +* Browse your table and verify that the new increments correspond to what + you're expecting + +* Drop your old id column + +* Rename the future_id column to id + +* Move the new id column via Structure > Move columns + +.. _faq6_39: + +6.39 What is the "Adjust privileges" option when renaming, copying, or moving a database, table, column, or procedure? +---------------------------------------------------------------------------------------------------------------------- + +When renaming/copying/moving a database/table/column/procedure, +MySQL does not adjust the original privileges relating to these objects +on its own. By selecting this option, phpMyAdmin will adjust the privilege +table so that users have the same privileges on the new items. + +For example: A user 'bob'@'localhost' has a 'SELECT' privilege on a +column named 'id'. Now, if this column is renamed to 'id_new', MySQL, +on its own, would **not** adjust the column privileges to the new column name. +phpMyAdmin can make this adjustment for you automatically. + +Notes: + +* While adjusting privileges for a database, the privileges of all + database-related elements (tables, columns and procedures) are also adjusted + to the database's new name. + +* Similarly, while adjusting privileges for a table, the privileges of all + the columns inside the new table are also adjusted. + +* While adjusting privileges, the user performing the operation **must** have the following + privileges: + + * SELECT, INSERT, UPDATE, DELETE privileges on following tables: + `mysql`.`db`, `mysql`.`columns_priv`, `mysql`.`tables_priv`, `mysql`.`procs_priv` + * FLUSH privilege (GLOBAL) + +Thus, if you want to replicate the database/table/column/procedure as it is +while renaming/copying/moving these objects, make sure you have checked this option. + +.. _faq6_40: + +6.40 I see "Bind parameters" checkbox in the "SQL" page. How do I write parameterized SQL queries? +-------------------------------------------------------------------------------------------------- + +From version 4.5, phpMyAdmin allows users to execute parameterized queries in the "SQL" page. +Parameters should be prefixed with a colon(:) and when the "Bind parameters" checkbox is checked +these parameters will be identified and input fields for these parameters will be presented. +Values entered in these field will be substituted in the query before being executed. + .. _faqproject: phpMyAdmin project @@ -2029,9 +2084,7 @@ phpMyAdmin project 7.1 I have found a bug. How do I inform developers? --------------------------------------------------- -Our Bug Tracker is located at under the -Bugs section. But please first discuss your bug with other users: -. +Our issues tracker is located at . .. _faq7_2: @@ -2042,7 +2095,7 @@ Translations are very welcome and all you need to have are the language skills. The easiest way is to use our `online translation service `_. You can check out all the possibilities to translate in the `translate section on -our website `_. +our website `_. .. _faq7_3: @@ -2052,7 +2105,7 @@ our website `_. We welcome every contribution to the development of phpMyAdmin. You can check out all the possibilities to contribute in the `contribute section on our website -`_. +`_. .. seealso:: :ref:`developers` @@ -2066,7 +2119,7 @@ Security 8.1 Where can I get information about the security alerts issued for phpMyAdmin? -------------------------------------------------------------------------------- -Please refer to . +Please refer to . .. _faq8_2: diff --git a/choupas/www/admin/phpmy/doc/html/.buildinfo b/choupas/www/admin/phpmy/doc/html/.buildinfo index acd1d8f..f728762 100644 --- a/choupas/www/admin/phpmy/doc/html/.buildinfo +++ b/choupas/www/admin/phpmy/doc/html/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 930c9071c80251a479a9490542246cda +config: 1567427df4ac465befd57be72c460238 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/choupas/www/admin/phpmy/doc/html/_sources/config.txt b/choupas/www/admin/phpmy/doc/html/_sources/config.txt index 6d8ed51..76d5175 100644 --- a/choupas/www/admin/phpmy/doc/html/_sources/config.txt +++ b/choupas/www/admin/phpmy/doc/html/_sources/config.txt @@ -144,6 +144,17 @@ Basic settings set, and the :config:option:`$cfg['UserprefsDisallow']` directive should contain ``'SendErrorReports'`` in one of its array values. +.. config:option:: $cfg['ConsoleEnterExecutes'] + + :type: boolean + :default: false + + Setting this to ``true`` allows the user to execute queries by pressing Enter + instead of Ctrl+Enter. A new line can be inserted by pressing Shift + Enter. + + The behaviour of the console can be temporarily changed using console's + settings interface. + .. config:option:: $cfg['AllowThirdPartyFraming'] :type: boolean @@ -159,7 +170,7 @@ Server connection settings .. config:option:: $cfg['Servers'] :type: array - :default: one server array with settings listed bellow + :default: one server array with settings listed below Since version 1.4.2, phpMyAdmin supports the administration of multiple MySQL servers. Therefore, a :config:option:`$cfg['Servers']`-array has been @@ -771,6 +782,22 @@ Server connection settings * put the table name in :config:option:`$cfg['Servers'][$i]['central_columns']` (e.g. ``pma__central_columns``) +.. _designer_settings: +.. config:option:: $cfg['Servers'][$i]['designer_settings'] + + :type: string + :default: ``''`` + + Since release 4.5.0 your designer settings can be remembered. + Your choice regarding 'Angular/Direct Links', 'Snap to Grid', 'Toggle Relation Lines', + 'Small/Big All', 'Move Menu' and 'Pin Text' can be remembered persistently. + + To allow the usage of this functionality: + + * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage + * put the table name in :config:option:`$cfg['Servers'][$i]['designer_settings']` (e.g. + ``pma__designer_settings``) + .. _savedsearches: .. config:option:: $cfg['Servers'][$i]['savedsearches'] @@ -785,6 +812,20 @@ Server connection settings * put the table name in :config:option:`$cfg['Servers'][$i]['savedsearches']` (e.g. ``pma__savedsearches``) +.. _export_templates: +.. config:option:: $cfg['Servers'][$i]['export_templates'] + + :type: string + :default: ``''`` + + Since release 4.5.0 you can save and load export templates. + + To allow the usage of this functionality: + + * set up :config:option:`$cfg['Servers'][$i]['pmadb']` and the phpMyAdmin configuration storage + * put the table name in :config:option:`$cfg['Servers'][$i]['export_templates']` (e.g. + ``pma__export_templates``) + .. _tracking: .. config:option:: $cfg['Servers'][$i]['tracking'] @@ -1100,8 +1141,8 @@ Generic settings :type: boolean :default: true - Enables check for latest versions using javascript on main phpMyAdmin - page. + Enables check for latest versions using JavaScript on the main phpMyAdmin + page or by directly accessing :file:`version_check.php`. .. note:: @@ -1149,8 +1190,7 @@ Generic settings :default: 250 The maximum number of table names to be displayed in the main panel's - list (except on the Export page). This limit is also enforced in the - navigation panel when in Light mode. + list (except on the Export page). .. config:option:: $cfg['ShowHint'] @@ -1223,10 +1263,12 @@ Generic settings :default: ``'-1'`` Set the number of bytes a script is allowed to allocate. If set to - ``'-1'``, no limit is imposed. + ``'-1'``, no limit is imposed. If set to ``'0'``, no change of the + memory limit is attempted and the :file:`php.ini` ``memory_limit`` is + used. - This setting is used while importing/exporting dump files and at some other - places in phpMyAdmin so you definitely don't want to put here a too low + This setting is used while importing/exporting dump files + so you definitely don't want to put here a too low value. It has no effect when PHP is running in safe mode. You can also use any string as in :file:`php.ini`, eg. '16M'. Ensure you @@ -1266,6 +1308,16 @@ Generic settings middle-clicking for pasting the clipboard contents in some Linux distributions (such as Ubuntu) is not supported by all browsers. +.. config:option:: $cfg['DefaultForeignKeyChecks'] + + :type: string + :default: ``'default'`` + + Default value of the checkbox for foreign key checks, to disable/enable + foreign key checks for certain queries. The possible values are ``'default'``, + ``'enable'`` or ``'disable'``. If set to ``'default'``, the value of the + MySQL variable ``FOREIGN_KEY_CHECKS`` is used. + .. config:option:: $cfg['AllowUserDropDatabase'] :type: boolean @@ -1524,9 +1576,9 @@ Navigation panel setup :type: string :default: ``'index.php'`` - Enter :term:`URL` where logo in the - navigation panel will point to. For use especially with self made - theme which changes this. + Enter :term:`URL` where logo in the navigation panel will point to. + For use especially with self made theme which changes this. + For external URLs, you should include URL scheme as well. .. config:option:: $cfg['NavigationLogoLinkWindow'] @@ -1578,16 +1630,17 @@ Navigation panel setup .. config:option:: $cfg['NavigationTreeDefaultTabTable'] :type: string - :default: ``'tbl_structure.php'`` + :default: ``'structure'`` Defines the tab displayed by default when clicking the small icon next - to each table name in the navigation panel. Possible values: + to each table name in the navigation panel. The possible values are the + localized equivalent of: - * ``tbl_structure.php`` - * ``tbl_sql.php`` - * ``tbl_select.php`` - * ``tbl_change.php`` - * ``sql.php`` + * ``structure`` + * ``sql`` + * ``search`` + * ``insert`` + * ``browse`` .. config:option:: $cfg['NavigationTreeDefaultTabTable2'] @@ -1595,14 +1648,15 @@ Navigation panel setup :default: null Defines the tab displayed by default when clicking the second small icon next - to each table name in the navigation panel. Possible values: + to each table name in the navigation panel. The possible values are the + localized equivalent of: * ``(empty)`` - * ``tbl_structure.php`` - * ``tbl_sql.php`` - * ``tbl_select.php`` - * ``tbl_change.php`` - * ``sql.php`` + * ``structure`` + * ``sql`` + * ``search`` + * ``insert`` + * ``browse`` .. config:option:: $cfg['NavigationTreeEnableExpansion'] @@ -1611,6 +1665,42 @@ Navigation panel setup Whether to offer the possibility of tree expansion in the navigation panel. +.. config:option:: $cfg['NavigationTreeShowTables'] + + :type: boolean + :default: true + + Whether to show tables under database in the navigation panel. + +.. config:option:: $cfg['NavigationTreeShowViews'] + + :type: boolean + :default: true + + Whether to show views under database in the navigation panel. + +.. config:option:: $cfg['NavigationTreeShowFunctions'] + + :type: boolean + :default: true + + Whether to show functions under database in the navigation panel. + +.. config:option:: $cfg['NavigationTreeShowProcedures'] + + :type: boolean + :default: true + + Whether to show procedures under database in the navigation panel. + +.. config:option:: $cfg['NavigationTreeShowEvents'] + + :type: boolean + :default: true + + Whether to show events under database in the navigation panel. + + Main panel ---------- @@ -1665,6 +1755,23 @@ Main panel in the configuration file, end users can't be allowed to change their passwords. +.. config:option:: $cfg['ShowGitRevision'] + + :type: boolean + :default: true + + Defines whether to display informations about the current Git revision (if + applicable) on the main panel. + +.. config:option:: $cfg['MysqlMinVersion'] + + :type: array + + Defines the minimum supported MySQL version. The default is chosen + by the phpMyAdmin team; however this directive was asked by a developer + of the Plesk control panel to ease integration with older MySQL servers + (where most of the phpMyAdmin features work). + Database structure ------------------ @@ -1929,40 +2036,43 @@ Tabs display settings .. config:option:: $cfg['DefaultTabServer'] :type: string - :default: ``'index.php'`` + :default: ``'welcome'`` - Defines the tab displayed by default on server view. Possible values: + Defines the tab displayed by default on server view. The possible values + are the localized equivalent of: - * ``main.php`` (recommended for multi-user setups) - * ``server_databases.php``, - * ``server_status.php`` - * ``server_variables.php`` - * ``server_privileges.php`` + * ``welcome`` (recommended for multi-user setups) + * ``databases``, + * ``status`` + * ``variables`` + * ``privileges`` .. config:option:: $cfg['DefaultTabDatabase'] :type: string - :default: ``'db_structure.php'`` + :default: ``'structure'`` - Defines the tab displayed by default on database view. Possible - values: + Defines the tab displayed by default on database view. The possible values + are the localized equivalent of: - * ``db_structure.php`` - * ``db_sql.php`` - * ``db_search.php``. + * ``structure`` + * ``sql`` + * ``search`` + * ``operations`` .. config:option:: $cfg['DefaultTabTable'] :type: string - :default: ``'sql.php'`` + :default: ``'browse'`` - Defines the tab displayed by default on table view. Possible values: + Defines the tab displayed by default on table view. The possible values + are the localized equivalent of: - * ``tbl_structure.php`` - * ``tbl_sql.php`` - * ``tbl_select.php`` - * ``tbl_change.php`` - * ``sql.php`` + * ``structure`` + * ``sql`` + * ``search`` + * ``insert`` + * ``browse`` PDF Options ----------- @@ -2002,8 +2112,8 @@ Languages :default: ``'utf8_general_ci'`` Defines the default connection collation to use, if not user-defined. - See the `MySQL documentation for charsets - `_ + See the `MySQL documentation for charsets + `_ for list of possible values. This setting is ignored when connected to Drizzle server. @@ -2142,7 +2252,7 @@ Web server settings Additional string to include in allowed script and image sources in Content Security Policy header. - This can be useful when you want to include some external javascript files + This can be useful when you want to include some external JavaScript files in :file:`config.footer.inc.php` or :file:`config.header.inc.php`, which would be normally not allowed by Content Security Policy. @@ -2336,6 +2446,16 @@ Design customization put when tables contents are displayed (you may have them displayed at the left side, right side, both sides or nowhere). +.. config:option:: $cfg['RowActionLinksWithoutUnique'] + + :type: boolean + :default: false + + Defines whether to show row links (Edit, Copy, Delete) and checkboxes + for multiple row operations even when the selection does not have a unique key. + Using row actions in the absence of a unique key may result in different/more + rows being affected since there is no guaranteed way to select the exact row(s). + .. config:option:: $cfg['RememberSorting'] :type: boolean @@ -2445,6 +2565,14 @@ Text fields Defines if the whole textarea of the query box will be selected on click. +.. config:option:: $cfg['EnableAutocompleteForTablesAndColumns'] + + :type: boolean + :default: true + + Whether to enable autocomplete for table and column names in any + SQL query box. + SQL query box settings ---------------------- @@ -2783,7 +2911,7 @@ Developer :default: false Enable logging queries and execution times to be - displayed in the bottom of main page (right frame). + displayed in the console's Debug SQL tab. .. config:option:: $cfg['DBG']['demo'] @@ -2792,4 +2920,3 @@ Developer Enable to let server present itself as demo server. This is used for . - diff --git a/choupas/www/admin/phpmy/doc/html/_sources/credits.txt b/choupas/www/admin/phpmy/doc/html/_sources/credits.txt index db0ba8a..ecebcd9 100644 --- a/choupas/www/admin/phpmy/doc/html/_sources/credits.txt +++ b/choupas/www/admin/phpmy/doc/html/_sources/credits.txt @@ -37,7 +37,7 @@ Credits, in chronological order * Loïc Chapeaux - * rewrote and optimized javascript, DHTML and DOM stuff + * rewrote and optimized JavaScript, DHTML and DOM stuff * rewrote the scripts so they fit the :term:`PEAR` coding standards and generate XHTML1.0 and CSS2 compliant codes @@ -402,6 +402,18 @@ Credits, in chronological order * Export with table/column name changes +* Dan Ungureanu (Google Summer of Code 2015) + + * New parser and analyzer + +* Nisarg Jhaveri (Google Summer of Code 2015) + + * Page-related settings + + * SQL debugging integration to the Console + + * Other UI improvements + And also to the following people who have contributed minor changes, enhancements, bugfixes or support for a new language since version 2.1.0: diff --git a/choupas/www/admin/phpmy/doc/html/_sources/developers.txt b/choupas/www/admin/phpmy/doc/html/_sources/developers.txt index ba4cfa8..2b2f586 100644 --- a/choupas/www/admin/phpmy/doc/html/_sources/developers.txt +++ b/choupas/www/admin/phpmy/doc/html/_sources/developers.txt @@ -9,4 +9,4 @@ to make phpMyAdmin a useful tool. You can check out all the possibilities to contribute in the `contribute section on our website -`_. +`_. diff --git a/choupas/www/admin/phpmy/doc/html/_sources/faq.txt b/choupas/www/admin/phpmy/doc/html/_sources/faq.txt index 8e8d17f..40d5f6c 100644 --- a/choupas/www/admin/phpmy/doc/html/_sources/faq.txt +++ b/choupas/www/admin/phpmy/doc/html/_sources/faq.txt @@ -4,7 +4,7 @@ FAQ - Frequently Asked Questions ================================ Please have a look at our `Link section -`_ on the official +`_ on the official phpMyAdmin homepage for in-depth coverage of phpMyAdmin's features and or interface. @@ -186,24 +186,16 @@ hosting provider is unwilling to change the settings: .. _faq1_17: -1.17 Which MySQL versions does phpMyAdmin support? --------------------------------------------------- +1.17 Which Database versions does phpMyAdmin support? +----------------------------------------------------- -Since phpMyAdmin 3.0.x, only MySQL 5.0.1 and newer are supported. For -older MySQL versions, you need to use the latest 2.x branch. -phpMyAdmin can connect to your MySQL server using PHP's classic `MySQL -extension `_ as well as the `improved MySQL -extension (MySQLi) `_ that is available in PHP -5.0. The latter one should be used unless you have a good reason not -to do so. When compiling PHP, we strongly recommend that you manually -link the MySQL extension of your choice to a MySQL client library of -at least the same minor version since the one that is bundled with -some PHP distributions is rather old and might cause problems see -:ref:`faq1_17a`. `MariaDB `_ is also supported -(versions 5.1 and 5.2 were tested). +For `MySQL `_, versions 5.5 and newer are supported. +For older MySQL versions, our `Downloads `_ page offers older phpMyAdmin versions +(which may have become unsupported). -.. versionchanged:: 3.5 - Since phpMyAdmin 3.5 `Drizzle `_ is supported. +For `MariaDB `_, versions 5.5 and newer are supported. + +For `Drizzle `_, versions 7.1 and newer are supported. .. _faq1_17a: @@ -393,8 +385,7 @@ MMCache but upgrading MMCache to version 2.3.21 solves the problem. Yes. -Since release 4.1 phpMyAdmin supports only PHP 5.3 and newer. For PHP 5.2 you -can use 4.0.x releases. +Since release 4.5, phpMyAdmin supports only PHP 5.5 and newer. Since release 4.1 phpMyAdmin supports only PHP 5.3 and newer. For PHP 5.2 you can use 4.0.x releases. .. _faq1_32: @@ -902,7 +893,7 @@ just put your own input-elements inside. If you use a custom submit input field, the form will submit itself to the displaying page again, where you can validate the $HTTP\_POST\_VARS in a transformation. For a tutorial on how to effectively use transformations, see our `Link -section `_ on the +section `_ on the official phpMyAdmin-homepage. .. _faq3_9: @@ -1601,8 +1592,8 @@ mimetypes by heart so he/she can enter it at will? .. _faqbookmark: -6.18 Bookmarks: Where can I store bookmarks? Why can't I see any bookmarks below the query box? What is this variable for? --------------------------------------------------------------------------------------------------------------------------- +6.18 Bookmarks: Where can I store bookmarks? Why can't I see any bookmarks below the query box? What are these variables for? +----------------------------------------------------------------------------------------------------------------------------- Any query you have executed can be stored as a bookmark on the page where the results are displayed. You will find a button labeled @@ -1611,39 +1602,38 @@ stored a bookmark, it is related to the database you run the query on. You can now access a bookmark dropdown on each page, the query box appears on for that database. -You can also have, inside the query, a placeholder for a variable. -This is done by inserting into the query a SQL comment between ``/*`` and -``*/``. Inside the comment, the special string ``[VARIABLE]`` is used. -Be aware that the whole query minus the SQL comment must be +You can also have, inside the query, placeholders for variables. +This is done by inserting into the query SQL comments between ``/*`` and +``*/``. Inside the comments, the special strings ``[VARIABLE{variable-number}]`` is used. +Be aware that the whole query minus the SQL comments must be valid by itself, otherwise you won't be able to store it as a bookmark. -When you execute the bookmark, everything typed into the *value* -input box on the query box page will replace the string ``/*[VARIABLE]*/`` in +When you execute the bookmark, everything typed into the *Variables* +input boxes on the query box page will replace the strings ``/*[VARIABLE{variable-number}]*/`` in your stored query. -Also remember, that everything else inside the ``/*[VARIABLE]*/`` string for +Also remember, that everything else inside the ``/*[VARIABLE{variable-number}]*/`` string for your query will remain the way it is, but will be stripped of the ``/**/`` chars. So you can use: .. code-block:: mysql - /*, [VARIABLE] AS myname */ + /*, [VARIABLE1] AS myname */ which will be expanded to .. code-block:: mysql - , VARIABLE as myname + , VARIABLE1 as myname -in your query, where VARIABLE is the string you entered in the input box. If an -empty string is provided, no replacements are made. +in your query, where VARIABLE1 is the string you entered in the Variable 1 input box. A more complex example. Say you have stored this query: .. code-block:: mysql - SELECT Name, Address FROM addresses WHERE 1 /* AND Name LIKE '%[VARIABLE]%' */ + SELECT Name, Address FROM addresses WHERE 1 /* AND Name LIKE '%[VARIABLE1]%' */ Say, you now enter "phpMyAdmin" as the variable for the stored query, the full query will be: @@ -1652,18 +1642,11 @@ query will be: SELECT Name, Address FROM addresses WHERE 1 AND Name LIKE '%phpMyAdmin%' -You can use multiple occurrences of ``/*[VARIABLE]*/`` in a single query -(that is, multiple occurrences of the *same* variable). - **NOTE THE ABSENCE OF SPACES** inside the ``/**/`` construct. Any spaces inserted there will be later also inserted as spaces in your query and may lead to unexpected results especially when using the variable expansion inside of a "LIKE ''" expression. -Your initial query which is going to be stored as a bookmark has to yield at -least one result row so you can store the bookmark. You may have that to work -around using well positioned ``/**/`` comments. - .. _faq6_19: 6.19 How can I create simple LATEX document to include exported table? @@ -1886,7 +1869,7 @@ to display the plot. After the plot is generated, you can use the mousewheel to zoom in and out of the plot. In addition, panning feature is enabled to navigate through the plot. You can zoom-in to a -certail level of detail and use panning to locate your area of +certain level of detail and use panning to locate your area of interest. Clicking on a point opens a dialogue box, displaying field values of the data row represented by the point. You can edit the values if required and click on submit to issue an update query. Basic @@ -1988,7 +1971,7 @@ On startup of the wizard, user gets to select upto what normal form they want to normalize the table structure. Here is an example table which you can use to test all of the three First, Second and -Third Normal From. +Third Normal Form. .. code-block:: mysql @@ -2019,6 +2002,78 @@ Which says, OwnerEmail depends on OwnerLastName and OwnerFirstName. OwnerPhone depends on OwnerLastName and OwnerFirstName. PetType depends on PetBreed. +.. _faq6_38: + +6.38 How can I reassign auto-incremented values? +------------------------------------------------ + +Some users prefer their AUTO_INCREMENT values to be consecutive; this is not +always the case after row deletion. + +Here are the steps to accomplish this. These are manual steps because they +involve a manual verification at one point. + +* Ensure that you have exclusive access to the table to rearrange + +* On your primary key column (i.e. id), remove the AUTO_INCREMENT setting + +* Delete your primary key in Structure > indexes + +* Create a new column future_id as primary key, AUTO_INCREMENT + +* Browse your table and verify that the new increments correspond to what + you're expecting + +* Drop your old id column + +* Rename the future_id column to id + +* Move the new id column via Structure > Move columns + +.. _faq6_39: + +6.39 What is the "Adjust privileges" option when renaming, copying, or moving a database, table, column, or procedure? +---------------------------------------------------------------------------------------------------------------------- + +When renaming/copying/moving a database/table/column/procedure, +MySQL does not adjust the original privileges relating to these objects +on its own. By selecting this option, phpMyAdmin will adjust the privilege +table so that users have the same privileges on the new items. + +For example: A user 'bob'@'localhost' has a 'SELECT' privilege on a +column named 'id'. Now, if this column is renamed to 'id_new', MySQL, +on its own, would **not** adjust the column privileges to the new column name. +phpMyAdmin can make this adjustment for you automatically. + +Notes: + +* While adjusting privileges for a database, the privileges of all + database-related elements (tables, columns and procedures) are also adjusted + to the database's new name. + +* Similarly, while adjusting privileges for a table, the privileges of all + the columns inside the new table are also adjusted. + +* While adjusting privileges, the user performing the operation **must** have the following + privileges: + + * SELECT, INSERT, UPDATE, DELETE privileges on following tables: + `mysql`.`db`, `mysql`.`columns_priv`, `mysql`.`tables_priv`, `mysql`.`procs_priv` + * FLUSH privilege (GLOBAL) + +Thus, if you want to replicate the database/table/column/procedure as it is +while renaming/copying/moving these objects, make sure you have checked this option. + +.. _faq6_40: + +6.40 I see "Bind parameters" checkbox in the "SQL" page. How do I write parameterized SQL queries? +-------------------------------------------------------------------------------------------------- + +From version 4.5, phpMyAdmin allows users to execute parameterized queries in the "SQL" page. +Parameters should be prefixed with a colon(:) and when the "Bind parameters" checkbox is checked +these parameters will be identified and input fields for these parameters will be presented. +Values entered in these field will be substituted in the query before being executed. + .. _faqproject: phpMyAdmin project @@ -2029,9 +2084,7 @@ phpMyAdmin project 7.1 I have found a bug. How do I inform developers? --------------------------------------------------- -Our Bug Tracker is located at under the -Bugs section. But please first discuss your bug with other users: -. +Our issues tracker is located at . .. _faq7_2: @@ -2042,7 +2095,7 @@ Translations are very welcome and all you need to have are the language skills. The easiest way is to use our `online translation service `_. You can check out all the possibilities to translate in the `translate section on -our website `_. +our website `_. .. _faq7_3: @@ -2052,7 +2105,7 @@ our website `_. We welcome every contribution to the development of phpMyAdmin. You can check out all the possibilities to contribute in the `contribute section on our website -`_. +`_. .. seealso:: :ref:`developers` @@ -2066,7 +2119,7 @@ Security 8.1 Where can I get information about the security alerts issued for phpMyAdmin? -------------------------------------------------------------------------------- -Please refer to . +Please refer to . .. _faq8_2: diff --git a/choupas/www/admin/phpmy/doc/html/_sources/intro.txt b/choupas/www/admin/phpmy/doc/html/_sources/intro.txt index cace64e..b8c348d 100644 --- a/choupas/www/admin/phpmy/doc/html/_sources/intro.txt +++ b/choupas/www/admin/phpmy/doc/html/_sources/intro.txt @@ -44,8 +44,8 @@ Currently phpMyAdmin can: * support mysqli, the improved MySQL extension see :ref:`faq1_17` * create, edit, call, export and drop stored procedures and functions * create, edit, export and drop events and triggers -* communicate in `62 different languages - `_ +* communicate in `80 different languages + `_ A word about users diff --git a/choupas/www/admin/phpmy/doc/html/_sources/other.txt b/choupas/www/admin/phpmy/doc/html/_sources/other.txt index aa95451..bb6de86 100644 --- a/choupas/www/admin/phpmy/doc/html/_sources/other.txt +++ b/choupas/www/admin/phpmy/doc/html/_sources/other.txt @@ -8,7 +8,7 @@ The definitive guide to using phpMyAdmin is the book Mastering phpMyAdmin for Effective MySQL Management by Marc Delisle. You can get information on that book and other officially endorsed `books at the phpMyAdmin site`_. -.. _books at the phpMyAdmin site: http://www.phpmyadmin.net/home_page/docs.php?books +.. _books at the phpMyAdmin site: https://www.phpmyadmin.net/docs/ Tutorials --------- diff --git a/choupas/www/admin/phpmy/doc/html/_sources/require.txt b/choupas/www/admin/phpmy/doc/html/_sources/require.txt index bb54a1e..4906083 100644 --- a/choupas/www/admin/phpmy/doc/html/_sources/require.txt +++ b/choupas/www/admin/phpmy/doc/html/_sources/require.txt @@ -6,13 +6,13 @@ Requirements Web server ---------- -Since, phpMyAdmin's interface is based entirely in your browser, you'll need a -web server (such as Apache, :term:`IIS`) to install phpMyAdmin's files into. +Since phpMyAdmin's interface is based entirely in your browser, you'll need a +web server (such as Apache, nginx, :term:`IIS`) to install phpMyAdmin's files into. PHP --- -* You need PHP 5.3.0 or newer, with ``session`` support, the Standard PHP Library +* You need PHP 5.5.0 or newer, with ``session`` support, the Standard PHP Library (SPL) extension, JSON support, and the ``mbstring`` extension. * To support uploading of ZIP files, you need the PHP ``zip`` extension. @@ -20,8 +20,8 @@ PHP * You need GD2 support in PHP to display inline thumbnails of JPEGs ("image/jpeg: inline") with their original aspect ratio. -* When using the cookie authentication (the default), the `mcrypt - `_ extension is strongly suggested. +* When using the cookie authentication (the default), the `openssl + `_ extension is strongly suggested. * To support upload progress bars, see :ref:`faq2_9`. @@ -49,6 +49,6 @@ phpMyAdmin supports MySQL-compatible databases. Web browser ----------- -To access phpMyAdmin you need a web browser with cookies and javascript +To access phpMyAdmin you need a web browser with cookies and JavaScript enabled. diff --git a/choupas/www/admin/phpmy/doc/html/_sources/setup.txt b/choupas/www/admin/phpmy/doc/html/_sources/setup.txt index 71d4135..a6912cb 100644 --- a/choupas/www/admin/phpmy/doc/html/_sources/setup.txt +++ b/choupas/www/admin/phpmy/doc/html/_sources/setup.txt @@ -96,6 +96,7 @@ Quick Install Downloads page. Some kits contain only the English messages, others contain all languages. We'll assume you chose a kit whose name looks like ``phpMyAdmin-x.x.x -all-languages.tar.gz``. +#. Ensure you have downloaded a genuine archive, see :ref:`verify`. #. Untar or unzip the distribution (be sure to unzip the subdirectories): ``tar -xzvf phpMyAdmin_x.x.x-all-languages.tar.gz`` in your webserver's document root. If you don't have direct access to your @@ -245,6 +246,97 @@ options which the setup script does not provide. webserver or limit access by web server configuration, see :ref:`faq1_42`. + +.. _verify: + +Verifying phpMyAdmin releases ++++++++++++++++++++++++++++++ + +Since July 2015 all phpMyAdmin releases are cryptographically signed by the +releasing developer, who is currently Marc Delisle. His key id is +0x81AF644A, his PGP fingerprint is: + +.. code-block:: console + + 436F F188 4B1A 0C3F DCBF 0D79 FEFC 65D1 81AF 644A + +and you can get more identification information from `https://keybase.io/lem9 `_. You should verify that the signature matches +the archive you have downloaded. This way you can be sure that you are using +the same code that was released. + +Each archive is accompanied with ``.asc`` files which contains the PGP signature +for it. Once you have both of them in the same folder, you can verify the signature: + +.. code-block:: console + + $ gpg --verify phpMyAdmin-4.4.9-all-languages.zip.asc + gpg: Signature made Fri Jun 12 13:09:58 2015 CEST using RSA key ID 81AF644A + gpg: Can't check signature: No public key + +As you can see gpg complains that it does not know the public key. At this +point you should do one of the following steps: + +* Download the keyring from `our download server `_, then import it with: + +.. code-block:: console + + $ gpg --import phpmyadmin.keyring + +* Download and import the key from one of the key servers: + +.. code-block:: console + + $ gpg --keyserver hkp://pgp.mit.edu --recv-keys 81AF644A + gpg: requesting key 81AF644A from hkp server pgp.mit.edu + gpg: key 81AF644A: public key "Marc Delisle " imported + gpg: no ultimately trusted keys found + gpg: Total number processed: 1 + gpg: imported: 1 (RSA: 1) + +This will improve the situation a bit - at this point you can verify that the +signature from the given key is correct but you still can not trust the name used +in the key: + +.. code-block:: console + + $ gpg --verify phpMyAdmin-4.4.9-all-languages.zip.asc + gpg: Signature made Fri Jun 12 13:09:58 2015 CEST using RSA key ID 81AF644A + gpg: Good signature from "Marc Delisle " [unknown] + gpg: WARNING: This key is not certified with a trusted signature! + gpg: There is no indication that the signature belongs to the owner. + Primary key fingerprint: 436F F188 4B1A 0C3F DCBF 0D79 FEFC 65D1 81AF 644A + +The problem here is that anybody could issue the key with this name. You need to +ensure that the key is actually owned by the mentioned person. The GNU Privacy +Handbook covers this topic in the chapter `Validating other keys on your public +keyring`_. The most reliable method is to meet the developer in person and +exchange key fingerprints, however you can also rely on the web of trust. This way +you can trust the key transitively though signatures of others, who have met +the developer in person. For example you can see how `Marc's key links to +Linus's key`_. + +Once the key is trusted, the warning will not occur: + +.. code-block:: console + + $ gpg --verify phpMyAdmin-4.4.9-all-languages.zip.asc + gpg: Signature made Fri Jun 12 13:09:58 2015 CEST using RSA key ID 81AF644A + gpg: Good signature from "Marc Delisle " [full] + +Should the signature be invalid (the archive has been changed), you would get a +clear error regardless of the fact that the key is trusted or not: + +.. code-block:: console + + $ gpg --verify phpMyAdmin-4.4.9-all-languages.zip.asc + gpg: Signature made Fri Jun 12 13:09:58 2015 CEST using RSA key ID 81AF644A + gpg: BAD signature from "Marc Delisle " [unknown] + +.. _Validating other keys on your public keyring: https://www.gnupg.org/gph/en/manual.html#AEN335 + +.. _Marc's key links to Linus's key: http://pgp.cs.uu.nl/mk_path.cgi?FROM=00411886&TO=81AF644A + + .. index:: single: Configuration storage single: phpMyAdmin configuration storage @@ -351,6 +443,9 @@ newer (<= 4.2.x) and if you use the phpMyAdmin configuration storage, you should run the :term:`SQL` script found in :file:`sql/upgrade_column_info_4_3_0+.sql`. +Do not forget to clear the browser cache and to empty the old session by +logging out and logging in again. + .. index:: Authentication mode .. _authentication_modes: @@ -511,7 +606,7 @@ each user with their Swekey Id. It is important to place this file outside of your web server's document root (in the example, it is located in ``/etc``). Feel free to use it with your own users' information. If you want to purchase a Swekey please visit -`http://phpmyadmin.net/auth\_key `_ +`https://www.phpmyadmin.net/auth\_key/ `_ since this link provides funding for phpMyAdmin. A self documented sample file is provided in the @@ -537,7 +632,23 @@ are always ways to make your installation more secure: phpMyAdmin, you can use :config:option:`$cfg['Servers'][$i]['AllowDeny']['rules']` to limit them. * Consider hiding phpMyAdmin behind an authentication proxy, so that users need to authenticate prior to providing MySQL credentials - to phpMyAdmin. + to phpMyAdmin. You can achieve this by configuring your web server to request + HTTP authentication. For example in Apache this can be done with: + + .. code-block:: apache + + AuthType Basic + AuthName "Restricted Access" + AuthUserFile /usr/share/phpmyadmin/passwd + Require valid-user + + Once you have changed the configuration, you need to create a list of users which + can authenticate. This can be done using the :program:`htpasswd` utility: + + .. code-block:: sh + + htpasswd -c /usr/share/phpmyadmin/passwd username + * If you are afraid of automated attacks, enabling Captcha by :config:option:`$cfg['CaptchaLoginPublicKey']` and :config:option:`$cfg['CaptchaLoginPrivateKey']` might be an option. diff --git a/choupas/www/admin/phpmy/doc/html/config.html b/choupas/www/admin/phpmy/doc/html/config.html index cb1109d..8295b34 100644 --- a/choupas/www/admin/phpmy/doc/html/config.html +++ b/choupas/www/admin/phpmy/doc/html/config.html @@ -6,7 +6,7 @@ - Configuration — phpMyAdmin 4.4.9 documentation + Configuration — phpMyAdmin 4.5.4.1 documentation @@ -14,7 +14,7 @@ - + @@ -41,7 +41,7 @@
  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -250,6 +250,25 @@ set, and the 'SendErrorReports' in one of its array values.

    +
    +
    +$cfg['ConsoleEnterExecutes']
    +
    +++ + + + + + +
    Type:boolean
    Default value:false
    +

    Setting this to true allows the user to execute queries by pressing Enter +instead of Ctrl+Enter. A new line can be inserted by pressing Shift + Enter.

    +

    The behaviour of the console can be temporarily changed using console’s +settings interface.

    +
    +
    $cfg['AllowThirdPartyFraming']
    @@ -280,7 +299,7 @@ clickjacking.

    Type:array -Default value:one server array with settings listed bellow +Default value:one server array with settings listed below @@ -1214,6 +1233,30 @@ over again or from writing different names for similar column.

    +
    +
    +$cfg['Servers'][$i]['designer_settings']
    +
    +++ + + + + + +
    Type:string
    Default value:''
    +

    Since release 4.5.0 your designer settings can be remembered. +Your choice regarding ‘Angular/Direct Links’, ‘Snap to Grid’, ‘Toggle Relation Lines’, +‘Small/Big All’, ‘Move Menu’ and ‘Pin Text’ can be remembered persistently.

    +

    To allow the usage of this functionality:

    + +
    +
    $cfg['Servers'][$i]['savedsearches']
    @@ -1230,12 +1273,34 @@ over again or from writing different names for similar column.

    Since release 4.2.0 you can save and load query-by-example searches from the Database > Query panel.

    To allow the usage of this functionality:

    +
    +
    +$cfg['Servers'][$i]['export_templates']
    +
    +++ + + + + + +
    Type:string
    Default value:''
    +

    Since release 4.5.0 you can save and load export templates.

    +

    To allow the usage of this functionality:

    + +
    +
    $cfg['Servers'][$i]['tracking']
    @@ -1269,8 +1334,8 @@ you enter a list of names separated by ‘,’. In addition you can expo (filtered) report to a file or to a temporary database.

    To allow the usage of this functionality:

    @@ -1383,13 +1448,13 @@ line to the log when creating a database.

    Since release 3.4.x phpMyAdmin allows users to set most preferences by themselves and store them in the database.

    If you don’t allow for storing preferences in -$cfg['Servers'][$i]['pmadb'], users can still personalize +$cfg['Servers'][$i]['pmadb'], users can still personalize phpMyAdmin, but settings will be saved in browser’s local storage, or, it is is unavailable, until the end of session.

    To allow the usage of this functionality:

    @@ -1407,11 +1472,11 @@ is is unavailable, until the end of session.

    Maximum number of rows saved in -$cfg['Servers'][$i]['table_uiprefs'] table.

    +$cfg['Servers'][$i]['table_uiprefs'] table.

    When tables are dropped or renamed, -$cfg['Servers'][$i]['table_uiprefs'] may contain invalid data +$cfg['Servers'][$i]['table_uiprefs'] may contain invalid data (referring to tables which no longer exist). We only keep this number of newest -rows in $cfg['Servers'][$i]['table_uiprefs'] and automatically +rows in $cfg['Servers'][$i]['table_uiprefs'] and automatically delete older rows.

    @@ -1449,7 +1514,7 @@ time zone you want to use in phpMyAdmin.

    Whether to allow root access. This is just a shortcut for the -$cfg['Servers'][$i]['AllowDeny']['rules'] below.

    +$cfg['Servers'][$i]['AllowDeny']['rules'] below.

    @@ -1503,7 +1568,7 @@ listed in the allow rules, and not listed in the deny rules. T is the most secure means of using Allow/Deny rules, and was available in Apache by specifying allow and deny rules without setting any order.

    -

    Please also see $cfg['TrustedProxies'] for +

    Please also see $cfg['TrustedProxies'] for detecting IP address behind proxies.

    @@ -1636,8 +1701,6 @@ empty). See examples/signon- return $credentials; } - -?>
    @@ -1662,7 +1725,7 @@ empty). See examples/signon-

    Name of session which will be used for signon authentication method. You should use something different than phpMyAdmin, because this is session which phpMyAdmin uses internally. Takes effect only if -$cfg['Servers'][$i]['SignonScript'] is not configured.

    +$cfg['Servers'][$i]['SignonScript'] is not configured.

    See also

    Signon authentication mode

    @@ -1726,11 +1789,11 @@ absolute including protocol.

    If you have more than one server configured, you can set -$cfg['ServerDefault'] to any one of them to autoconnect to that +$cfg['ServerDefault'] to any one of them to autoconnect to that server when phpMyAdmin is started, or set it to 0 to be given a list of servers without logging in.

    If you have only one server configured, -$cfg['ServerDefault'] MUST be set to that server.

    +$cfg['ServerDefault'] MUST be set to that server.

    @@ -1746,8 +1809,8 @@ of servers without logging in.

    -

    Enables check for latest versions using javascript on main phpMyAdmin -page.

    +

    Enables check for latest versions using JavaScript on the main phpMyAdmin +page or by directly accessing version_check.php.

    Note

    This setting can be adjusted by your vendor.

    @@ -1840,8 +1903,7 @@ database list.

    The maximum number of table names to be displayed in the main panel’s -list (except on the Export page). This limit is also enforced in the -navigation panel when in Light mode.

    +list (except on the Export page).

    @@ -1920,7 +1982,7 @@ proxy setup, setting this to true

    Note

    In some setups (like separate SSL proxy or load balancer) you might -have to set $cfg['PmaAbsoluteUri'] for correct +have to set $cfg['PmaAbsoluteUri'] for correct redirection.

    @@ -1974,9 +2036,11 @@ no effect when PHP is running in safe mode.

    Set the number of bytes a script is allowed to allocate. If set to -'-1', no limit is imposed.

    -

    This setting is used while importing/exporting dump files and at some other -places in phpMyAdmin so you definitely don’t want to put here a too low +'-1', no limit is imposed. If set to '0', no change of the +memory limit is attempted and the php.ini memory_limit is +used.

    +

    This setting is used while importing/exporting dump files +so you definitely don’t want to put here a too low value. It has no effect when PHP is running in safe mode.

    You can also use any string as in php.ini, eg. ‘16M’. Ensure you don’t omit the suffix (16 means 16 bytes!)

    @@ -2052,6 +2116,25 @@ middle-clicking for pasting the clipboard contents in some Linux distributions (such as Ubuntu) is not supported by all browsers.

    +
    +
    +$cfg['DefaultForeignKeyChecks']
    +
    +++ + + + + + +
    Type:string
    Default value:'default'
    +

    Default value of the checkbox for foreign key checks, to disable/enable +foreign key checks for certain queries. The possible values are 'default', +'enable' or 'disable'. If set to 'default', the value of the +MySQL variable FOREIGN_KEY_CHECKS is used.

    +
    +
    $cfg['AllowUserDropDatabase']
    @@ -2178,7 +2261,7 @@ cookie.

    Define whether the previous login should be recalled or not in cookie authentication mode.

    This is automatically disabled if you do not have -configured $cfg['blowfish_secret'].

    +configured $cfg['blowfish_secret'].

    @@ -2198,7 +2281,7 @@ configured session.gc_maxlifetime might limit session validity and if the session is lost, the login cookie is also invalidated. So it is a good idea to set session.gc_maxlifetime at least to the same value of -$cfg['LoginCookieValidity'].

    +$cfg['LoginCookieValidity'].

    @@ -2256,7 +2339,7 @@ authentication.

    Note

    Please use this carefully, as this may allow users access to MySQL servers behind the firewall where your HTTP server is placed. -See also $cfg['ArbitraryServerRegexp'].

    +See also $cfg['ArbitraryServerRegexp'].

    @@ -2274,7 +2357,7 @@ See also

    Restricts the MySQL servers to which the user can log in when -$cfg['AllowArbitraryServer'] is enabled by +$cfg['AllowArbitraryServer'] is enabled by matching the IP or the hostname of the MySQL server to the given regular expression. The regular expression must be enclosed with a delimiter character.

    @@ -2383,7 +2466,7 @@ page of the navigation tree.

    Defines whether to group the databases based on a common prefix -in their name $cfg['NavigationTreeDbSeparator'].

    +in their name $cfg['NavigationTreeDbSeparator'].

    @@ -2477,7 +2560,7 @@ create phpMyAdmin configuration storage in the current database or use the existing one, if already present.

    This setting has no effect if the phpMyAdmin configuration storage database is properly created and the related configuration directives (such as -$cfg['Servers'][$i]['pmadb'] and so on) are configured.

    +$cfg['Servers'][$i]['pmadb'] and so on) are configured.

    @@ -2527,9 +2610,9 @@ the navigation panel.

    -

    Enter URL where logo in the -navigation panel will point to. For use especially with self made -theme which changes this.

    +

    Enter URL where logo in the navigation panel will point to. +For use especially with self made theme which changes this. +For external URLs, you should include URL scheme as well.

    @@ -2631,18 +2714,19 @@ drop-down.

    Type:string -Default value:'tbl_structure.php' +Default value:'structure'

    Defines the tab displayed by default when clicking the small icon next -to each table name in the navigation panel. Possible values:

    +to each table name in the navigation panel. The possible values are the +localized equivalent of:

      -
    • tbl_structure.php
    • -
    • tbl_sql.php
    • -
    • tbl_select.php
    • -
    • tbl_change.php
    • -
    • sql.php
    • +
    • structure
    • +
    • sql
    • +
    • search
    • +
    • insert
    • +
    • browse
    @@ -2660,14 +2744,15 @@ to each table name in the navigation panel. Possible values:

    Defines the tab displayed by default when clicking the second small icon next -to each table name in the navigation panel. Possible values:

    +to each table name in the navigation panel. The possible values are the +localized equivalent of:

    • (empty)
    • -
    • tbl_structure.php
    • -
    • tbl_sql.php
    • -
    • tbl_select.php
    • -
    • tbl_change.php
    • -
    • sql.php
    • +
    • structure
    • +
    • sql
    • +
    • search
    • +
    • insert
    • +
    • browse
    @@ -2687,6 +2772,86 @@ to each table name in the navigation panel. Possible values:

    Whether to offer the possibility of tree expansion in the navigation panel.

    +
    +
    +$cfg['NavigationTreeShowTables']
    +
    +++ + + + + + +
    Type:boolean
    Default value:true
    +

    Whether to show tables under database in the navigation panel.

    +
    + +
    +
    +$cfg['NavigationTreeShowViews']
    +
    +++ + + + + + +
    Type:boolean
    Default value:true
    +

    Whether to show views under database in the navigation panel.

    +
    + +
    +
    +$cfg['NavigationTreeShowFunctions']
    +
    +++ + + + + + +
    Type:boolean
    Default value:true
    +

    Whether to show functions under database in the navigation panel.

    +
    + +
    +
    +$cfg['NavigationTreeShowProcedures']
    +
    +++ + + + + + +
    Type:boolean
    Default value:true
    +

    Whether to show procedures under database in the navigation panel.

    +
    + +
    +
    +$cfg['NavigationTreeShowEvents']
    +
    +++ + + + + + +
    Type:boolean
    Default value:true
    +

    Whether to show events under database in the navigation panel.

    +
    +

    Main panel

    @@ -2724,7 +2889,7 @@ for Berkeley DB tables.

    Defines whether to display detailed server information on main page. You can additionally hide more information by using -$cfg['Servers'][$i]['verbose'].

    +$cfg['Servers'][$i]['verbose'].

    @@ -2785,6 +2950,40 @@ in the configuration file, end users can’t be allowed to change their passwords.

    +
    +
    +$cfg['ShowGitRevision']
    +
    +++ + + + + + +
    Type:boolean
    Default value:true
    +

    Defines whether to display informations about the current Git revision (if +applicable) on the main panel.

    +
    + +
    +
    +$cfg['MysqlMinVersion']
    +
    +++ + + + +
    Type:array
    +

    Defines the minimum supported MySQL version. The default is chosen +by the phpMyAdmin team; however this directive was asked by a developer +of the Plesk control panel to ease integration with older MySQL servers +(where most of the phpMyAdmin features work).

    +
    +

    Database structure

    @@ -3111,7 +3310,7 @@ edit/insert mode. The user can toggle this setting from the interface.

    If there are fewer items than this in the set of foreign keys, then a drop-down box of foreign keys is presented, in the style described by -the $cfg['ForeignKeyDropdownOrder'] setting.

    +the $cfg['ForeignKeyDropdownOrder'] setting.

    @@ -3308,17 +3507,18 @@ database will be omitted for more display space.

    Type:string -Default value:'index.php' +Default value:'welcome' -

    Defines the tab displayed by default on server view. Possible values:

    +

    Defines the tab displayed by default on server view. The possible values +are the localized equivalent of:

      -
    • main.php (recommended for multi-user setups)
    • -
    • server_databases.php,
    • -
    • server_status.php
    • -
    • server_variables.php
    • -
    • server_privileges.php
    • +
    • welcome (recommended for multi-user setups)
    • +
    • databases,
    • +
    • status
    • +
    • variables
    • +
    • privileges
    @@ -3331,16 +3531,17 @@ database will be omitted for more display space.

    Type:string -Default value:'db_structure.php' +Default value:'structure' -

    Defines the tab displayed by default on database view. Possible -values:

    +

    Defines the tab displayed by default on database view. The possible values +are the localized equivalent of:

      -
    • db_structure.php
    • -
    • db_sql.php
    • -
    • db_search.php.
    • +
    • structure
    • +
    • sql
    • +
    • search
    • +
    • operations
    @@ -3353,17 +3554,18 @@ values:

    Type:string -Default value:'sql.php' +Default value:'browse' -

    Defines the tab displayed by default on table view. Possible values:

    +

    Defines the tab displayed by default on table view. The possible values +are the localized equivalent of:

      -
    • tbl_structure.php
    • -
    • tbl_sql.php
    • -
    • tbl_select.php
    • -
    • tbl_change.php
    • -
    • sql.php
    • +
    • structure
    • +
    • sql
    • +
    • search
    • +
    • insert
    • +
    • browse
    @@ -3401,7 +3603,7 @@ values:

    Default page size to use when creating PDF pages. Valid values are any -listed in $cfg['PDFPageSizes'].

    +listed in $cfg['PDFPageSizes'].

    @@ -3505,7 +3707,7 @@ recode)

    Enabled charset conversion activates a pull-down menu in the Export and Import pages, to choose the character set when exporting a file. The default value in this menu comes from -$cfg['Export']['charset'] and $cfg['Import']['charset'].

    +$cfg['Export']['charset'] and $cfg['Import']['charset'].

    @@ -3585,7 +3787,7 @@ buffering.

    Lists proxies and HTTP headers which are trusted for -$cfg['Servers'][$i]['AllowDeny']['order']. This list is by +$cfg['Servers'][$i]['AllowDeny']['order']. This list is by default empty, you need to fill in some trusted proxy servers if you want to use rules for IP addresses behind proxy.

    The following example specifies that phpMyAdmin should trust a @@ -3594,7 +3796,7 @@ HTTP_X_FORWARDED_FOR (X

    $cfg['TrustedProxies'] = array('1.2.3.4' => 'HTTP_X_FORWARDED_FOR');
     
    -

    The $cfg['Servers'][$i]['AllowDeny']['rules'] directive uses the +

    The $cfg['Servers'][$i]['AllowDeny']['rules'] directive uses the client’s IP address as usual.

    @@ -3673,7 +3875,7 @@ servers (config.footer.inc.php or config.header.inc.php, which would be normally not allowed by Content Security Policy.

    To allow some sites, just list them within the string:

    @@ -3901,7 +4103,7 @@ See themes/themename/layout.

    The text color used when hovering over a row in the Browse panel. -Used when $cfg['BrowsePointerEnable'] is true. +Used when $cfg['BrowsePointerEnable'] is true. See themes/themename/layout.inc.php.

    @@ -3920,7 +4122,7 @@ See themes/themename/layout.

    The background color used to highlight a row selected by checkbox in the Browse panel or when a column is selected. -Used when $cfg['BrowsePointerEnable'] is true. +Used when $cfg['BrowsePointerEnable'] is true. See themes/themename/layout.inc.php.

    @@ -4066,6 +4268,25 @@ put when tables contents are displayed (you may have them displayed at the left side, right side, both sides or nowhere).

    +
    +
    +$cfg['RowActionLinksWithoutUnique']
    +
    +++ + + + + + +
    Type:boolean
    Default value:false
    +

    Defines whether to show row links (Edit, Copy, Delete) and checkboxes +for multiple row operations even when the selection does not have a unique key. +Using row actions in the absence of a unique key may result in different/more +rows being affected since there is no guaranteed way to select the exact row(s).

    +
    +
    $cfg['RememberSorting']
    @@ -4260,7 +4481,7 @@ emphasized (*2) for textareas and (*1.25) for SQL textareas inside the query window.

    The Char* values are used for CHAR -and VARCHAR editing (if configured via $cfg['CharEditing']).

    +and VARCHAR editing (if configured via $cfg['CharEditing']).

    @@ -4296,6 +4517,23 @@ and VARCHAR editing (if configured via
    +
    +
    +$cfg['EnableAutocompleteForTablesAndColumns']
    +
    +++ + + + + + +
    Type:boolean
    Default value:true
    +

    Whether to enable autocomplete for table and column names in any +SQL query box.

    +
    +

    SQL query box settings

    @@ -4519,9 +4757,9 @@ reading and writing data in this directory.

    -

    If $cfg['QueryHistoryDB'] is set to true, all your +

    If $cfg['QueryHistoryDB'] is set to true, all your Queries are logged to a table, which has to be created by you (see -$cfg['Servers'][$i]['history']). If set to false, all your +$cfg['Servers'][$i]['history']). If set to false, all your queries will be appended to the form, but only as long as your window is opened they remain saved.

    When using the JavaScript based query window, it will always get updated @@ -4535,9 +4773,9 @@ you first have to look in. The checkbox will get automatically checked whenever you change the contents of the textarea. Please uncheck the button whenever you definitely want the query window to get updated even though you have made alterations.

    -

    If $cfg['QueryHistoryDB'] is set to true you can +

    If $cfg['QueryHistoryDB'] is set to true you can specify the amount of saved history items using -$cfg['QueryHistoryMax'].

    +$cfg['QueryHistoryMax'].

    @@ -4779,7 +5017,7 @@ containing all the themes.

    -

    The default theme (a subdirectory under $cfg['ThemePath']).

    +

    The default theme (a subdirectory under $cfg['ThemePath']).

    @@ -4891,7 +5129,7 @@ for first timestamp column in table.

    Enable logging queries and execution times to be -displayed in the bottom of main page (right frame).

    +displayed in the console’s Debug SQL tab.

    @@ -4992,7 +5230,7 @@ This is used for < previous | -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -144,7 +144,7 @@ under GPL version 2 license which is available in the LICENSE file.

  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -76,7 +76,7 @@
  • Loïc Chapeaux <lolo_at_phpheaven.net>
      -
    • rewrote and optimized javascript, DHTML and DOM stuff
    • +
    • rewrote and optimized JavaScript, DHTML and DOM stuff
    • rewrote the scripts so they fit the PEAR coding standards and generate XHTML1.0 and CSS2 compliant codes
    • improved the language detection system
    • @@ -392,6 +392,16 @@ Nicola Asuni for the “TCPDF” library (see < previous | -
    • phpMyAdmin 4.4.9 documentation »
    • +
    • phpMyAdmin 4.5.4.1 documentation »
  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -56,7 +56,7 @@ great features have been written by other people and you too can help to make phpMyAdmin a useful tool.

    You can check out all the possibilities to contribute in the -contribute section on our website.

    +contribute section on our website.

    @@ -105,7 +105,7 @@ to make phpMyAdmin a useful tool.

  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -52,7 +52,7 @@

    FAQ - Frequently Asked Questions

    -

    Please have a look at our Link section on the official +

    Please have a look at our Link section on the official phpMyAdmin homepage for in-depth coverage of phpMyAdmin’s features and or interface.

    @@ -184,30 +184,20 @@ MySQL:

    -
    -

    1.17 Which MySQL versions does phpMyAdmin support?

    -

    Since phpMyAdmin 3.0.x, only MySQL 5.0.1 and newer are supported. For -older MySQL versions, you need to use the latest 2.x branch. -phpMyAdmin can connect to your MySQL server using PHP’s classic MySQL -extension as well as the improved MySQL -extension (MySQLi) that is available in PHP -5.0. The latter one should be used unless you have a good reason not -to do so. When compiling PHP, we strongly recommend that you manually -link the MySQL extension of your choice to a MySQL client library of -at least the same minor version since the one that is bundled with -some PHP distributions is rather old and might cause problems see -1.17a I cannot connect to the MySQL server. It always returns the error message, “Client does not support authentication protocol requested by server; consider upgrading MySQL client”. MariaDB is also supported -(versions 5.1 and 5.2 were tested).

    -
    -

    Changed in version 3.5: Since phpMyAdmin 3.5 Drizzle is supported.

    -
    +
    +

    1.17 Which Database versions does phpMyAdmin support?

    +

    For MySQL, versions 5.5 and newer are supported. +For older MySQL versions, our Downloads page offers older phpMyAdmin versions +(which may have become unsupported).

    +

    For MariaDB, versions 5.5 and newer are supported.

    +

    For Drizzle, versions 7.1 and newer are supported.

    1.17a I cannot connect to the MySQL server. It always returns the error message, “Client does not support authentication protocol requested by server; consider upgrading MySQL client”

    You tried to access MySQL with an old MySQL client library. The version of your MySQL client library can be checked in your phpinfo() output. In general, it should have at least the same minor version as -your server - as mentioned in 1.17 Which MySQL versions does phpMyAdmin support?. This problem is +your server - as mentioned in 1.17 Which Database versions does phpMyAdmin support?. This problem is generally caused by using MySQL version 4.1 or newer. MySQL changed the authentication hash and your PHP is trying to use the old method. The proper solution is to use the mysqli extension with the proper client library to match @@ -329,8 +319,7 @@ MMCache but upgrading MMCache to version 2.3.21 solves the problem.

    1.31 Does phpMyAdmin support PHP 5?

    Yes.

    -

    Since release 4.1 phpMyAdmin supports only PHP 5.3 and newer. For PHP 5.2 you -can use 4.0.x releases.

    +

    Since release 4.5, phpMyAdmin supports only PHP 5.5 and newer. Since release 4.1 phpMyAdmin supports only PHP 5.3 and newer. For PHP 5.2 you can use 4.0.x releases.

    1.32 Can I use HTTP authentication with IIS?

    @@ -723,7 +712,7 @@ the parent form-container with the target to tbl_row_delete.php and just put your own input-elements inside. If you use a custom submit input field, the form will submit itself to the displaying page again, where you can validate the $HTTP_POST_VARS in a transformation. For -a tutorial on how to effectively use transformations, see our Link +a tutorial on how to effectively use transformations, see our Link section on the official phpMyAdmin-homepage.

    @@ -1247,37 +1236,36 @@ functions or empty mimetype definitions.

    Plus, you have a whole overview of available mimetypes. Who knows all those mimetypes by heart so he/she can enter it at will?

    -
    -

    6.18 Bookmarks: Where can I store bookmarks? Why can’t I see any bookmarks below the query box? What is this variable for?

    +
    +

    6.18 Bookmarks: Where can I store bookmarks? Why can’t I see any bookmarks below the query box? What are these variables for?

    Any query you have executed can be stored as a bookmark on the page where the results are displayed. You will find a button labeled ‘Bookmark this query’ just at the end of the page. As soon as you have stored a bookmark, it is related to the database you run the query on. You can now access a bookmark dropdown on each page, the query box appears on for that database.

    -

    You can also have, inside the query, a placeholder for a variable. -This is done by inserting into the query a SQL comment between /* and -*/. Inside the comment, the special string [VARIABLE] is used. -Be aware that the whole query minus the SQL comment must be +

    You can also have, inside the query, placeholders for variables. +This is done by inserting into the query SQL comments between /* and +*/. Inside the comments, the special strings [VARIABLE{variable-number}] is used. +Be aware that the whole query minus the SQL comments must be valid by itself, otherwise you won’t be able to store it as a bookmark.

    -

    When you execute the bookmark, everything typed into the value -input box on the query box page will replace the string /*[VARIABLE]*/ in +

    When you execute the bookmark, everything typed into the Variables +input boxes on the query box page will replace the strings /*[VARIABLE{variable-number}]*/ in your stored query.

    -

    Also remember, that everything else inside the /*[VARIABLE]*/ string for +

    Also remember, that everything else inside the /*[VARIABLE{variable-number}]*/ string for your query will remain the way it is, but will be stripped of the /**/ chars. So you can use:

    -
    /*, [VARIABLE] AS myname */
    +
    /*, [VARIABLE1] AS myname */
     

    which will be expanded to

    -
    , VARIABLE as myname
    +
    , VARIABLE1 as myname
     
    -

    in your query, where VARIABLE is the string you entered in the input box. If an -empty string is provided, no replacements are made.

    +

    in your query, where VARIABLE1 is the string you entered in the Variable 1 input box.

    A more complex example. Say you have stored this query:

    -
    SELECT Name, Address FROM addresses WHERE 1 /* AND Name LIKE '%[VARIABLE]%' */
    +
    SELECT Name, Address FROM addresses WHERE 1 /* AND Name LIKE '%[VARIABLE1]%' */
     

    Say, you now enter “phpMyAdmin” as the variable for the stored query, the full @@ -1285,15 +1273,10 @@ query will be:

    SELECT Name, Address FROM addresses WHERE 1 AND Name LIKE '%phpMyAdmin%'
     
    -

    You can use multiple occurrences of /*[VARIABLE]*/ in a single query -(that is, multiple occurrences of the same variable).

    NOTE THE ABSENCE OF SPACES inside the /**/ construct. Any spaces inserted there will be later also inserted as spaces in your query and may lead to unexpected results especially when using the variable expansion inside of a “LIKE ‘’” expression.

    -

    Your initial query which is going to be stored as a bookmark has to yield at -least one result row so you can store the bookmark. You may have that to work -around using well positioned /**/ comments.

    6.19 How can I create simple LATEX document to include exported table?

    @@ -1464,7 +1447,7 @@ to display the plot.

    After the plot is generated, you can use the mousewheel to zoom in and out of the plot. In addition, panning feature is enabled to navigate through the plot. You can zoom-in to a -certail level of detail and use panning to locate your area of +certain level of detail and use panning to locate your area of interest. Clicking on a point opens a dialogue box, displaying field values of the data row represented by the point. You can edit the values if required and click on submit to issue an update query. Basic @@ -1542,7 +1525,7 @@ accordingly to bring the table into the First/Second/Third Normal form. On startup of the wizard, user gets to select upto what normal form they want to normalize the table structure.

    Here is an example table which you can use to test all of the three First, Second and -Third Normal From.

    +Third Normal Form.

    CREATE TABLE `VetOffice` (
      `petName` varchar(64) NOT NULL,
      `petBreed` varchar(64) NOT NULL,
    @@ -1569,27 +1552,78 @@ form as the following dependencies exists.

    OwnerPhone depends on OwnerLastName and OwnerFirstName. PetType depends on PetBreed.

    +
    +

    6.38 How can I reassign auto-incremented values?

    +

    Some users prefer their AUTO_INCREMENT values to be consecutive; this is not +always the case after row deletion.

    +

    Here are the steps to accomplish this. These are manual steps because they +involve a manual verification at one point.

    +
      +
    • Ensure that you have exclusive access to the table to rearrange
    • +
    • On your primary key column (i.e. id), remove the AUTO_INCREMENT setting
    • +
    • Delete your primary key in Structure > indexes
    • +
    • Create a new column future_id as primary key, AUTO_INCREMENT
    • +
    • Browse your table and verify that the new increments correspond to what +you’re expecting
    • +
    • Drop your old id column
    • +
    • Rename the future_id column to id
    • +
    • Move the new id column via Structure > Move columns
    • +
    +
    +
    +

    6.39 What is the “Adjust privileges” option when renaming, copying, or moving a database, table, column, or procedure?

    +

    When renaming/copying/moving a database/table/column/procedure, +MySQL does not adjust the original privileges relating to these objects +on its own. By selecting this option, phpMyAdmin will adjust the privilege +table so that users have the same privileges on the new items.

    +

    For example: A user 'bob'@'localhost‘ has a ‘SELECT’ privilege on a +column named ‘id’. Now, if this column is renamed to ‘id_new’, MySQL, +on its own, would not adjust the column privileges to the new column name. +phpMyAdmin can make this adjustment for you automatically.

    +

    Notes:

    +
      +
    • While adjusting privileges for a database, the privileges of all +database-related elements (tables, columns and procedures) are also adjusted +to the database’s new name.
    • +
    • Similarly, while adjusting privileges for a table, the privileges of all +the columns inside the new table are also adjusted.
    • +
    • While adjusting privileges, the user performing the operation must have the following +privileges:
        +
      • SELECT, INSERT, UPDATE, DELETE privileges on following tables: +mysql.`db`, mysql.`columns_priv`, mysql.`tables_priv`, mysql.`procs_priv`
      • +
      • FLUSH privilege (GLOBAL)
      • +
      +
    • +
    +

    Thus, if you want to replicate the database/table/column/procedure as it is +while renaming/copying/moving these objects, make sure you have checked this option.

    +
    +
    +

    6.40 I see “Bind parameters” checkbox in the “SQL” page. How do I write parameterized SQL queries?

    +

    From version 4.5, phpMyAdmin allows users to execute parameterized queries in the “SQL” page. +Parameters should be prefixed with a colon(:) and when the “Bind parameters” checkbox is checked +these parameters will be identified and input fields for these parameters will be presented. +Values entered in these field will be substituted in the query before being executed.

    +

    phpMyAdmin project

    7.1 I have found a bug. How do I inform developers?

    -

    Our Bug Tracker is located at <http://sf.net/projects/phpmyadmin/> under the -Bugs section. But please first discuss your bug with other users: -<https://sourceforge.net/projects/phpmyadmin/forums>.

    +

    Our issues tracker is located at <https://github.com/phpmyadmin/phpmyadmin/issues>.

    7.2 I want to translate the messages to a new language or upgrade an existing language, where do I start?

    Translations are very welcome and all you need to have are the language skills. The easiest way is to use our online translation service. You can check -out all the possibilities to translate in the translate section on +out all the possibilities to translate in the translate section on our website.

    7.3 I would like to help out with the development of phpMyAdmin. How should I proceed?

    We welcome every contribution to the development of phpMyAdmin. You -can check out all the possibilities to contribute in the contribute +can check out all the possibilities to contribute in the contribute section on our website.

    See also

    @@ -1601,7 +1635,7 @@ section on our website.

    Security

    8.1 Where can I get information about the security alerts issued for phpMyAdmin?

    -

    Please refer to <http://www.phpmyadmin.net/home_page/security.php>.

    +

    Please refer to <https://www.phpmyadmin.net/security/>.

    8.2 How can I protect phpMyAdmin against brute force attacks?

    @@ -1662,7 +1696,7 @@ attempts.

  • 1.14 (withdrawn).
  • 1.15 I have problems with mysql.user column names.
  • 1.16 I cannot upload big dump files (memory, HTTP or timeout problems).
  • -
  • 1.17 Which MySQL versions does phpMyAdmin support?
  • +
  • 1.17 Which Database versions does phpMyAdmin support?
  • 1.17a I cannot connect to the MySQL server. It always returns the error message, “Client does not support authentication protocol requested by server; consider upgrading MySQL client”
  • 1.18 (withdrawn).
  • 1.19 I can’t run the “display relations” feature because the script seems not to know the font face I’m using!
  • @@ -1778,7 +1812,7 @@ attempts.

  • 6.15 I want to add a BLOB column and put an index on it, but MySQL says “BLOB column ‘...’ used in key specification without a key length”.
  • 6.16 How can I simply move in page with plenty editing fields?
  • 6.17 Transformations: I can’t enter my own mimetype! WTF is this feature then useful for?
  • -
  • 6.18 Bookmarks: Where can I store bookmarks? Why can’t I see any bookmarks below the query box? What is this variable for?
  • +
  • 6.18 Bookmarks: Where can I store bookmarks? Why can’t I see any bookmarks below the query box? What are these variables for?
  • 6.19 How can I create simple LATEX document to include exported table?
  • 6.20 I see a lot of databases which are not mine, and cannot access them.
  • 6.21 In edit/insert mode, how can I see a list of possible values for a column, based on some foreign table?
  • @@ -1798,6 +1832,9 @@ attempts.

  • 6.35 How can I use the Range search feature?
  • 6.36 What is Central columns and How can I use this feature?
  • 6.37 How can I use Improve Table structure feature?
  • +
  • 6.38 How can I reassign auto-incremented values?
  • +
  • 6.39 What is the “Adjust privileges” option when renaming, copying, or moving a database, table, column, or procedure?
  • +
  • 6.40 I see “Bind parameters” checkbox in the “SQL” page. How do I write parameterized SQL queries?
  • phpMyAdmin project
  • @@ -605,7 +605,7 @@ describing many different kinds of data.

  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -134,7 +134,7 @@ data will go to the proper columns.

  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • User Guide »
  • diff --git a/choupas/www/admin/phpmy/doc/html/index.html b/choupas/www/admin/phpmy/doc/html/index.html index d304b73..033f671 100644 --- a/choupas/www/admin/phpmy/doc/html/index.html +++ b/choupas/www/admin/phpmy/doc/html/index.html @@ -6,7 +6,7 @@ - Welcome to phpMyAdmin’s documentation! — phpMyAdmin 4.4.9 documentation + Welcome to phpMyAdmin’s documentation! — phpMyAdmin 4.5.4.1 documentation @@ -14,7 +14,7 @@ - + @@ -37,7 +37,7 @@
  • next |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -67,6 +67,7 @@
  • Linux distributions
  • Installing on Windows
  • Quick Install
  • +
  • Verifying phpMyAdmin releases
  • phpMyAdmin configuration storage
  • Upgrading from an older version
  • Using authentication modes
  • @@ -195,7 +196,7 @@
  • next |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -87,10 +87,10 @@ database layout functions, like displaying BLOB-data as image or download-link
  • track changes on databases, tables and views
  • support InnoDB tables and foreign keys
  • -
  • support mysqli, the improved MySQL extension see 1.17 Which MySQL versions does phpMyAdmin support?
  • +
  • support mysqli, the improved MySQL extension see 1.17 Which Database versions does phpMyAdmin support?
  • create, edit, call, export and drop stored procedures and functions
  • create, edit, export and drop events and triggers
  • -
  • communicate in 62 different languages
  • +
  • communicate in 80 different languages
  • @@ -169,7 +169,7 @@ Proper support may also need changes in previous | -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -58,7 +58,7 @@

    Printed Book

    The definitive guide to using phpMyAdmin is the book Mastering phpMyAdmin for Effective MySQL Management by Marc Delisle. You can get information on that -book and other officially endorsed books at the phpMyAdmin site.

    +book and other officially endorsed books at the phpMyAdmin site.

    Tutorials

    @@ -121,7 +121,7 @@ book and other officially endorsed previous | -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • User Guide »
  • diff --git a/choupas/www/admin/phpmy/doc/html/privileges.html b/choupas/www/admin/phpmy/doc/html/privileges.html index fd7939d..68cdee9 100644 --- a/choupas/www/admin/phpmy/doc/html/privileges.html +++ b/choupas/www/admin/phpmy/doc/html/privileges.html @@ -6,7 +6,7 @@ - User management — phpMyAdmin 4.4.9 documentation + User management — phpMyAdmin 4.5.4.1 documentation @@ -14,7 +14,7 @@ - + @@ -42,7 +42,7 @@
  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • User Guide »
  • @@ -155,7 +155,7 @@ table.

  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • User Guide »
  • diff --git a/choupas/www/admin/phpmy/doc/html/require.html b/choupas/www/admin/phpmy/doc/html/require.html index ad8a034..313debb 100644 --- a/choupas/www/admin/phpmy/doc/html/require.html +++ b/choupas/www/admin/phpmy/doc/html/require.html @@ -6,7 +6,7 @@ - Requirements — phpMyAdmin 4.4.9 documentation + Requirements — phpMyAdmin 4.5.4.1 documentation @@ -14,7 +14,7 @@ - + @@ -41,7 +41,7 @@
  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -54,18 +54,18 @@

    Requirements

    Web server

    -

    Since, phpMyAdmin’s interface is based entirely in your browser, you’ll need a -web server (such as Apache, IIS) to install phpMyAdmin’s files into.

    +

    Since phpMyAdmin’s interface is based entirely in your browser, you’ll need a +web server (such as Apache, nginx, IIS) to install phpMyAdmin’s files into.

    PHP

      -
    • You need PHP 5.3.0 or newer, with session support, the Standard PHP Library +
    • You need PHP 5.5.0 or newer, with session support, the Standard PHP Library (SPL) extension, JSON support, and the mbstring extension.
    • To support uploading of ZIP files, you need the PHP zip extension.
    • You need GD2 support in PHP to display inline thumbnails of JPEGs (“image/jpeg: inline”) with their original aspect ratio.
    • -
    • When using the cookie authentication (the default), the mcrypt extension is strongly suggested.
    • +
    • When using the cookie authentication (the default), the openssl extension is strongly suggested.
    • To support upload progress bars, see 2.9 Seeing an upload progress bar.
    • To support XML and Open Document Spreadsheet importing, you need the libxml extension.
    • @@ -88,12 +88,12 @@ web server (such as Apache,

      See also

      -

      1.17 Which MySQL versions does phpMyAdmin support?

      +

      1.17 Which Database versions does phpMyAdmin support?

    Web browser

    -

    To access phpMyAdmin you need a web browser with cookies and javascript +

    To access phpMyAdmin you need a web browser with cookies and JavaScript enabled.

    @@ -155,7 +155,7 @@ enabled.

  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -89,7 +89,7 @@
  • index
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -129,6 +129,7 @@ which include phpMyAdmin together with a database and web server such as Downloads page. Some kits contain only the English messages, others contain all languages. We’ll assume you chose a kit whose name looks like phpMyAdmin-x.x.x -all-languages.tar.gz. +
  • Ensure you have downloaded a genuine archive, see Verifying phpMyAdmin releases.
  • Untar or unzip the distribution (be sure to unzip the subdirectories): tar -xzvf phpMyAdmin_x.x.x-all-languages.tar.gz in your webserver’s document root. If you don’t have direct access to your @@ -256,6 +257,76 @@ webserver or limit access by web server configuration, see +
    +

    Verifying phpMyAdmin releases

    +

    Since July 2015 all phpMyAdmin releases are cryptographically signed by the +releasing developer, who is currently Marc Delisle. His key id is +0x81AF644A, his PGP fingerprint is:

    +
    436F F188 4B1A 0C3F DCBF 0D79 FEFC 65D1 81AF 644A
    +
    +
    +

    and you can get more identification information from https://keybase.io/lem9. You should verify that the signature matches +the archive you have downloaded. This way you can be sure that you are using +the same code that was released.

    +

    Each archive is accompanied with .asc files which contains the PGP signature +for it. Once you have both of them in the same folder, you can verify the signature:

    +
    $ gpg --verify phpMyAdmin-4.4.9-all-languages.zip.asc
    +gpg: Signature made Fri Jun 12 13:09:58 2015 CEST using RSA key ID 81AF644A
    +gpg: Can't check signature: No public key
    +
    +
    +

    As you can see gpg complains that it does not know the public key. At this +point you should do one of the following steps:

    + +
    $ gpg --import phpmyadmin.keyring
    +
    +
    +
      +
    • Download and import the key from one of the key servers:
    • +
    +
    $ gpg --keyserver hkp://pgp.mit.edu --recv-keys 81AF644A
    +gpg: requesting key 81AF644A from hkp server pgp.mit.edu
    +gpg: key 81AF644A: public key "Marc Delisle <marc@infomarc.info>" imported
    +gpg: no ultimately trusted keys found
    +gpg: Total number processed: 1
    +gpg:               imported: 1  (RSA: 1)
    +
    +
    +

    This will improve the situation a bit - at this point you can verify that the +signature from the given key is correct but you still can not trust the name used +in the key:

    +
    $ gpg --verify phpMyAdmin-4.4.9-all-languages.zip.asc
    +gpg: Signature made Fri Jun 12 13:09:58 2015 CEST using RSA key ID 81AF644A
    +gpg: Good signature from "Marc Delisle <marc@infomarc.info>" [unknown]
    +gpg: WARNING: This key is not certified with a trusted signature!
    +gpg:          There is no indication that the signature belongs to the owner.
    +Primary key fingerprint: 436F F188 4B1A 0C3F DCBF  0D79 FEFC 65D1 81AF 644A
    +
    +
    +

    The problem here is that anybody could issue the key with this name. You need to +ensure that the key is actually owned by the mentioned person. The GNU Privacy +Handbook covers this topic in the chapter Validating other keys on your public +keyring. The most reliable method is to meet the developer in person and +exchange key fingerprints, however you can also rely on the web of trust. This way +you can trust the key transitively though signatures of others, who have met +the developer in person. For example you can see how Marc’s key links to +Linus’s key.

    +

    Once the key is trusted, the warning will not occur:

    +
    $ gpg --verify phpMyAdmin-4.4.9-all-languages.zip.asc
    +gpg: Signature made Fri Jun 12 13:09:58 2015 CEST using RSA key ID 81AF644A
    +gpg: Good signature from "Marc Delisle <marc@infomarc.info>" [full]
    +
    +
    +

    Should the signature be invalid (the archive has been changed), you would get a +clear error regardless of the fact that the key is trusted or not:

    +
    $ gpg --verify phpMyAdmin-4.4.9-all-languages.zip.asc
    +gpg: Signature made Fri Jun 12 13:09:58 2015 CEST using RSA key ID 81AF644A
    +gpg: BAD signature from "Marc Delisle <marc@infomarc.info>" [unknown]
    +
    +
    +

    phpMyAdmin configuration storage

    For a whole set of additional features (bookmarks, comments, SQL-history, @@ -338,6 +409,8 @@ should run the SQL script found in sql/upgrade_column_info_4_3_0+.sql.

    +

    Do not forget to clear the browser cache and to empty the old session by +logging out and logging in again.

    Using authentication modes

    @@ -685,8 +758,6 @@ in examples/signon-script.ph return $credentials; } - -?>
    @@ -735,7 +806,7 @@ each user with their Swekey Id. It is important to place this file outside of your web server’s document root (in the example, it is located in /etc). Feel free to use it with your own users’ information. If you want to purchase a Swekey please visit -http://phpmyadmin.net/auth_key +https://www.phpmyadmin.net/auth_key/ since this link provides funding for phpMyAdmin.

    A self documented sample file is provided in the file examples/swekey.sample.conf:

    @@ -750,7 +821,7 @@ file examples/swekey.sample. # If you don't know the id of a Swekey just visit http://www.swekey.com?sel=support # while your Swekey is connected. # -# If you need to purchase a Swekey please visit http://phpmyadmin.net/auth_key +# If you need to purchase a Swekey please visit https://www.phpmyadmin.net/auth_key/ # since this link provides funding to PhpMyAdmin. # @@ -795,19 +866,36 @@ file examples/swekey.sample.

    Securing your phpMyAdmin installation

    The phpMyAdmin team tries hard to make the application secure, however there are always ways to make your installation more secure:

    -
      -
    • Remove the setup directory from phpMyAdmin, you will probably not -use it after the initial setup.
    • -
    • Properly choose an authentication method - Cookie authentication mode -is probably the best choice for shared hosting.
    • -
    • In case you don’t want all MySQL users to be able to access -phpMyAdmin, you can use $cfg['Servers'][$i]['AllowDeny']['rules'] to limit them.
    • -
    • Consider hiding phpMyAdmin behind an authentication proxy, so that +
        +
      • Remove the setup directory from phpMyAdmin, you will probably not +use it after the initial setup.

        +
      • +
      • Properly choose an authentication method - Cookie authentication mode +is probably the best choice for shared hosting.

        +
      • +
      • In case you don’t want all MySQL users to be able to access +phpMyAdmin, you can use $cfg['Servers'][$i]['AllowDeny']['rules'] to limit them.

        +
      • +
      • Consider hiding phpMyAdmin behind an authentication proxy, so that users need to authenticate prior to providing MySQL credentials -to phpMyAdmin.

      • -
      • If you are afraid of automated attacks, enabling Captcha by +to phpMyAdmin. You can achieve this by configuring your web server to request +HTTP authentication. For example in Apache this can be done with:

        +
        AuthType Basic
        +AuthName "Restricted Access"
        +AuthUserFile /usr/share/phpmyadmin/passwd
        +Require valid-user
        +
        +
        +

        Once you have changed the configuration, you need to create a list of users which +can authenticate. This can be done using the htpasswd utility:

        +
        htpasswd -c /usr/share/phpmyadmin/passwd username
        +
        +
        +
      • +
      • If you are afraid of automated attacks, enabling Captcha by $cfg['CaptchaLoginPublicKey'] and -$cfg['CaptchaLoginPrivateKey'] might be an option.

      • +$cfg['CaptchaLoginPrivateKey'] might be an option.

        +
    @@ -837,6 +925,7 @@ to phpMyAdmin.
  • Using Setup script
  • +
  • Verifying phpMyAdmin releases
  • phpMyAdmin configuration storage
  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • User Guide »
  • @@ -226,7 +226,7 @@ variable contains the original MIME-type of the column (i.e.
  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • User Guide »
  • diff --git a/choupas/www/admin/phpmy/doc/html/user.html b/choupas/www/admin/phpmy/doc/html/user.html index 945c7c0..1ef7178 100644 --- a/choupas/www/admin/phpmy/doc/html/user.html +++ b/choupas/www/admin/phpmy/doc/html/user.html @@ -6,7 +6,7 @@ - User Guide — phpMyAdmin 4.4.9 documentation + User Guide — phpMyAdmin 4.5.4.1 documentation @@ -14,7 +14,7 @@ - + @@ -41,7 +41,7 @@
  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -126,7 +126,7 @@
  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • @@ -136,7 +136,7 @@ one we ship.

  • previous |
  • -
  • phpMyAdmin 4.4.9 documentation »
  • +
  • phpMyAdmin 4.5.4.1 documentation »
  • '; } echo '
    '; - echo '

    ' . __('General Settings') . '

    '; + echo '

    ' . __('General settings') . '

    '; echo '