config.inc.php
来自「phpMyAdmin图形界面化操作,我已经配置好了,只要把解要压缩后的文件放到站」· PHP 代码 · 共 2,813 行 · 第 1/5 页
PHP
2,813 行
* Error handler configuration
*
* this configures phpMyAdmin's own error handler, it is used to avoid information
* disclosure, gather errors for logging, reporting and displaying
*
* @global array $cfg['Error_Handler']
*/
$cfg['Error_Handler'] = array();
/**
* whether to display errors or not
*
* this does not affect errors of type E_USER_*
*
* @global boolean $cfg['Error_Handler']['display']
*/
$cfg['Error_Handler']['display'] = false;
/**
* (NOT IMPLEMENTED YET)
* where to log errors, false or empty to disable
*
* <code>
* // EXAMPLE log to std PHP error log
* $cfg['Error_Handler']['log'] = array(0);
* // EXAMPLE mail errors
* $cfg['Error_Handler']['log'] = array(1, 'admin@example.org');
* // EXAMPLE append to specific file
* $cfg['Error_Handler']['log'] = array(3, '/var/log/phpmyadmin_error.log');
* </code>
*
* @see http://php.net/error_log
* @global string $cfg['Error_Handler']['log']
*/
//$cfg['Error_Handler']['log'] = false;
/**
* gather all errors in session to be displayed on a error reporting page
* for viewing and/or sending to phpMyAdmin developer team
*
* @global boolean $cfg['Error_Handler']['gather']
*/
$cfg['Error_Handler']['gather'] = false;
/*******************************************************************************
* Left frame setup
*/
/**
* use a select-based menu and display only the current tables in the left frame.
*
* @global boolean $cfg['LeftFrameLight']
*/
$cfg['LeftFrameLight'] = true;
/**
* turn the select-based light menu into a tree
*
* @global boolean $cfg['LeftFrameDBTree']
*/
$cfg['LeftFrameDBTree'] = true;
/**
* the separator to sub-tree the select-based light menu tree
*
* @global string $cfg['LeftFrameDBSeparator']
*/
$cfg['LeftFrameDBSeparator'] = '_';
/**
* Which string will be used to generate table prefixes
* to split/nest tables into multiple categories
*
* @global string $cfg['LeftFrameTableSeparator']
*/
$cfg['LeftFrameTableSeparator']= '__';
/**
* How many sublevels should be displayed when splitting up tables by the above Separator
*
* @global integer $cfg['LeftFrameTableLevel']
*/
$cfg['LeftFrameTableLevel'] = 1;
/**
* display table comment as tooltip in left frame
*
* @global boolean $cfg['ShowTooltip']
*/
$cfg['ShowTooltip'] = true;
/**
* if ShowToolTip is enabled, this defines that table/db comments
*
* @global boolean $cfg['ShowTooltipAliasDB']
*/
$cfg['ShowTooltipAliasDB'] = false;
/**
* are shown (in the left menu and db_structure) instead of table/db names.
* Setting ShowTooltipAliasTB to 'nested' will only use the Aliases for nested
* descriptors, not the table itself.
*
* @global boolean $cfg['ShowTooltipAliasTB']
*/
$cfg['ShowTooltipAliasTB'] = false;
/**
* display logo at top of left frame
*
* @global boolean $cfg['LeftDisplayLogo']
*/
$cfg['LeftDisplayLogo'] = true;
/**
* where should logo link point to (can also contain an external URL)
*
* @global string $cfg['LeftLogoLink']
*/
$cfg['LeftLogoLink'] = 'main.php';
/**
* whether to open the linked page in the main window ('main') or
* in a new window ('new')
*
* @global string $cfg['LeftLogoLinkWindow']
*/
$cfg['LeftLogoLinkWindow'] = 'main';
/**
* display server choice at top of left frame
*
* @global boolean $cfg['LeftDisplayServers']
*/
$cfg['LeftDisplayServers'] = false;
/**
* server choice as links
*
* @global boolean $cfg['DisplayServersList']
*/
$cfg['DisplayServersList'] = false;
/**
* database choice in light as links
*
* @global boolean $cfg['DisplayDatabasesList']
*/
$cfg['DisplayDatabasesList'] = 'auto';
/**
* target of the navigation panel quick access icon
*
* Possible values:
* 'tbl_structure.php' = fields list
* 'tbl_sql.php' = SQL form
* 'tbl_select.php' = search page
* 'tbl_change.php' = insert row page
* 'sql.php' = browse page
*
* @global string $cfg['LeftDefaultTabTable']
*/
$cfg['LeftDefaultTabTable'] = 'tbl_structure.php';
/*******************************************************************************
* In the main frame, at startup...
*/
/**
* allow to display statistics and space usage in the pages about database
* details and table properties
*
* @global boolean $cfg['ShowStats']
*/
$cfg['ShowStats'] = true;
/**
* show PHP info link
*
* @global boolean $cfg['ShowPhpInfo']
*/
$cfg['ShowPhpInfo'] = false;
/**
* show MySQL server information
*
* @global boolean $cfg['ShowServerInfo']
*/
$cfg['ShowServerInfo'] = true;
/**
* show change password link
*
* @global boolean $cfg['ShowChgPassword']
*/
$cfg['ShowChgPassword'] = true;
/**
* show create database form
*
* @global boolean $cfg['ShowCreateDb']
*/
$cfg['ShowCreateDb'] = true;
/**
* suggest a new DB name if possible (false = keep empty)
*
* @global boolean $cfg['SuggestDBName']
*/
$cfg['SuggestDBName'] = true;
/*******************************************************************************
* In browse mode...
*/
/**
* Use icons instead of text for the navigation bar buttons
* and on right panel top menu (server db table) (true|false|'both')
*
* @global string $cfg['NavigationBarIconic']
*/
$cfg['NavigationBarIconic'] = 'both';
/**
* allows to display all the rows
*
* @global boolean $cfg['ShowAll']
*/
$cfg['ShowAll'] = false;
/**
* maximum number of rows to display
*
* @global integer $cfg['MaxRows']
*/
$cfg['MaxRows'] = 30;
/**
* default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
* descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
* ascending order else-)
*
* @global string $cfg['Order']
*/
$cfg['Order'] = 'ASC';
/*******************************************************************************
* In edit mode...
*/
/**
* disallow editing of binary fields
* valid values are:
* false allow editing
* 'blob' allow editing except for BLOB fields
* 'all' disallow editing
*
* @global string $cfg['ProtectBinary']
*/
$cfg['ProtectBinary'] = 'blob';
/**
* Display the function fields in edit/insert mode
*
* @global boolean $cfg['ShowFunctionFields']
*/
$cfg['ShowFunctionFields'] = true;
/**
* Which editor should be used for CHAR/VARCHAR fields:
* input - allows limiting of input length
* textarea - allows newlines in fields
*
* @global string $cfg['CharEditing']
*/
$cfg['CharEditing'] = 'input';
/**
* How many rows can be inserted at one time
*
* @global integer $cfg['InsertRows']
*/
$cfg['InsertRows'] = 2;
/**
* Sort order for items in a foreign-key drop-down list.
* 'content' is the referenced data, 'id' is the key value.
*
* @global array $cfg['ForeignKeyDropdownOrder']
*/
$cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
/**
* A drop-down list will be used if fewer items are present
*
* @global integer $cfg['ForeignKeyMaxLimit']
*/
$cfg['ForeignKeyMaxLimit'] = 100;
/*******************************************************************************
* For the export features...
*/
/**
* Allow for the use of zip compression (requires zip support to be enabled)
*
* @global boolean $cfg['ZipDump']
*/
$cfg['ZipDump'] = true;
/**
* Allow for the use of gzip compression (requires zlib)
*
* @global boolean $cfg['GZipDump']
*/
$cfg['GZipDump'] = true;
/**
* Allow for the use of bzip2 compression (requires bz2 extension)
*
* @global boolean $cfg['BZipDump']
*/
$cfg['BZipDump'] = true;
/**
* Will compress gzip/bzip2 exports on the fly without the need for much memory.
* If you encounter problems with created gzip/bzip2 files disable this feature.
*
* @global boolean $cfg['CompressOnFly']
*/
$cfg['CompressOnFly'] = true;
/*******************************************************************************
* Tabs display settings
*/
/**
* use graphically less intense menu tabs
*
* @global boolean $cfg['LightTabs']
*/
$cfg['LightTabs'] = false;
/**
* Use icons instead of text for the table display of a database (true|false|'both')
*
* @global boolean $cfg['PropertiesIconic']
*/
$cfg['PropertiesIconic'] = true;
/**
* How many columns should be used for table display of a database?
* (a value larger than 1 results in some information being hidden)
*
* @global integer $cfg['PropertiesNumColumns']
*/
$cfg['PropertiesNumColumns'] = 1;
/**
* Possible values:
* 'main.php' = the welcome page
* (recommended for multiuser setups)
* 'server_databases.php' = list of databases
* 'server_status.php' = runtime information
* 'server_variables.php' = MySQL server variables
* 'server_privileges.php' = user management
* 'server_processlist.php' = process list
*
* @global string $cfg['DefaultTabServer']
*/
$cfg['DefaultTabServer'] = 'main.php';
/**
* Possible values:
* 'db_structure.php' = tables list
* 'db_sql.php' = SQL form
* 'db_search.php' = search query
* 'db_operations.php' = operations on database
*
* @global string $cfg['DefaultTabDatabase']
*/
$cfg['DefaultTabDatabase'] = 'db_structure.php';
/**
* Possible values:
* 'tbl_structure.php' = fields list
* 'tbl_sql.php' = SQL form
* 'tbl_select.php' = search page
* 'tbl_change.php' = insert row page
* 'sql.php' = browse page
*
* @global string $cfg['DefaultTabTable']
*/
$cfg['DefaultTabTable'] = 'sql.php';
/*******************************************************************************
* Export defaults
*/
$cfg['Export'] = array();
/**
* codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xls/xml/yaml
*
* @global string $cfg['Export']['format']
*/
$cfg['Export']['format'] = 'sql';
/**
* none/zip/gzip/bzip2
*
* @global string $cfg['Export']['compression']
*/
$cfg['Export']['compression'] = 'none';
/**
*
*
* @global boolean $cfg['Export']['asfile']
*/
$cfg['Export']['asfile'] = false;
/**
*
*
* @global string $cfg['Export']['charset']
*/
$cfg['Export']['charset'] = '';
/**
*
*
* @global boolean $cfg['Export']['onserver']
*/
$cfg['Export']['onserver'] = false;
/**
*
*
* @global boolean $cfg['Export']['onserver_overwrite']
*/
$cfg['Export']['onserver_overwrite'] = false;
/**
*
*
* @global boolean $cfg['Export']['remember_file_template']
*/
$cfg['Export']['remember_file_template'] = true;
/**
*
*
* @global string $cfg['Export']['file_template_table']
*/
$cfg['Export']['file_template_table'] = '__TABLE__';
/**
*
*
* @global string $cfg['Export']['file_template_database']
*/
$cfg['Export']['file_template_database'] = '__DB__';
/**
*
*
* @global string $cfg['Export']['file_template_server']
*/
$cfg['Export']['file_template_server'] = '__SERVER__';
/**
*
*
* @global boolean $cfg['Export']['ods_columns']
*/
$cfg['Export']['ods_columns'] = false;
/**
*
*
* @global string $cfg['Export']['ods_null']
*/
$cfg['Export']['ods_null'] = 'NULL';
/**
*
*
* @global boolean $cfg['Export']['odt_structure']
*/
$cfg['Export']['odt_structure'] = true;
/**
*
*
* @global boolean $cfg['Export']['odt_data']
*/
$cfg['Export']['odt_data'] = true;
/**
*
*
* @global boolean $cfg['Export']['odt_columns']
*/
$cfg['Export']['odt_columns'] = true;
/**
*
*
* @global boolean $cfg['Export']['odt_relation']
*/
$cfg['Export']['odt_relation'] = true;
/**
*
*
* @global boolean $cfg['Export']['odt_comments']
*/
$cfg['Export']['odt_comments'] = true;
/**
*
*
* @global boolean $cfg['Export']['odt_mime']
*/
$cfg['Export']['odt_mime'] = true;
/**
*
*
* @global string $cfg['Export']['odt_null']
*/
$cfg['Export']['odt_null'] = 'NULL';
/**
*
*
* @global boolean $cfg['Export']['htmlexcel_columns']
*/
$cfg['Export']['htmlexcel_columns'] = false;
/**
*
*
* @global string $cfg['Export']['htmlexcel_null']
*/
$cfg['Export']['htmlexcel_null'] = 'NULL';
/**
*
*
* @global boolean $cfg['Export']['htmlword_structure']
*/
$cfg['Export']['htmlword_structure'] = true;
/**
*
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?