当前位置: 移动技术网 > IT编程>开发语言>PHP > phpmyadmin 常用选项设置详解版

phpmyadmin 常用选项设置详解版

2019年05月01日  | 移动技术网IT编程  | 我要评论

香娇楼,thinkpad t,海豚村

config.inc.php全部内容如下:(以phpmyadmin2.5.4为例)
<?php
/* $id: config.inc.php,v 1.204.2.1 2003/10/10 14:24:24 nijel exp $ */
// vim: expandtab sw=4 ts=4 sts=4:

/**
* phpmyadmin configuration file
*
* all directives are explained in documentation.html
*/


/**
* sets the php error reporting - please do not change this line!
*/
if (!isset($old_error_reporting)) {
    error_reporting(e_all);
    @ini_set('display_errors', '1');
}


/**
* your phpmyadmin url
*
* complete the variable below with the full url ie
*   
*
* it must contain characters that are valid for a url, and the path is
* case sensitive on some web servers, for example unix-based servers.
*
* in most cases you can leave this variable empty, as the correct value
* will be detected automatically. however, we recommend that you do
* test to see that the auto-detection code works in your system. a good
* test is to browse a table, then edit a row and save it.  there will be
* an error message if phpmyadmin cannot auto-detect the correct value.
*
* if the auto-detection code does work properly, you can set to true the
* $cfg['pmaabsoluteuri_disablewarning'] variable below.
*/
$cfg['pmaabsoluteuri'] = '';-----这里设置你的phpmyadmin的url,如:


/**
* disable the default warning about $cfg['pmaabsoluteuri'] not being set
* you should use this if and only if the pmaabsoluteuri auto-detection
* works perfectly.
*/
$cfg['pmaabsoluteuri_disablewarning'] = false;

/**
* disable the default warning that is displayed on the db details structure page if
* any of the required tables for the relationfeatures could not be found
*/
$cfg['pmanorelation_disablewarning']  = false;

/**
* the 'cookie' auth_type uses blowfish algorithm to encrypt the password. if
* at least one server configuration uses 'cookie' auth_type, enter here a
* passphrase that will be used by blowfish.
$cfg['blowfish_secret'] = '';-----设定好root密码后这里也要填写

/**
* server(s) configuration
*/
$i = 0;
// the $cfg['servers'] array starts with $cfg['servers'][1].  do not use $cfg['servers'][0].
// you can disable a server config entry by setting host to ''.
$i++;
$cfg['servers'][$i]['host']          = 'localhost'; // mysql hostname or ip address----这里可以设定远程mysql服务器ip地址

$cfg['servers'][$i]['port']          = '';          // mysql port - leave blank for default port-----默认为3306


$cfg['servers'][$i]['socket']        = '';          // path to the socket - leave blank for default socket

$cfg['servers'][$i]['connect_type']  = 'tcp';       // how to connect to mysql server ('tcp' or 'socket')-----连接mysql服务器的方式

$cfg['servers'][$i]['compress']      = false;       // use compressed protocol for the mysql connection
                                                    // (requires php >= 4.3.0)-----是否使用压缩协议,php版本须>= 4.3.0

$cfg['servers'][$i]['controluser']   = '';          // mysql control user settings
                                                    // (this user must have read-only
$cfg['servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
                                                    // and "mysql/db" tables)-----mysql控制用户设定,该用户只对mysql数据库下的user和db表有完全权限

$cfg['servers'][$i]['auth_type']     = 'config';   
// authentication method (config, http or cookie based)?-----如果php安装模式为apache,可以使用http和cookie;如果php安装模式为cgi,可以使用cookie;默认为config,是不安全的,不推荐。

$cfg['servers'][$i]['user']          = 'root';      // mysql user-----mysql连接用户

$cfg['servers'][$i]['password']      = '';         
// mysql password (only needed with 'config' auth_type)-----mysql连接密码,建议在安装好php和mysql后,先用phpmyadmin设定root密码,然后在这里填写

$cfg['servers'][$i]['only_db']       = '';          // if set to a db-name, only
                                                    // this db is displayed
                                                    // at left frame
                                                    // it may also be an array
                                                    // of db-names-----如果在这里设定一个数据库的名字,那么登陆后框架左边将只显示这个数据库


$cfg['servers'][$i]['verbose']       = '';          // verbose name for this host - leave blank to show the hostname

$cfg['servers'][$i]['pmadb']         = '';          // database used for relation, bookmark and pdf features
                                                    // (see scripts/create_tables.sql)
                                                    //   - leave blank for no support
                                                    //     default: 'phpmyadmin'
$cfg['servers'][$i]['bookmarktable'] = '';          // bookmark table
                                                    //   - leave blank for no bookmark support
                                                    //     default: 'pma_bookmark'
$cfg['servers'][$i]['relation']      = '';          // table to describe the relation between links (see doc)
                                                    //   - leave blank for no relation-links support
                                                    //     default: 'pma_relation'
$cfg['servers'][$i]['table_info']    = '';          // table to describe the display fields
                                                    //   - leave blank for no display fields support
                                                    //     default: 'pma_table_info'
$cfg['servers'][$i]['table_coords']  = '';          // table to describe the tables position for the pdf schema
                                                    //   - leave blank for no pdf schema support
                                                    //     default: 'pma_table_coords'
$cfg['servers'][$i]['pdf_pages']     = '';          // table to describe pages of relationpdf
                                                    //   - leave blank if you don't want to use this
                                                    //     default: 'pma_pdf_pages'
$cfg['servers'][$i]['column_info']   = '';          // table to store column information
                                                    //   - leave blank for no column comments/mime types
                                                    //     default: 'pma_column_info'
$cfg['servers'][$i]['history']       = '';          // table to store sql history
                                                    //   - leave blank for no sql query history
                                                    //     default: 'pma_history'
$cfg['servers'][$i]['verbose_check'] = true;        // set to false if you know that your pma_* tables
                                                    // are up to date. this prevents compatibility
                                                    // checks and thereby increases performance.
$cfg['servers'][$i]['allowdeny']['order']           // host authentication order, leave blank to not use
                                     = '';
$cfg['servers'][$i]['allowdeny']['rules']           // host authentication rules, leave blank for defaults
                                     = array();


$i++;
$cfg['servers'][$i]['host']            = '';
$cfg['servers'][$i]['port']            = '';
$cfg['servers'][$i]['socket']          = '';
$cfg['servers'][$i]['connect_type']    = 'tcp';
$cfg['servers'][$i]['compress']        = false;
$cfg['servers'][$i]['controluser']     = '';
$cfg['servers'][$i]['controlpass']     = '';
$cfg['servers'][$i]['auth_type']       = 'config';
$cfg['servers'][$i]['user']            = 'root';
$cfg['servers'][$i]['password']        = '';
$cfg['servers'][$i]['only_db']         = '';
$cfg['servers'][$i]['verbose']         = '';
$cfg['servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
$cfg['servers'][$i]['bookmarktable']   = ''; // 'pma_bookmark'
$cfg['servers'][$i]['relation']        = ''; // 'pma_relation'
$cfg['servers'][$i]['table_info']      = ''; // 'pma_table_info'
$cfg['servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
$cfg['servers'][$i]['pdf_pages']       = ''; // 'pma_pdf_pages'
$cfg['servers'][$i]['column_info']     = ''; // 'pma_column_info'
$cfg['servers'][$i]['history']         = ''; // 'pma_history'
$cfg['servers'][$i]['verbose_check']   = true;
$cfg['servers'][$i]['allowdeny']['order']
                                       = '';
$cfg['servers'][$i]['allowdeny']['rules']
                                       = array();

$i++;
$cfg['servers'][$i]['host']            = '';
$cfg['servers'][$i]['port']            = '';
$cfg['servers'][$i]['socket']          = '';
$cfg['servers'][$i]['connect_type']    = 'tcp';
$cfg['servers'][$i]['compress']        = false;
$cfg['servers'][$i]['controluser']     = '';
$cfg['servers'][$i]['controlpass']     = '';
$cfg['servers'][$i]['auth_type']       = 'config';
$cfg['servers'][$i]['user']            = 'root';
$cfg['servers'][$i]['password']        = '';
$cfg['servers'][$i]['only_db']         = '';
$cfg['servers'][$i]['verbose']         = '';
$cfg['servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
$cfg['servers'][$i]['bookmarktable']   = ''; // 'pma_bookmark'
$cfg['servers'][$i]['relation']        = ''; // 'pma_relation'
$cfg['servers'][$i]['table_info']      = ''; // 'pma_table_info'
$cfg['servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
$cfg['servers'][$i]['pdf_pages']       = ''; // 'pma_pdf_pages'
$cfg['servers'][$i]['column_info']     = ''; // 'pma_column_info'
$cfg['servers'][$i]['history']         = ''; // 'pma_history'
$cfg['servers'][$i]['verbose_check']   = true;
$cfg['servers'][$i]['allowdeny']['order']
                                       = '';
$cfg['servers'][$i]['allowdeny']['rules']
                                       = array();

// if you have more than one server configured, you can set $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.[color]=red]-----是否显示所有的mysql服务器
$cfg['serverdefault'] = 1;              // default server (0 = no default server)
$cfg['server']        = '';
unset($cfg['servers'][0]);


/**
* other core phpmyadmin settings
*/
$cfg['obgzip']                  = 'auto'; // use gzip output buffering if possible (true|false|'auto')-----有必要的话是否使用gzip输出缓冲

$cfg['persistentconnections']   = false;  // use persistent connections to mysql database-----是否使用mysql持久连接,即pconnect

$cfg['exectimelimit']           = 300;    // maximum execution time in seconds (0 for no limit)-----最大脚本执行时间,单位:秒


$cfg['skiplockedtables']        = false;  // mark used tables, make possible to show
                                          // locked tables (since mysql 3.23.30)
$cfg['showsql']                 = true;   // show sql queries as run-----运行查询时显示sql查询语句

$cfg['allowuserdropdatabase']   = false;  // show a 'drop database' link to normal users-----是否对普通用户显示“删除数据库”连接

$cfg['confirm']                 = true;   // confirm 'drop table' & 'drop database'-----删除数据表/库前是否出现确认提示框

$cfg['logincookierecall']       = true;   // recall previous login in cookie auth. mode or not-----是否收回先前cookie认证模式的cookie


$cfg['usedbsearch']             = true;   // whether to enable the "database search" feature
                                          // or not
$cfg['ignoremultisubmiterrors'] = false;  // if set to true, pma continues computing multiple-statement queries
                                          // even if one of the queries failed
$cfg['verbosemultisubmit']      = true;   // if set to true, pma will show the affected rows of each statement on
                                          // multiple-statement queries. see the read_dump.php file for hardcoded
                                          // defaults on how many queries a statement may contain!
$cfg['allowarbitraryserver']    = false;  // allow login to any user entered server in cookie based auth

// left frame setup-----左侧框架设置
$cfg['leftframelight']        = true;   .-----是否使用下拉框显示当前数据库// use a select-based menu and display only the
                                        // current tables in the left frame
$cfg['leftframetableseparator']= '__';  // which string will be used to generate table prefixes
                                        // to split tables into multiple categories
$cfg['leftframetablelevel']   = '1';    // how many sublevels should be displayed when splitting
                                        // up tables by the above separator

$cfg['showtooltip']           = true;   // display table comment as tooltip in left frame-----是否在框架左侧显示数据表内容提示

$cfg['showtooltipaliasdb']    = false;  // if showtooltip is enabled, this defines that table/db comments

$cfg['showtooltipaliastb']    = false;  // are shown (in the left menu and db_details_structure) instead of
                                        // table/db names

$cfg['leftdisplaylogo']       = true;   // display logo at top of left frame-----是否在框架左侧显示phpmyadmin的logo

$cfg['leftdisplayservers']    = false;  // display server choice at top of left frame-----是否显示mysql服务器选择选项

// in the main frame, at startup...-----右侧主框架设置(刚进入时)
$cfg['showstats']             = true;   // allow to display statistics and space usage in
                                        // the pages about database details and table
                                        // properties
$cfg['showmysqlinfo']         = false;  -----是否显示mysql运行时间// whether to display the "mysql runtime
$cfg['showmysqlvars']         = false;  -----是否显示mysql系统变量// information", "mysql system variables", "php
$cfg['showphpinfo']           = false;  -----是否显示php信息// information" and "change password" links for
$cfg['showchgpassword']    = false;  -----修改密码选项// simple users or not
$cfg['suggestdbname']       = true;   -----是否显示要建立的数据库默认名字// suggest a new db name if possible (false = keep empty)

// in browse mode...
$cfg['showblob']              = false;  // display blob field contents
$cfg['navigationbariconic']   = true;   // do not display text inside navigation bar buttons
$cfg['showall']               = false;  // allows to display all the rows-----是否显示所有数据表行
$cfg['maxrows']               = 30;     // maximum number of rows to display-----数据表行每页显示的数量

$cfg['order']                 = 'asc';  // 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-)

// in edit mode...
$cfg['protectbinary']         = 'blob'; // disallow editing of binary fields
                                        // valid values are:
                                        //   false  allow editing
                                        //   'blob' allow editing except for blob fields
                                        //   'all'  disallow editing
$cfg['showfunctionfields']    = true;   // display the function fields in edit/insert mode
$cfg['charediting']           = 'input';
                                        // which editor should be used for char/varchar fields:
                                        //  input - allows limiting of input length
                                        //  textarea - allows newlines in fields

// for the export features...
$cfg['zipdump']               = true;   // allow the use of zip/gzip/bzip
$cfg['gzipdump']              = true;   // compression for
$cfg['bzipdump']              = true;   // dump files
$cfg['compressonfly']         = true;   // will compress gzip/bzip2 exports on
                                        // fly without need for much memory.
                                        // if you encounter problems with
                                        // created gzip/bzip2 files disable
                                        // this feature.

// tabs display settings
$cfg['lighttabs']             = false;  // use graphically less intense menu tabs
$cfg['propertiesiconic']      = true;   // use icons instead of text for the table display of a database (true|false|'both')
$cfg['propertiesnumcolumns']  = 1;      // how many columns should be used for table display of a database?
                                        // (a value larger than 1 results in some information being hidden)

$cfg['defaulttabserver']      = 'main.php';
                                   // 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
$cfg['defaulttabdatabase']    = 'db_details_structure.php';
                                   // possible values:
                                   // 'db_details_structure.php' = tables list
                                   // 'db_details.php' = sql form
                                   // 'db_search.php' = search query
$cfg['defaulttabtable']       = 'tbl_properties_structure.php';
                                   // possible values:
                                   // 'tbl_properties_structure.php' = fields list
                                   // 'tbl_properties.php' = sql form
                                   // 'tbl_select.php = select page
                                   // 'tbl_change.php = insert row page

/**
* export defaults
*/

$cfg['export']['format']                    = 'sql';  // sql/latex/excel/csv/xml-----导出文件的格式
$cfg['export']['compression']               = 'none'; // none/zip/gzip/bzip2-----到处文件是否压缩

$cfg['export']['asfile']                    = false;----是否导出为文件
$cfg['export']['onserver']                  = false;-----导出到服务器
$cfg['export']['onserver_overwrite']        = false;-----是否使用导出覆盖
$cfg['export']['remember_file_template']    = true;-----记住文件模板


$cfg['export']['csv_columns']               = false;
$cfg['export']['csv_null']                  = 'null';
$cfg['export']['csv_separator']             = ';';
$cfg['export']['csv_enclosed']              = '"';
$cfg['export']['csv_escaped']               = '\\';
$cfg['export']['csv_terminated']            = 'auto';
$cfg['export']['excel_columns']             = false;
$cfg['export']['excel_null']                = 'null';

$cfg['export']['latex_structure']           = true;
$cfg['export']['latex_data']                = true;
$cfg['export']['latex_columns']             = true;
$cfg['export']['latex_relation']            = true;
$cfg['export']['latex_comments']            = true;
$cfg['export']['latex_mime']                = true;
$cfg['export']['latex_null']                = '\textit{null}';
$cfg['export']['latex_caption']             = true;
$cfg['export']['latex_data_label']          = 'tab:__table__-data';
$cfg['export']['latex_structure_label']     = 'tab:__table__-structure';

$cfg['export']['sql_structure']             = true;
$cfg['export']['sql_data']                  = true;
$cfg['export']['sql_drop_database']         = false;
$cfg['export']['sql_drop_table']            = false;
$cfg['export']['sql_auto_increment']        = true;
$cfg['export']['sql_backquotes']            = true;
$cfg['export']['sql_relation']              = false;
$cfg['export']['sql_columns']               = false;
$cfg['export']['sql_extended']              = false;
$cfg['export']['sql_comments']              = false;
$cfg['export']['sql_mime']                  = false;

/**
* link to the official mysql documentation.
* be sure to include no trailing slash on the path.
* see for more information
* about mysql manuals and their types.
*/
$cfg['mysqlmanualbase'] = 'http://www.mysql.com/doc/en';-----mysql在线手册地址

/**
* type of mysql documentation:
*   old        - old style used in phpmyadmin 2.3.0 and sooner
*   searchable - "searchable, with user comments"
*   chapters   - "html, one page per chapter"
*   big        - "html, all on one page"
*   none       - do not show documentation links
*/
$cfg['mysqlmanualtype'] = 'searchable';


/**
* pdf options
*/
$cfg['pdfpagesizes']        = array('a3', 'a4', 'a5', 'letter', 'legal');
$cfg['pdfdefaultpagesize']  = 'a4';-----pdf页默认大小


/**
* language and charset conversion settings
*/
// default language to use, if not browser-defined or user-defined
$cfg['defaultlang'] = 'en-iso-8859-1';-----如果想使phpmyadmin直接显示中文,这里填:zh

// force: always use this language - must be defined in
//        libraries/select_lang.lib.php
// $cfg['lang']     = 'en-iso-8859-1';
// default charset to use for recoding of mysql queries, does not take
// any effect when charsets recoding is switched off by
// $cfg['allowanywhererecoding'] or in language file
// (see $cfg['availablecharsets'] to possible choices, you can add your own)
$cfg['defaultcharset'] = 'iso-8859-1';-----默认的phpmyadmin语言,可设置为:gb2312


// allow charset recoding of mysql queries, must be also enabled in language
// file to make harder using other language files than unicode.
// default value is false to avoid problems on servers without the iconv
// extension and where dl() is not supported
$cfg['allowanywhererecoding'] = false;

// you can select here which functions will be used for charset conversion.
// possible values are:
//      auto   - automatically use available one (first is tested iconv, then
//               recode)
//      iconv  - use iconv or libiconv functions
//      recode - use recode_string function
$cfg['recodingengine'] = 'auto';

// specify some parameters for iconv used in charset conversion. see iconv
// documentation for details:
//
$cfg['iconvextraparams'] = '';

// available charsets for mysql conversion. currently contains all which could
// be found in lang/* files and few more.
// charsets will be shown in same order as here listed, so if you frequently
// use some of these move them to the top.
$cfg['availablecharsets'] = array(
    'iso-8859-1',
    'iso-8859-2',
    'iso-8859-3',
    'iso-8859-4',
    'iso-8859-5',
    'iso-8859-6',
    'iso-8859-7',
    'iso-8859-8',
    'iso-8859-9',
    'iso-8859-10',
    'iso-8859-11',
    'iso-8859-12',
    'iso-8859-13',
    'iso-8859-14',
    'iso-8859-15',
    'windows-1250',
    'windows-1251',
    'windows-1252',
    'windows-1257',
    'koi8-r',
    'big5',
    'gb2312',
    'utf-8',
    'utf-7',
    'x-user-defined',
    'euc-jp',
    'ks_c_5601-1987',
    'tis-620',
    'shift_jis'
);

// loads language file
require('./libraries/select_lang.lib.php');


/**
* customization & design -----页面格式设定,以内容较多,可自行根据注释详细设定,这里给出部分注释
*/
$cfg['leftwidth']           = 150;          // left frame width-----左侧框架宽度

$cfg['leftbgcolor']         = '#d0dce0';    // background color for the left frame-----框架左侧的背景颜色

$cfg['rightbgcolor']        = '#f5f5f5';    // background color for the right frame-----框架右侧的背景颜色

$cfg['rightbgimage']        = '';           // path to a background image for the right frame-----框架右侧的背景图片地址,不使用背景图片请留空
                                            // (leave blank for no background image)
$cfg['leftpointercolor']    = '#ccffcc';    // color of the pointer in left frame
                                            // (blank for no pointer)-----框架左侧的指向点颜色
$cfg['border']              = 0;            // border width on tables-----表格宽度
$cfg['thbgcolor']           = '#d3dce3';    // table header row colour-----表格头颜色
$cfg['bgcolorone']          = '#cccccc';    // table data row colour-----表格中数据所在行的颜色
$cfg['bgcolortwo']          = '#dddddd';    // table data row colour, alternate-----表格中数据所在行的交替颜色
$cfg['browsepointercolor']  = '#ccffcc';    // color of the pointer in browse mode

                                            // (blank for no pointer)
$cfg['browsemarkercolor']   = '#ffcc99';    // color of the marker (visually marks row
                                            // by clicking on it) in browse mode
                                            // (blank for no marker)
$cfg['textareacols']        = 40;           // textarea size (columns) in edit mode
                                            // (this value will be emphasized (*2) for sql
                                            // query textareas and (*1.25) for query window)
$cfg['textarearows']        = 7;            // textarea size (rows) in edit mode
$cfg['longtextdoubletextarea'] = true;      // double size of textarea size for longtext fields
$cfg['textareaautoselect']  = true;         // autoselect when clicking in the textarea of the querybox
$cfg['chartextareacols']    = 40;           // textarea size (columns) for char/varchar
$cfg['chartextarearows']    = 2;            // textarea size (rows) for char/varchar
$cfg['ctrlarrowsmoving']    = true;         // enable ctrl+arrows moving between fields when editing?
$cfg['limitchars']          = 50;           // max field data length in browse mode for all non-numeric fields
$cfg['modifydeleteatleft']  = true;         // show edit/delete links on left side of browse
                                            // (or at the top with vertical browse)
$cfg['modifydeleteatright'] = false;        // show edit/delete links on right side of browse
                                            // (or at the bottom with vertical browse)
$cfg['defaultdisplay']      = 'horizontal'; // default display direction
                                            // (horizontal|vertical|horizontalflipped)
$cfg['defaultpropdisplay']  = 'horizontal'; // default display direction for altering/
                                            // creating columns (tbl_properties)
                                            // (horizontal|vertical)

$cfg['headerfliptype']      = 'css';        // table-header rotation via faking or css? (css|fake)
                                            // note: css only works in ie browsers!
$cfg['showbrowsecomments']  = true;         // shows stored relation-comments in 'browse' mode.
$cfg['showpropertycomments']= true;         // shows stored relation-comments in 'table property' mode.
$cfg['repeatcells']         = 100;          // repeat header names every x cells? (0 = deactivate)

$cfg['queryframe']          = true;         // displays a new frame where a link to a querybox is always displayed.
$cfg['queryframejs']        = true;         // whether to use javascript functions for opening a new window for sql commands.
                                            // if set to 'false', the target of the querybox is always the right frame.
$cfg['queryframedebug']     = false;        // display js debugging link (developers only)
$cfg['querywindowwidth']    = 550;          // width of query window
$cfg['querywindowheight']   = 310;          // height of query window
$cfg['queryhistorydb']      = false;         // set to true if you want db-based query history.
                                            // if false, this utilizes js-routines to display
                                            // query history (lost by window close)
$cfg['querywindowdeftab']   = 'sql';        // which tab to display in the querywindow on startup
                                            // (sql|files|history|full)
$cfg['queryhistorymax']     = 25;           // when using db-based query history, how many entries
                                            // should be kept?
$cfg['browsemime']          = true;         // use mime-types (stored in column comments table) for
$cfg['maxexactcount']       = 20000;        // when approximate count < this, pma will get exact count for
                                            // table rows.
$cfg['wysiwyg-pdf']         = true;         // utilize dhtml/js capabilities to allow wysiwyg editing of
                                            // the pdf page editor. requires an ie6/mozilla based browser.

/**
* sql query box settings
* these are the links display in all of the sql query boxes
*/
$cfg['sqlquery']['edit']      = true;       // edit link to change a query
$cfg['sqlquery']['explain']   = true;       // explain on select queries
$cfg['sqlquery']['showasphp'] = true;       // wrap a query in php
$cfg['sqlquery']['validate']  = false;      // validate a query (see $cfg['sqlvalidator'] as well)


/**
* webserver upload/save/import directories
*/
$cfg['uploaddir']             = '';         // directory for uploaded files that can be executed by
                                            // phpmyadmin. for example './upload'. leave empty for
                                            // no upload directory support
$cfg['savedir']               = '';         // directory where phpmyadmin can save exported data on
                                            // server. for example './save'. leave empty for no save
                                            // directory support.
$cfg['docsqldir']             = '';         // directory for docsql imports, phpmyadmin can import
                                            // docsql files from that directory. for example
                                            // './docsql'. leave empty for no docsql import support.


/**
* misc. settings
*/
$cfg['gd2available']          = 'auto';     // is gd >= 2 available? set to yes/no/auto. 'auto'
                                            // does autodetection, which is a bit expensive for
                                            // php < 4.3.0, but it is the only safe vay how to
                                            // determine gd version.
/**
* sql parser settings
*/
]$cfg['sqp']['fmttype']      = 'html';       // 查询语句输出样式 (html, text, none)
$cfg['sqp']['fmtind']       = '1';             // 每行间距(floats ok)
$cfg['sqp']['fmtindunit']   = 'em';         // 每行的缩进单位 (css types - {em,px,pt})
$cfg['sqp']['fmtcolor']     = array(         // 语法颜色数据

    'comment'            => '#808000',
    'comment_mysql'      => '',
    'comment_ansi'       => '',
    'comment_c'          => '',
    'digit'              => '',
    'digit_hex'          => 'teal',
    'digit_integer'      => 'teal',
    'digit_float'        => 'aqua',
    'punct'              => 'fuchsia',
    'alpha'              => '',
    'alpha_columntype'   => '#ff9900',
    'alpha_columnattrib' => '#0000ff',
    'alpha_reservedword' => '#990099',
    'alpha_functionname' => '#ff0000',
    'alpha_identifier'   => 'black',
    'alpha_variable'     => '#800000',
    'quote'              => '#008000',
    'quote_double'       => '',
    'quote_single'       => '',
    'quote_backtick'     => ''
);


/**
* if you wish to use the sql validator service, you should be
* aware of the following:
* all sql statements are stored anonymously for statistical purposes.
* mimer sql validator, copyright 2002 upright database technology.
* all rights reserved.
*/
$cfg['sqlvalidator']['use']      = false;   // make the sql validator available
$cfg['sqlvalidator']['username'] = '';      // if you have a custom username, specify it here (defaults to anonymous)
$cfg['sqlvalidator']['password'] = '';      // password for username

/**
* developers only!
* to use the following, please install the dbg extension from
*/
$cfg['dbg']['enable'] = false;              // make the dbg stuff available
$cfg['dbg']['profile']['enable'] = false;   // produce profiling results of php
$cfg['dbg']['profile']['threshold'] = 0.5;  // threshold of long running code to display
                                            // anything below the threshold is not displayed


/**
* mysql settings
*/
// column types;
// varchar, tinyint, text and date are listed first, based on estimated popularity
$cfg['columntypes'] = array(
   'varchar',
   'tinyint',
   'text',
   'date',
   'smallint',
   'mediumint',
   'int',
   'bigint',
   'float',
   'double',
   'decimal',
   'datetime',
   'timestamp',
   'time',
   'year',
   'char',
   'tinyblob',
   'tinytext',
   'blob',
   'mediumblob',
   'mediumtext',
   'longblob',
   'longtext',
   'enum',
   'set'
);

// atributes
$cfg['attributetypes'] = array(
   '',
   'binary',
   'unsigned',
   'unsigned zerofill'
);

// available functions
if ($cfg['showfunctionfields']) {
    $cfg['functions'] = array(
       'ascii',
       'char',
       'soundex',
       'lcase',
       'ucase',
       'now',
       'password',
       'md5',
       'encrypt',
       'rand',
       'last_insert_id',
       'count',
       'avg',
       'sum',
       'curdate',
       'curtime',
       'from_days',
       'from_unixtime',
       'period_add',
       'period_diff',
       'to_days',
       'unix_timestamp',
       'user',
       'weekday',
       'concat'
    );

    // which column types will be mapped to which group?
    $cfg['restrictcolumntypes'] = array(
       'varchar'      => 'func_char',
       'tinyint'      => 'func_number',
       'text'         => 'func_char',
       'date'         => 'func_date',
       'smallint'     => 'func_number',
       'mediumint'    => 'func_number',
       'int'          => 'func_number',
       'bigint'       => 'func_number',
       'float'        => 'func_number',
       'double'       => 'func_number',
       'decimal'      => 'func_number',
       'datetime'     => 'func_date',
       'timestamp'    => 'func_date',
       'time'         => 'func_date',
       'year'         => 'func_date',
       'char'         => 'func_char',
       'tinyblob'     => 'func_char',
       'tinytext'     => 'func_char',
       'blob'         => 'func_char',
       'mediumblob'   => 'func_char',
       'mediumtext'   => 'func_char',
       'longblob'     => 'func_char',
       'longtext'     => 'func_char',
       'enum'         => '',
       'set'          => ''
    );

    // map above defined groups to any function
    $cfg['restrictfunctions'] = array(
        'func_char'   => array(
            'ascii',
            'char',
            'soundex',
            'lcase',
            'ucase',
            'password',
            'md5',
            'encrypt',
            'last_insert_id',
            'user',
            'concat'
        ),

        'func_date'   => array(
            'now',
            'curdate',
            'curtime',
            'from_days',
            'from_unixtime',
            'period_add',
            'period_diff',
            'to_days',
            'unix_timestamp',
            'weekday'
        ),

        'func_number' => array(
            'ascii',
            'char',
            'md5',
            'encrypt',
            'rand',
            'last_insert_id',
            'count',
            'avg',
            'sum'
        )
    );

} // end if


/**
* unset magic_quotes_runtime - do not change!
*/
set_magic_quotes_runtime(0);

/**
* file revision - do not change either!
*/
$cfg['filerevision'] = '$revision: 1.204.2.1 $';
?>

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网