程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> 關於MYSQL數據庫 >> PHPMyadmin配置文件詳解

PHPMyadmin配置文件詳解

編輯:關於MYSQL數據庫
PHP  Myadmin配置文件config.inc.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

* http://www.your_web.Net/path_to_your_PHPMyAdmin_directory/

*

* 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,如:http://localhost/PHPmyadmin/

  

/**

* 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 http://www.MySQL.com/documentation/index.Html 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:

// http://www.gnu.org/software/libi ... v/iconv_open.3.Html

$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 http://dd.cron.ru/dbg/

*/

$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 $';

?>

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved