phpmyadmin常用选项设置
config.inc.php全部内容如下:(以phpmyadmin2.5.4为例)<br /><blockquote><?php<br />/* $Id: config.inc.php,v 1.204.2.1 2003/10/10 14:24:24 nijel Exp $ */<br />// vim: expandtab sw=4 ts=4 sts=4:<br /><br />/**<br /> * phpMyAdmin Configuration File<br /> *<br /> * All directives are explained in Documentation.html<br /> */<br /><br /><br />/**<br /> * Sets the php error reporting - Please do not change this line!<br /> */<br />if (!isset($old_error_reporting)) {<br /> error_reporting(E_ALL);<br /> @ini_set('display_errors', '1');<br />}<br /><br /><br />/**<br /> * Your phpMyAdmin url<br /> *<br /> * Complete the variable below with the full url ie<br /> * http://www.your_web.net/path_to_your_phpMyAdmin_directory/<br /> *<br /> * It must contain characters that are valid for a URL, and the path is<br /> * case sensitive on some Web servers, for example Unix-based servers.<br /> *<br /> * In most cases you can leave this variable empty, as the correct value<br /> * will be detected automatically. However, we recommend that you do<br /> * test to see that the auto-detection code works in your system. A good<br /> * test is to browse a table, then edit a row and save it. There will be<br /> * an error message if phpMyAdmin cannot auto-detect the correct value.<br /> *<br /> * If the auto-detection code does work properly, you can set to TRUE the<br /> * $cfg['PmaAbsoluteUri_DisableWarning'] variable below.<br /> */<br /><font color="red">$cfg['PmaAbsoluteUri'] = '';-----这里设置你的phpmyadmin的URL,如:http://localhost/phpmyadmin/</font><br /><br /><br />/**<br /> * Disable the default warning about $cfg['PmaAbsoluteUri'] not being set<br /> * You should use this if and ONLY if the PmaAbsoluteUri auto-detection<br /> * works perfectly.<br /> */<br />$cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;<br /><br />/**<br /> * Disable the default warning that is displayed on the DB Details Structure page if<br /> * any of the required Tables for the relationfeatures could not be found<br /> */<br />$cfg['PmaNoRelation_DisableWarning'] = FALSE;<br /><br />/**<br /> * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If<br /> * at least one server configuration uses 'cookie' auth_type, enter here a<br /> * passphrase that will be used by blowfish.<br /><font color="red">$cfg['blowfish_secret'] = '';-----设定好root密码后这里也要填写</font><br /><br />/**<br /> * Server(s) configuration<br /> */<br />$i = 0;<br />// The $cfg['Servers'] array starts with $cfg['Servers']. Do not use $cfg['Servers'].<br />// You can disable a server config entry by setting host to ''.<br />$i++;<br /><font color="red">$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address----这里可以设定远程MySQL服务器IP地址<br /><br />$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port-----默认为3306</font><br /><br />$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket<br /><br />$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')-----连接MySQL服务器的方式<br /><br />$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection<br /> // (requires PHP >= 4.3.0)-----是否使用压缩协议,PHP版本须>= 4.3.0<br /><br />$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings<br /> // (this user must have read-only<br />$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"<br /> // and "mysql/db" tables)-----MySQL控制用户设定,该用户只对mysql数据库下的user和db表有完全权限<br /><br /><font color="red">$cfg['Servers'][$i]['auth_type'] = 'config'; <br />// Authentication method (config, http or cookie based)?-----如果PHP安装模式为Apache,可以使用http和cookie;如果PHP安装模式为CGI,可以使用cookie;默认为config,是不安全的,不推荐。<br /><br />$cfg['Servers'][$i]['user'] = 'root'; // MySQL user-----MySQL连接用户<br /><br />$cfg['Servers'][$i]['password'] = ''; <br />// MySQL password (only needed with 'config' auth_type)-----MySQL连接密码,建议在安装好PHP和MySQL后,先用phpmyadmin设定root密码,然后在这里填写<br /><br />$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only<br /> // this db is displayed<br /> // at left frame<br /> // It may also be an array<br /> // of db-names-----如果在这里设定一个数据库的名字,那么登陆后框架左边将只显示这个数据库</font><br /><br />$cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname<br /><br />$cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features<br /> // (see scripts/create_tables.sql)<br /> // - leave blank for no support<br /> // DEFAULT: 'phpmyadmin'<br />$cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table<br /> // - leave blank for no bookmark support<br /> // DEFAULT: 'pma_bookmark'<br />$cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)<br /> // - leave blank for no relation-links support<br /> // DEFAULT: 'pma_relation'<br />$cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields<br /> // - leave blank for no display fields support<br /> // DEFAULT: 'pma_table_info'<br />$cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF schema<br /> // - leave blank for no PDF schema support<br /> // DEFAULT: 'pma_table_coords'<br />$cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf<br /> // - leave blank if you don't want to use this<br /> // DEFAULT: 'pma_pdf_pages'<br />$cfg['Servers'][$i]['column_info'] = ''; // table to store column information<br /> // - leave blank for no column comments/mime types<br /> // DEFAULT: 'pma_column_info'<br />$cfg['Servers'][$i]['history'] = ''; // table to store SQL history<br /> // - leave blank for no SQL query history<br /> // DEFAULT: 'pma_history'<br />$cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your pma_* tables<br /> // are up to date. This prevents compatibility<br /> // checks and thereby increases performance.<br />$cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use<br /> = '';<br />$cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults<br /> = array();<br /><br /><br />$i++;<br />$cfg['Servers'][$i]['host'] = '';<br />$cfg['Servers'][$i]['port'] = '';<br />$cfg['Servers'][$i]['socket'] = '';<br />$cfg['Servers'][$i]['connect_type'] = 'tcp';<br />$cfg['Servers'][$i]['compress'] = FALSE;<br />$cfg['Servers'][$i]['controluser'] = '';<br />$cfg['Servers'][$i]['controlpass'] = '';<br />$cfg['Servers'][$i]['auth_type'] = 'config';<br />$cfg['Servers'][$i]['user'] = 'root';<br />$cfg['Servers'][$i]['password'] = '';<br />$cfg['Servers'][$i]['only_db'] = '';<br />$cfg['Servers'][$i]['verbose'] = '';<br />$cfg['Servers'][$i]['pmadb'] = ''; // 'phpmyadmin' - see scripts/create_tables.sql<br />$cfg['Servers'][$i]['bookmarktable'] = ''; // 'pma_bookmark'<br />$cfg['Servers'][$i]['relation'] = ''; // 'pma_relation'<br />$cfg['Servers'][$i]['table_info'] = ''; // 'pma_table_info'<br />$cfg['Servers'][$i]['table_coords'] = ''; // 'pma_table_coords'<br />$cfg['Servers'][$i]['pdf_pages'] = ''; // 'pma_pdf_pages'<br />$cfg['Servers'][$i]['column_info'] = ''; // 'pma_column_info'<br />$cfg['Servers'][$i]['history'] = ''; // 'pma_history'<br />$cfg['Servers'][$i]['verbose_check'] = TRUE;<br />$cfg['Servers'][$i]['AllowDeny']['order']<br /> = '';<br />$cfg['Servers'][$i]['AllowDeny']['rules']<br /> = array();<br /><br />$i++;<br />$cfg['Servers'][$i]['host'] = '';<br />$cfg['Servers'][$i]['port'] = '';<br />$cfg['Servers'][$i]['socket'] = '';<br />$cfg['Servers'][$i]['connect_type'] = 'tcp';<br />$cfg['Servers'][$i]['compress'] = FALSE;<br />$cfg['Servers'][$i]['controluser'] = '';<br />$cfg['Servers'][$i]['controlpass'] = '';<br />$cfg['Servers'][$i]['auth_type'] = 'config';<br />$cfg['Servers'][$i]['user'] = 'root';<br />$cfg['Servers'][$i]['password'] = '';<br />$cfg['Servers'][$i]['only_db'] = '';<br />$cfg['Servers'][$i]['verbose'] = '';<br />$cfg['Servers'][$i]['pmadb'] = ''; // 'phpmyadmin' - see scripts/create_tables.sql<br />$cfg['Servers'][$i]['bookmarktable'] = ''; // 'pma_bookmark'<br />$cfg['Servers'][$i]['relation'] = ''; // 'pma_relation'<br />$cfg['Servers'][$i]['table_info'] = ''; // 'pma_table_info'<br />$cfg['Servers'][$i]['table_coords'] = ''; // 'pma_table_coords'<br />$cfg['Servers'][$i]['pdf_pages'] = ''; // 'pma_pdf_pages'<br />$cfg['Servers'][$i]['column_info'] = ''; // 'pma_column_info'<br />$cfg['Servers'][$i]['history'] = ''; // 'pma_history'<br />$cfg['Servers'][$i]['verbose_check'] = TRUE;<br />$cfg['Servers'][$i]['AllowDeny']['order']<br /> = '';<br />$cfg['Servers'][$i]['AllowDeny']['rules']<br /> = array();<br /><br />// If you have more than one server configured, you can set $cfg['ServerDefault']<br />// to any one of them to autoconnect to that server when phpMyAdmin is started,<br />// or set it to 0 to be given a list of servers without logging in<br />// If you have only one server configured, $cfg['ServerDefault'] *MUST* be<br />// set to that server.=red]-----是否显示所有的MySQL服务器<br />$cfg['ServerDefault'] = 1; // Default server (0 = no default server)<br />$cfg['Server'] = '';<br />unset($cfg['Servers']);<br /><br /><br />/**<br /> * Other core phpMyAdmin settings<br /> */<br /><font color="red">$cfg['OBGzip'] = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')-----有必要的话是否使用GZIP输出缓冲<br /><br />$cfg['PersistentConnections'] = FALSE; // use persistent connections to MySQL database-----是否使用MySQL持久连接,即pconnect<br /><br />$cfg['ExecTimeLimit'] = 300; // maximum execution time in seconds (0 for no limit)-----最大脚本执行时间,单位:秒</font><br /><br />$cfg['SkipLockedTables'] = FALSE; // mark used tables, make possible to show<br /> // locked tables (since MySQL 3.23.30)<br /><font color="red">$cfg['ShowSQL'] = TRUE; // show SQL queries as run-----运行查询时显示SQL查询语句<br /><br />$cfg['AllowUserDropDatabase'] = FALSE; // show a 'Drop database' link to normal users-----是否对普通用户显示“删除数据库”连接<br /><br />$cfg['Confirm'] = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'-----删除数据表/库前是否出现确认提示框<br /><br />$cfg['LoginCookieRecall'] = TRUE; // recall previous login in cookie auth. mode or not-----是否收回先前cookie认证模式的cookie</font><br /><br />$cfg['UseDbSearch'] = TRUE; // whether to enable the "database search" feature<br /> // or not<br />$cfg['IgnoreMultiSubmitErrors'] = FALSE; // if set to true, PMA continues computing multiple-statement queries<br /> // even if one of the queries failed<br />$cfg['VerboseMultiSubmit'] = TRUE; // if set to true, PMA will show the affected rows of EACH statement on<br /> // multiple-statement queries. See the read_dump.php file for hardcoded<br /> // defaults on how many queries a statement may contain!<br />$cfg['AllowArbitraryServer'] = FALSE; // allow login to any user entered server in cookie based auth<br /><br />// Left frame setup-----左侧框架设置<br />$cfg['LeftFrameLight'] = TRUE; .-----是否使用下拉框显示当前数据库// use a select-based menu and display only the<br /> // current tables in the left frame<br />$cfg['LeftFrameTableSeparator']= '__'; // Which string will be used to generate table prefixes<br /> // to split tables into multiple categories<br />$cfg['LeftFrameTableLevel'] = '1'; // How many sublevels should be displayed when splitting<br /> // up tables by the above Separator<br /><br />$cfg['ShowTooltip'] = TRUE; // display table comment as tooltip in left frame-----是否在框架左侧显示数据表内容提示<br /><br />$cfg['ShowTooltipAliasDB'] = FALSE; // if ShowToolTip is enabled, this defines that table/db comments<br /><br />$cfg['ShowTooltipAliasTB'] = FALSE; // are shown (in the left menu and db_details_structure) instead of<br /> // table/db names<br /><br />$cfg['LeftDisplayLogo'] = TRUE; // display logo at top of left frame-----是否在框架左侧显示phpmyadmin的logo<br /><br />$cfg['LeftDisplayServers'] = FALSE; // display server choice at top of left frame-----是否显示MySQL服务器选择选项<br /><br /><font color="red">// In the main frame, at startup...-----右侧主框架设置(刚进入时)<br />$cfg['ShowStats'] = TRUE; // allow to display statistics and space usage in<br /> // the pages about database details and table<br /> // properties<br />$cfg['ShowMysqlInfo'] = FALSE; -----是否显示MySQL运行时间// whether to display the "MySQL runtime<br />$cfg['ShowMysqlVars'] = FALSE; -----是否显示MySQL系统变量// information", "MySQL system variables", "PHP<br />$cfg['ShowPhpInfo'] = FALSE; -----是否显示PHP信息// information" and "change password" links for<br />$cfg['ShowChgPassword'] = FALSE; -----修改密码选项// simple users or not<br />$cfg['SuggestDBName'] = TRUE; -----是否显示要建立的数据库默认名字// suggest a new DB name if possible (false = keep empty)<br /><br />// In browse mode...<br />$cfg['ShowBlob'] = FALSE; // display blob field contents<br />$cfg['NavigationBarIconic'] = TRUE; // do not display text inside navigation bar buttons<br />$cfg['ShowAll'] = FALSE; // allows to display all the rows-----是否显示所有数据表行<br />$cfg['MaxRows'] = 30; // maximum number of rows to display-----数据表行每页显示的数量</font><br />$cfg['Order'] = 'ASC'; // default for 'ORDER BY' clause (valid<br /> // values are 'ASC', 'DESC' or 'SMART' -ie<br /> // descending order for fields of type<br /> // TIME, DATE, DATETIME & TIMESTAMP,<br /> // ascending order else-)<br /><br />// In edit mode...<br />$cfg['ProtectBinary'] = 'blob'; // disallow editing of binary fields<br /> // valid values are:<br /> // FALSE allow editing<br /> // 'blob' allow editing except for BLOB fields<br /> // 'all' disallow editing<br />$cfg['ShowFunctionFields'] = TRUE; // Display the function fields in edit/insert mode<br />$cfg['CharEditing'] = 'input';<br /> // Which editor should be used for CHAR/VARCHAR fields:<br /> // input - allows limiting of input length<br /> // textarea - allows newlines in fields<br /><br />// For the export features...<br />$cfg['ZipDump'] = TRUE; // Allow the use of zip/gzip/bzip<br />$cfg['GZipDump'] = TRUE; // compression for<br />$cfg['BZipDump'] = TRUE; // dump files<br />$cfg['CompressOnFly'] = TRUE; // Will compress gzip/bzip2 exports on<br /> // fly without need for much memory.<br /> // If you encounter problems with<br /> // created gzip/bzip2 files disable<br /> // this feature.<br /><br />// Tabs display settings<br />$cfg['LightTabs'] = FALSE; // use graphically less intense menu tabs<br />$cfg['PropertiesIconic'] = TRUE; // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')<br />$cfg['PropertiesNumColumns'] = 1; // How many columns should be used for table display of a database?<br /> // (a value larger than 1 results in some information being hidden)<br /><br />$cfg['DefaultTabServer'] = 'main.php';<br /> // Possible values:<br /> // 'main.php' = the welcome page<br /> // (recommended for multiuser setups)<br /> // 'server_databases.php' = list of databases<br /> // 'server_status.php' = runtime information<br /> // 'server_variables.php' = MySQL server variables<br /> // 'server_privileges.php' = user management<br /> // 'server_processlist.php' = process list<br />$cfg['DefaultTabDatabase'] = 'db_details_structure.php';<br /> // Possible values:<br /> // 'db_details_structure.php' = tables list<br /> // 'db_details.php' = sql form<br /> // 'db_search.php' = search query<br />$cfg['DefaultTabTable'] = 'tbl_properties_structure.php';<br /> // Possible values:<br /> // 'tbl_properties_structure.php' = fields list<br /> // 'tbl_properties.php' = sql form<br /> // 'tbl_select.php = select page<br /> // 'tbl_change.php = insert row page<br /><br />/**<br /> * Export defaults<br /> */<br /><br /><font color="red">$cfg['Export']['format'] = 'sql'; // sql/latex/excel/csv/xml-----导出文件的格式<br />$cfg['Export']['compression'] = 'none'; // none/zip/gzip/bzip2-----到处文件是否压缩<br /><br />$cfg['Export']['asfile'] = FALSE;----是否导出为文件<br />$cfg['Export']['onserver'] = FALSE;-----导出到服务器<br />$cfg['Export']['onserver_overwrite'] = FALSE;-----是否使用导出覆盖<br />$cfg['Export']['remember_file_template'] = TRUE;-----记住文件模板</font><br /><br />$cfg['Export']['csv_columns'] = FALSE;<br />$cfg['Export']['csv_null'] = 'NULL';<br />$cfg['Export']['csv_separator'] = ';';<br />$cfg['Export']['csv_enclosed'] = '"';<br />$cfg['Export']['csv_escaped'] = '\\';<br />$cfg['Export']['csv_terminated'] = 'AUTO';<br />$cfg['Export']['excel_columns'] = FALSE;<br />$cfg['Export']['excel_null'] = 'NULL';<br /><br />$cfg['Export']['latex_structure'] = TRUE;<br />$cfg['Export']['latex_data'] = TRUE;<br />$cfg['Export']['latex_columns'] = TRUE;<br />$cfg['Export']['latex_relation'] = TRUE;<br />$cfg['Export']['latex_comments'] = TRUE;<br />$cfg['Export']['latex_mime'] = TRUE;<br />$cfg['Export']['latex_null'] = '\textit{NULL}';<br />$cfg['Export']['latex_caption'] = TRUE;<br />$cfg['Export']['latex_data_label'] = 'tab:__TABLE__-data';<br />$cfg['Export']['latex_structure_label'] = 'tab:__TABLE__-structure';<br /><br />$cfg['Export']['sql_structure'] = TRUE;<br />$cfg['Export']['sql_data'] = TRUE;<br />$cfg['Export']['sql_drop_database'] = FALSE;<br />$cfg['Export']['sql_drop_table'] = FALSE;<br />$cfg['Export']['sql_auto_increment'] = TRUE;<br />$cfg['Export']['sql_backquotes'] = TRUE;<br />$cfg['Export']['sql_relation'] = FALSE;<br />$cfg['Export']['sql_columns'] = FALSE;<br />$cfg['Export']['sql_extended'] = FALSE;<br />$cfg['Export']['sql_comments'] = FALSE;<br />$cfg['Export']['sql_mime'] = FALSE;<br /><br />/**<br /> * Link to the official MySQL documentation.<br /> * Be sure to include no trailing slash on the path.<br /> * See http://www.mysql.com/documentation/index.html for more information<br /> * about MySQL manuals and their types.<br /> */<br />$cfg['MySQLManualBase'] = 'http://www.mysql.com/doc/en';-----MySQL在线手册地址<br /><br />/**<br /> * Type of MySQL documentation:<br /> * old - old style used in phpMyAdmin 2.3.0 and sooner<br /> * searchable - "Searchable, with user comments"<br /> * chapters - "HTML, one page per chapter"<br /> * big - "HTML, all on one page"<br /> * none - do not show documentation links<br /> */<br />$cfg['MySQLManualType'] = 'searchable';<br /><br /><br />/**<br /> * PDF options<br /> */<br />$cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');<br />$cfg['PDFDefaultPageSize'] = 'A4';-----PDF页默认大小<br /><br /><br />/**<br /> * Language and charset conversion settings<br /> */<br />// Default language to use, if not browser-defined or user-defined<br /><font color="red">$cfg['DefaultLang'] = 'en-iso-8859-1';-----如果想使phpmyadmin直接显示中文,这里填:zh</font><br /><br />// Force: always use this language - must be defined in<br />// libraries/select_lang.lib.php<br />// $cfg['Lang'] = 'en-iso-8859-1';<br />// Default charset to use for recoding of MySQL queries, does not take<br />// any effect when charsets recoding is switched off by<br />// $cfg['AllowAnywhereRecoding'] or in language file<br />// (see $cfg['AvailableCharsets'] to possible choices, you can add your own)<br /><font color="red">$cfg['DefaultCharset'] = 'iso-8859-1';-----默认的phpmyadmin语言,可设置为:gb2312</font><br /><br /><br />// Allow charset recoding of MySQL queries, must be also enabled in language<br />// file to make harder using other language files than unicode.<br />// Default value is FALSE to avoid problems on servers without the iconv<br />// extension and where dl() is not supported<br />$cfg['AllowAnywhereRecoding'] = FALSE;<br /><br />// You can select here which functions will be used for charset conversion.<br />// Possible values are:<br />// auto - automatically use available one (first is tested iconv, then<br />// recode)<br />// iconv - use iconv or libiconv functions<br />// recode - use recode_string function<br />$cfg['RecodingEngine'] = 'auto';<br /><br />// Specify some parameters for iconv used in charset conversion. See iconv<br />// documentation for details:<br />// http://www.gnu.org/software/libi ... v/iconv_open.3.html <br />$cfg['IconvExtraParams'] = '';<br /><br />// Available charsets for MySQL conversion. currently contains all which could<br />// be found in lang/* files and few more.<br />// Charsets will be shown in same order as here listed, so if you frequently<br />// use some of these move them to the top.<br />$cfg['AvailableCharsets'] = array(<br /> 'iso-8859-1',<br /> 'iso-8859-2',<br /> 'iso-8859-3',<br /> 'iso-8859-4',<br /> 'iso-8859-5',<br /> 'iso-8859-6',<br /> 'iso-8859-7',<br /> 'iso-8859-8',<br /> 'iso-8859-9',<br /> 'iso-8859-10',<br /> 'iso-8859-11',<br /> 'iso-8859-12',<br /> 'iso-8859-13',<br /> 'iso-8859-14',<br /> 'iso-8859-15',<br /> 'windows-1250',<br /> 'windows-1251',<br /> 'windows-1252',<br /> 'windows-1257',<br /> 'koi8-r',<br /> 'big5',<br /> 'gb2312',<br /> 'utf-8',<br /> 'utf-7',<br /> 'x-user-defined',<br /> 'euc-jp',<br /> 'ks_c_5601-1987',<br /> 'tis-620',<br /> 'SHIFT_JIS'<br />);<br /><br />// Loads language file<br />require('./libraries/select_lang.lib.php');<br /><br /><br />/**<br /> * Customization & design -----页面格式设定,以内容较多,可自行根据注释详细设定,这里给出部分注释<br /> */<br /><font color="red">$cfg['LeftWidth'] = 150; // left frame width-----左侧框架宽度<br /><br />$cfg['LeftBgColor'] = '#D0DCE0'; // background color for the left frame-----框架左侧的背景颜色<br /><br />$cfg['RightBgColor'] = '#F5F5F5'; // background color for the right frame-----框架右侧的背景颜色<br /><br />$cfg['RightBgImage'] = ''; // path to a background image for the right frame-----框架右侧的背景图片地址,不使用背景图片请留空<br /> // (leave blank for no background image)<br />$cfg['LeftPointerColor'] = '#CCFFCC'; // color of the pointer in left frame<br /> // (blank for no pointer)-----框架左侧的指向点颜色<br />$cfg['Border'] = 0; // border width on tables-----表格宽度<br />$cfg['ThBgcolor'] = '#D3DCE3'; // table header row colour-----表格头颜色<br />$cfg['BgcolorOne'] = '#CCCCCC'; // table data row colour-----表格中数据所在行的颜色<br />$cfg['BgcolorTwo'] = '#DDDDDD'; // table data row colour, alternate-----表格中数据所在行的交替颜色<br />$cfg['BrowsePointerColor'] = '#CCFFCC'; // color of the pointer in browse mode</font><br /> // (blank for no pointer)<br />$cfg['BrowseMarkerColor'] = '#FFCC99'; // color of the marker (visually marks row<br /> // by clicking on it) in browse mode<br /> // (blank for no marker)<br />$cfg['TextareaCols'] = 40; // textarea size (columns) in edit mode<br /> // (this value will be emphasized (*2) for sql<br /> // query textareas and (*1.25) for query window)<br />$cfg['TextareaRows'] = 7; // textarea size (rows) in edit mode<br />$cfg['LongtextDoubleTextarea'] = TRUE; // double size of textarea size for longtext fields<br />$cfg['TextareaAutoSelect'] = TRUE; // autoselect when clicking in the textarea of the querybox<br />$cfg['CharTextareaCols'] = 40; // textarea size (columns) for CHAR/VARCHAR<br />$cfg['CharTextareaRows'] = 2; // textarea size (rows) for CHAR/VARCHAR<br />$cfg['CtrlArrowsMoving'] = TRUE; // Enable Ctrl+Arrows moving between fields when editing?<br />$cfg['LimitChars'] = 50; // Max field data length in browse mode for all non-numeric fields<br />$cfg['ModifyDeleteAtLeft'] = TRUE; // show edit/delete links on left side of browse<br /> // (or at the top with vertical browse)<br />$cfg['ModifyDeleteAtRight'] = FALSE; // show edit/delete links on right side of browse<br /> // (or at the bottom with vertical browse)<br />$cfg['DefaultDisplay'] = 'horizontal'; // default display direction<br /> // (horizontal|vertical|horizontalflipped)<br />$cfg['DefaultPropDisplay'] = 'horizontal'; // default display direction for altering/<br /> // creating columns (tbl_properties)<br /> // (horizontal|vertical)<br /><br />$cfg['HeaderFlipType'] = 'css'; // table-header rotation via faking or css? (css|fake)<br /> // NOTE: CSS only works in IE browsers!<br />$cfg['ShowBrowseComments'] = TRUE; // shows stored relation-comments in 'browse' mode.<br />$cfg['ShowPropertyComments']= TRUE; // shows stored relation-comments in 'table property' mode.<br />$cfg['RepeatCells'] = 100; // repeat header names every X cells? (0 = deactivate)<br /><br />$cfg['QueryFrame'] = TRUE; // displays a new frame where a link to a querybox is always displayed.<br />$cfg['QueryFrameJS'] = TRUE; // whether to use JavaScript functions for opening a new window for SQL commands.<br /> // if set to 'false', the target of the querybox is always the right frame.<br />$cfg['QueryFrameDebug'] = FALSE; // display JS debugging link (DEVELOPERS only)<br />$cfg['QueryWindowWidth'] = 550; // Width of Query window<br />$cfg['QueryWindowHeight'] = 310; // Height of Query window<br />$cfg['QueryHistoryDB'] = FALSE; // Set to TRUE if you want DB-based query history.<br /> // If FALSE, this utilizes JS-routines to display<br /> // query history (lost by window close)<br />$cfg['QueryWindowDefTab'] = 'sql'; // which tab to display in the querywindow on startup<br /> // (sql|files|history|full)<br />$cfg['QueryHistoryMax'] = 25; // When using DB-based query history, how many entries<br /> // should be kept?<br />$cfg['BrowseMIME'] = TRUE; // Use MIME-Types (stored in column comments table) for<br />$cfg['MaxExactCount'] = 20000; // When approximate count < this, PMA will get exact count for<br /> // table rows.<br />$cfg['WYSIWYG-PDF'] = TRUE; // Utilize DHTML/JS capabilities to allow WYSIWYG editing of<br /> // the PDF page editor. Requires an IE6/Mozilla based browser.<br /><br />/**<br /> * SQL Query box settings<br /> * These are the links display in all of the SQL Query boxes<br /> */<br />$cfg['SQLQuery']['Edit'] = TRUE; // Edit link to change a query<br />$cfg['SQLQuery']['Explain'] = TRUE; // EXPLAIN on SELECT queries<br />$cfg['SQLQuery']['ShowAsPHP'] = TRUE; // Wrap a query in PHP<br />$cfg['SQLQuery']['Validate'] = FALSE; // Validate a query (see $cfg['SQLValidator'] as well)<br /><br /><br />/**<br /> * Webserver upload/save/import directories<br /> */<br />$cfg['UploadDir'] = ''; // Directory for uploaded files that can be executed by<br /> // phpMyAdmin. For example './upload'. Leave empty for<br /> // no upload directory support<br />$cfg['SaveDir'] = ''; // Directory where phpMyAdmin can save exported data on<br /> // server. For example './save'. Leave empty for no save<br /> // directory support.<br />$cfg['docSQLDir'] = ''; // Directory for docSQL imports, phpMyAdmin can import<br /> // docSQL files from that directory. For example<br /> // './docSQL'. Leave empty for no docSQL import support.<br /><br /><br />/**<br /> * Misc. settings<br /> */<br />$cfg['GD2Available'] = 'auto'; // Is GD >= 2 available? Set to yes/no/auto. 'auto'<br /> // does autodetection, which is a bit expensive for<br /> // php < 4.3.0, but it is the only safe vay how to<br /> // determine GD version.<br />/**<br /> * SQL Parser Settings<br /> */<br /><font color="red">]$cfg['SQP']['fmtType'] = 'html'; // 查询语句输出样式 (html, text, none)<br />$cfg['SQP']['fmtInd'] = '1'; // 每行间距(floats ok)<br />$cfg['SQP']['fmtIndUnit'] = 'em'; // 每行的缩进单位 (CSS Types - {em,px,pt})<br />$cfg['SQP']['fmtColor'] = array( // 语法颜色数据</font><br /> 'comment' => '#808000',<br /> 'comment_mysql' => '',<br /> 'comment_ansi' => '',<br /> 'comment_c' => '',<br /> 'digit' => '',<br /> 'digit_hex' => 'teal',<br /> 'digit_integer' => 'teal',<br /> 'digit_float' => 'aqua',<br /> 'punct' => 'fuchsia',<br /> 'alpha' => '',<br /> 'alpha_columnType' => '#FF9900',<br /> 'alpha_columnAttrib' => '#0000FF',<br /> 'alpha_reservedWord' => '#990099',<br /> 'alpha_functionName' => '#FF0000',<br /> 'alpha_identifier' => 'black',<br /> 'alpha_variable' => '#800000',<br /> 'quote' => '#008000',<br /> 'quote_double' => '',<br /> 'quote_single' => '',<br /> 'quote_backtick' => ''<br />);<br /><br /><br />/**<br /> * If you wish to use the SQL Validator service, you should be<br /> * aware of the following:<br /> * All SQL statements are stored anonymously for statistical purposes.<br /> * Mimer SQL Validator, Copyright 2002 Upright Database Technology.<br /> * All rights reserved.<br /> */<br />$cfg['SQLValidator']['use'] = FALSE; // Make the SQL Validator available<br />$cfg['SQLValidator']['username'] = ''; // If you have a custom username, specify it here (defaults to anonymous)<br />$cfg['SQLValidator']['password'] = ''; // Password for username<br /><br />/**<br /> * Developers ONLY!<br /> * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/<br /> */<br />$cfg['DBG']['enable'] = FALSE; // Make the DBG stuff available<br />$cfg['DBG']['profile']['enable'] = FALSE; // Produce profiling results of PHP<br />$cfg['DBG']['profile']['threshold'] = 0.5; // Threshold of long running code to display<br /> // Anything below the threshold is not displayed<br /><br /><br />/**<br /> * MySQL settings<br /> */<br />// Column types;<br />// varchar, tinyint, text and date are listed first, based on estimated popularity<br />$cfg['ColumnTypes'] = array(<br /> 'VARCHAR',<br /> 'TINYINT',<br /> 'TEXT',<br /> 'DATE',<br /> 'SMALLINT',<br /> 'MEDIUMINT',<br /> 'INT',<br /> 'BIGINT',<br /> 'FLOAT',<br /> 'DOUBLE',<br /> 'DECIMAL',<br /> 'DATETIME',<br /> 'TIMESTAMP',<br /> 'TIME',<br /> 'YEAR',<br /> 'CHAR',<br /> 'TINYBLOB',<br /> 'TINYTEXT',<br /> 'BLOB',<br /> 'MEDIUMBLOB',<br /> 'MEDIUMTEXT',<br /> 'LONGBLOB',<br /> 'LONGTEXT',<br /> 'ENUM',<br /> 'SET'<br />);<br /><br />// Atributes<br />$cfg['AttributeTypes'] = array(<br /> '',<br /> 'BINARY',<br /> 'UNSIGNED',<br /> 'UNSIGNED ZEROFILL'<br />);<br /><br />// Available functions<br />if ($cfg['ShowFunctionFields']) {<br /> $cfg['Functions'] = array(<br /> 'ASCII',<br /> 'CHAR',<br /> 'SOUNDEX',<br /> 'LCASE',<br /> 'UCASE',<br /> 'NOW',<br /> 'PASSWORD',<br /> 'MD5',<br /> 'ENCRYPT',<br /> 'RAND',<br /> 'LAST_INSERT_ID',<br /> 'COUNT',<br /> 'AVG',<br /> 'SUM',<br /> 'CURDATE',<br /> 'CURTIME',<br /> 'FROM_DAYS',<br /> 'FROM_UNIXTIME',<br /> 'PERIOD_ADD',<br /> 'PERIOD_DIFF',<br /> 'TO_DAYS',<br /> 'UNIX_TIMESTAMP',<br /> 'USER',<br /> 'WEEKDAY',<br /> 'CONCAT'<br /> );<br /> <br /> // Which column types will be mapped to which Group?<br /> $cfg['RestrictColumnTypes'] = array(<br /> 'VARCHAR' => 'FUNC_CHAR',<br /> 'TINYINT' => 'FUNC_NUMBER',<br /> 'TEXT' => 'FUNC_CHAR',<br /> 'DATE' => 'FUNC_DATE',<br /> 'SMALLINT' => 'FUNC_NUMBER',<br /> 'MEDIUMINT' => 'FUNC_NUMBER',<br /> 'INT' => 'FUNC_NUMBER',<br /> 'BIGINT' => 'FUNC_NUMBER',<br /> 'FLOAT' => 'FUNC_NUMBER',<br /> 'DOUBLE' => 'FUNC_NUMBER',<br /> 'DECIMAL' => 'FUNC_NUMBER',<br /> 'DATETIME' => 'FUNC_DATE',<br /> 'TIMESTAMP' => 'FUNC_DATE',<br /> 'TIME' => 'FUNC_DATE',<br /> 'YEAR' => 'FUNC_DATE',<br /> 'CHAR' => 'FUNC_CHAR',<br /> 'TINYBLOB' => 'FUNC_CHAR',<br /> 'TINYTEXT' => 'FUNC_CHAR',<br /> 'BLOB' => 'FUNC_CHAR',<br /> 'MEDIUMBLOB' => 'FUNC_CHAR',<br /> 'MEDIUMTEXT' => 'FUNC_CHAR',<br /> 'LONGBLOB' => 'FUNC_CHAR',<br /> 'LONGTEXT' => 'FUNC_CHAR',<br /> 'ENUM' => '',<br /> 'SET' => ''<br /> );<br /><br /> // Map above defined groups to any function<br /> $cfg['RestrictFunctions'] = array(<br /> 'FUNC_CHAR' => array(<br /> 'ASCII',<br /> 'CHAR',<br /> 'SOUNDEX',<br /> 'LCASE',<br /> 'UCASE',<br /> 'PASSWORD',<br /> 'MD5',<br /> 'ENCRYPT',<br /> 'LAST_INSERT_ID',<br /> 'USER',<br /> 'CONCAT'<br /> ),<br /><br /> 'FUNC_DATE' => array(<br /> 'NOW',<br /> 'CURDATE',<br /> 'CURTIME',<br /> 'FROM_DAYS',<br /> 'FROM_UNIXTIME',<br /> 'PERIOD_ADD',<br /> 'PERIOD_DIFF',<br /> 'TO_DAYS',<br /> 'UNIX_TIMESTAMP',<br /> 'WEEKDAY'<br /> ),<br /><br /> 'FUNC_NUMBER' => array(<br /> 'ASCII',<br /> 'CHAR',<br /> 'MD5',<br /> 'ENCRYPT',<br /> 'RAND',<br /> 'LAST_INSERT_ID',<br /> 'COUNT',<br /> 'AVG',<br /> 'SUM'<br /> )<br /> );<br /> <br />} // end if<br /><br /><br />/**<br /> * Unset magic_quotes_runtime - do not change!<br /> */<br />set_magic_quotes_runtime(0);<br /><br />/**<br /> * File Revision - do not change either!<br /> */<br />$cfg['FileRevision'] = '$Revision: 1.204.2.1 $';<br />?></blockquote><br />[<i> Last edited by yecoo on 2004-3-18 at 09:04 PM </i>]全部<em>, </em>内容<em>, </em>如下
頁:
[1]