3 // vim: expandtab sw=4 ts=4 sts=4:
6 * phpMyAdmin Configuration File
8 * All directives are explained in Documentation.html
13 * Sets the php error reporting - Please do not change this line!
15 if (!isset($old_error_reporting)) {
16 error_reporting(E_ALL
);
17 @ini_set
('display_errors', '1');
24 * Complete the variable below with the full url ie
25 * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
27 * It must contain characters that are valid for a URL, and the path is
28 * case sensitive on some Web servers, for example Unix-based servers.
30 * In most cases you can leave this variable empty, as the correct value
31 * will be detected automatically. However, we recommend that you do
32 * test to see that the auto-detection code works in your system. A good
33 * test is to browse a table, then edit a row and save it. There will be
34 * an error message if phpMyAdmin cannot auto-detect the correct value.
36 * If the auto-detection code does work properly, you can set to TRUE the
37 * $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
39 $cfg['PmaAbsoluteUri'] = '';
43 * Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
44 * You should use this if and ONLY if the PmaAbsoluteUri auto-detection
47 $cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;
50 * Disable the default warning that is displayed on the DB Details Structure page if
51 * any of the required Tables for the relationfeatures could not be found
53 $cfg['PmaNoRelation_DisableWarning'] = FALSE;
57 * Server(s) configuration
60 // The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
61 // You can disable a server config entry by setting host to ''.
63 $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
64 $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
65 $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
66 $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
67 $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
68 // (requires PHP >= 4.3.0)
69 $cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
70 // (this user must have read-only
71 $cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
72 // and "mysql/db" tables)
73 $cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
74 $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
75 $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
76 // with 'config' auth_type)
77 $cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
78 // this db is displayed
80 // It may also be an array
82 $cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
84 $cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
85 // (see scripts/create_tables.sql)
86 // - leave blank for no support
87 // DEFAULT: 'phpmyadmin'
88 $cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table
89 // - leave blank for no bookmark support
90 // DEFAULT: 'PMA_bookmark'
91 $cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
92 // - leave blank for no relation-links support
93 // DEFAULT: 'PMA_relation'
94 $cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields
95 // - leave blank for no display fields support
96 // DEFAULT: 'PMA_table_info'
97 $cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF schema
98 // - leave blank for no PDF schema support
99 // DEFAULT: 'PMA_table_coords'
100 $cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf
101 // - leave blank if you don't want to use this
102 // DEFAULT: 'PMA_pdf_pages'
103 $cfg['Servers'][$i]['column_info'] = ''; // table to store column information
104 // - leave blank for no column comments/mime types
105 // DEFAULT: 'PMA_column_info'
106 $cfg['Servers'][$i]['history'] = ''; // table to store SQL history
107 // - leave blank for no SQL query history
108 // DEFAULT: 'PMA_history'
109 $cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your PMA_* tables
110 // are up to date. This prevents compatibility
111 // checks and thereby increases performance.
112 $cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use
114 $cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults
119 $cfg['Servers'][$i]['host'] = '';
120 $cfg['Servers'][$i]['port'] = '';
121 $cfg['Servers'][$i]['socket'] = '';
122 $cfg['Servers'][$i]['connect_type'] = 'tcp';
123 $cfg['Servers'][$i]['compress'] = FALSE;
124 $cfg['Servers'][$i]['controluser'] = '';
125 $cfg['Servers'][$i]['controlpass'] = '';
126 $cfg['Servers'][$i]['auth_type'] = 'config';
127 $cfg['Servers'][$i]['user'] = 'root';
128 $cfg['Servers'][$i]['password'] = '';
129 $cfg['Servers'][$i]['only_db'] = '';
130 $cfg['Servers'][$i]['verbose'] = '';
131 $cfg['Servers'][$i]['pmadb'] = ''; // 'phpmyadmin' - see scripts/create_tables.sql
132 $cfg['Servers'][$i]['bookmarktable'] = ''; // 'PMA_bookmark'
133 $cfg['Servers'][$i]['relation'] = ''; // 'PMA_relation'
134 $cfg['Servers'][$i]['table_info'] = ''; // 'PMA_table_info'
135 $cfg['Servers'][$i]['table_coords'] = ''; // 'PMA_table_coords'
136 $cfg['Servers'][$i]['pdf_pages'] = ''; // 'PMA_pdf_page'
137 $cfg['Servers'][$i]['column_info'] = ''; // 'PMA_column_info'
138 $cfg['Servers'][$i]['history'] = ''; // 'PMA_history'
139 $cfg['Servers'][$i]['verbose_check'] = TRUE;
140 $cfg['Servers'][$i]['AllowDeny']['order']
142 $cfg['Servers'][$i]['AllowDeny']['rules']
146 $cfg['Servers'][$i]['host'] = '';
147 $cfg['Servers'][$i]['port'] = '';
148 $cfg['Servers'][$i]['socket'] = '';
149 $cfg['Servers'][$i]['connect_type'] = 'tcp';
150 $cfg['Servers'][$i]['compress'] = FALSE;
151 $cfg['Servers'][$i]['controluser'] = '';
152 $cfg['Servers'][$i]['controlpass'] = '';
153 $cfg['Servers'][$i]['auth_type'] = 'config';
154 $cfg['Servers'][$i]['user'] = 'root';
155 $cfg['Servers'][$i]['password'] = '';
156 $cfg['Servers'][$i]['only_db'] = '';
157 $cfg['Servers'][$i]['verbose'] = '';
158 $cfg['Servers'][$i]['pmadb'] = ''; // 'phpmyadmin' - see scripts/create_tables.sql
159 $cfg['Servers'][$i]['bookmarktable'] = ''; // 'PMA_bookmark'
160 $cfg['Servers'][$i]['relation'] = ''; // 'PMA_relation'
161 $cfg['Servers'][$i]['table_info'] = ''; // 'PMA_table_info'
162 $cfg['Servers'][$i]['table_coords'] = ''; // 'PMA_table_coords'
163 $cfg['Servers'][$i]['pdf_pages'] = ''; // 'PMA_pdf_page'
164 $cfg['Servers'][$i]['column_info'] = ''; // 'PMA_column_info'
165 $cfg['Servers'][$i]['history'] = ''; // 'PMA_history'
166 $cfg['Servers'][$i]['verbose_check'] = TRUE;
167 $cfg['Servers'][$i]['AllowDeny']['order']
169 $cfg['Servers'][$i]['AllowDeny']['rules']
172 // If you have more than one server configured, you can set $cfg['ServerDefault']
173 // to any one of them to autoconnect to that server when phpMyAdmin is started,
174 // or set it to 0 to be given a list of servers without logging in
175 // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
176 // set to that server.
177 $cfg['ServerDefault'] = 1; // Default server (0 = no default server)
179 unset($cfg['Servers'][0]);
183 * Other core phpMyAdmin settings
185 $cfg['OBGzip'] = TRUE; // use GZIP output buffering if possible
186 $cfg['PersistentConnections'] = FALSE; // use persistent connections to MySQL database
187 $cfg['ExecTimeLimit'] = 300; // maximum execution time in seconds (0 for no limit)
188 $cfg['SkipLockedTables'] = FALSE; // mark used tables, make possible to show
189 // locked tables (since MySQL 3.23.30)
190 $cfg['ShowSQL'] = TRUE; // show SQL queries as run
191 $cfg['AllowUserDropDatabase'] = FALSE; // show a 'Drop database' link to normal users
192 $cfg['Confirm'] = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'
193 $cfg['LoginCookieRecall'] = TRUE; // recall previous login in cookie auth. mode or not
194 $cfg['UseDbSearch'] = TRUE; // whether to enable the "database search" feature
198 $cfg['LeftFrameLight'] = TRUE; // use a select-based menu and display only the
199 // current tables in the left frame.
200 $cfg['ShowTooltip'] = TRUE; // display table comment as tooltip in left frame
201 $cfg['ShowTooltipAliasDB'] = FALSE; // if ShowToolTip is enabled, this defines that table/db comments
202 $cfg['ShowTooltipAliasTB'] = FALSE; // are shown (in the left menu and db_details_structure) instead of
205 $cfg['LeftDisplayLogo'] = TRUE; // display logo at top of left frame
207 // In the main frame, at startup...
208 $cfg['ShowStats'] = TRUE; // allow to display statistics and space usage in
209 // the pages about database details and table
211 $cfg['ShowMysqlInfo'] = FALSE; // whether to display the "MySQL runtime
212 $cfg['ShowMysqlVars'] = FALSE; // information", "MySQL system variables", "PHP
213 $cfg['ShowPhpInfo'] = FALSE; // information" and "change password" links for
214 $cfg['ShowChgPassword'] = FALSE; // simple users or not
215 $cfg['SuggestDBName'] = TRUE; // suggest a new DB name if possible (false = keep empty)
218 $cfg['ShowBlob'] = FALSE; // display blob field contents
219 $cfg['NavigationBarIconic'] = TRUE; // do not display text inside navigation bar buttons
220 $cfg['ShowAll'] = FALSE; // allows to display all the rows
221 $cfg['MaxRows'] = 30; // maximum number of rows to display
222 $cfg['Order'] = 'ASC'; // default for 'ORDER BY' clause (valid
223 // values are 'ASC', 'DESC' or 'SMART' -ie
224 // descending order for fields of type
225 // TIME, DATE, DATETIME & TIMESTAMP,
226 // ascending order else-)
229 $cfg['ProtectBinary'] = 'blob'; // disallow editing of binary fields
231 // FALSE allow editing
232 // 'blob' allow editing except for BLOB fields
233 // 'all' disallow editing
234 $cfg['ShowFunctionFields'] = TRUE; // Display the function fields in edit/insert mode
235 $cfg['CharEditing'] = 'input';
236 // Which editor should be used for CHAR/VARCHAR fields:
237 // input - allows limiting of input length
238 // textarea - allows newlines in fields
240 // For the export features...
241 $cfg['ZipDump'] = TRUE; // Allow the use of zip/gzip/bzip
242 $cfg['GZipDump'] = TRUE; // compression for
243 $cfg['BZipDump'] = TRUE; // dump files
245 // Tabs display settings
246 $cfg['LightTabs'] = FALSE; // use graphically less intense menu tabs
247 $cfg['DefaultTabServer'] = 'main.php3';
249 // 'main.php3' = the welcome page
250 // (recommended for multiuser setups)
251 // 'server_databases.php3' = list of databases
252 // 'server_status.php3' = runtime information
253 // 'server_variables.php3' = MySQL server variables
254 // 'server_privileges.php3' = user management
255 // 'server_processlist.php3' = process list
256 $cfg['DefaultTabDatabase'] = 'db_details_structure.php3';
258 // 'db_details_structure.php3' = tables list
259 // 'db_details.php3' = sql form
260 // 'db_search.php3' = search query
261 $cfg['DefaultTabTable'] = 'tbl_properties_structure.php3';
263 // 'tbl_properties_structure.php3' = fields list
264 // 'tbl_properties.php3' = sql form
265 // 'tbl_select.php3 = select page
266 // 'tbl_change.php3 = insert row page
270 * Link to the official MySQL documentation.
271 * Be sure to include no trailing slash on the path.
272 * See http://www.mysql.com/documentation/index.html for more information
273 * about MySQL manuals and their types.
275 $cfg['MySQLManualBase'] = 'http://www.mysql.com/doc/en';
278 * Type of MySQL documentation:
279 * old - old style used in phpMyAdmin 2.3.0 and sooner
280 * searchable - "Searchable, with user comments"
281 * chapters - "HTML, one page per chapter"
282 * big - "HTML, all on one page"
283 * none - do not show documentation links
285 $cfg['MySQLManualType'] = 'searchable';
289 * Language and charset conversion settings
291 // Default language to use, if not browser-defined or user-defined
292 $cfg['DefaultLang'] = 'en-iso-8859-1';
294 // Force: always use this language - must be defined in
295 // libraries/select_lang.lib.php3
296 // $cfg['Lang'] = 'en-iso-8859-1';
298 // Default charset to use for recoding of MySQL queries, does not take
299 // any effect when charsets recoding is switched off by
300 // $cfg['AllowAnywhereRecoding'] or in language file
301 // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
302 $cfg['DefaultCharset'] = 'iso-8859-1';
304 // Allow charset recoding of MySQL queries, must be also enabled in language
305 // file to make harder using other language files than unicode.
306 // Default value is FALSE to avoid problems on servers without the iconv
307 // extension and where dl() is not supported
308 $cfg['AllowAnywhereRecoding'] = FALSE;
310 // You can select here which functions will be used for charset conversion.
311 // Possible values are:
312 // auto - automatically use available one (first is tested iconv, then
314 // iconv - use iconv or libiconv functions
315 // recode - use recode_string function
316 $cfg['RecodingEngine'] = 'auto';
318 // Available charsets for MySQL conversion. currently contains all which could
319 // be found in lang/* files and few more.
320 // Charsets will be shown in same order as here listed, so if you frequently
321 // use some of these move them to the top.
322 $cfg['AvailableCharsets'] = array(
354 // Loads language file
355 require('./libraries/select_lang.lib.php3');
359 * Customization & design
361 $cfg['LeftWidth'] = 150; // left frame width
362 $cfg['LeftBgColor'] = '#D0DCE0'; // background color for the left frame
363 $cfg['RightBgColor'] = '#F5F5F5'; // background color for the right frame
364 $cfg['RightBgImage'] = ''; // path to a background image for the right frame
365 // (leave blank for no background image)
366 $cfg['LeftPointerColor'] = '#CCFFCC'; // color of the pointer in left frame
367 // (blank for no pointer)
368 $cfg['Border'] = 0; // border width on tables
369 $cfg['ThBgcolor'] = '#D3DCE3'; // table header row colour
370 $cfg['BgcolorOne'] = '#CCCCCC'; // table data row colour
371 $cfg['BgcolorTwo'] = '#DDDDDD'; // table data row colour, alternate
372 $cfg['BrowsePointerColor'] = '#CCFFCC'; // color of the pointer in browse mode
373 // (blank for no pointer)
374 $cfg['BrowseMarkerColor'] = '#FFCC99'; // color of the marker (visually marks row
375 // by clicking on it) in browse mode
376 // (blank for no marker)
377 $cfg['TextareaCols'] = 40; // textarea size (columns) in edit mode
378 // (this value will be emphasized (*2) for sql
379 // query textareas and (*1.25) for query window)
380 $cfg['TextareaRows'] = 7; // textarea size (rows) in edit mode
381 $cfg['TextareaAutoSelect'] = TRUE; // autoselect when clicking in the textarea of the querybox
382 $cfg['CharTextareaCols'] = 40; // textarea size (columns) for CHAR/VARCHAR
383 $cfg['CharTextareaRows'] = 2; // textarea size (rows) for CHAR/VARCHAR
384 $cfg['LimitChars'] = 50; // max field data length in browse mode
385 $cfg['ModifyDeleteAtLeft'] = TRUE; // show edit/delete links on left side of browse
386 // (or at the top with vertical browse)
387 $cfg['ModifyDeleteAtRight'] = FALSE; // show edit/delete links on right side of browse
388 // (or at the bottom with vertical browse)
389 $cfg['DefaultDisplay'] = 'horizontal'; // default display direction
390 // (horizontal|vertical|horizontalflipped)
391 $cfg['DefaultPropDisplay'] = 'horizontal'; // default display direction for altering/
392 // creating columns (tbl_properties)
393 // (horizontal|vertical)
395 $cfg['HeaderFlipType'] = 'css'; // table-header rotation via faking or css? (css|fake)
396 // NOTE: CSS only works in IE browsers!
397 $cfg['ShowBrowseComments'] = TRUE; // shows stored relation-comments in 'browse' mode.
398 $cfg['ShowPropertyComments']= TRUE; // shows stored relation-comments in 'table property' mode.
399 $cfg['RepeatCells'] = 100; // repeat header names every X cells? (0 = deactivate)
401 $cfg['QueryFrame'] = TRUE; // displays a new frame where a link to a querybox is always displayed.
402 $cfg['QueryFrameJS'] = TRUE; // whether to use JavaScript functions for opening a new window for SQL commands.
403 // if set to 'false', the target of the querybox is always the right frame.
404 $cfg['QueryFrameDebug'] = FALSE; // display JS debugging link (DEVELOPERS only)
405 $cfg['QueryWindowWidth'] = 550; // Width of Query window
406 $cfg['QueryWindowHeight'] = 310; // Height of Query window
407 $cfg['QueryHistoryDB'] = FALSE; // Set to TRUE if you want DB-based query history.
408 // If FALSE, this utilizes JS-routines to display
409 // query history (lost by window close)
410 $cfg['QueryWindowDefTab'] = 'sql'; // which tab to display in the querywindow on startup
411 // (sql|files|history|full)
412 $cfg['QueryHistoryMax'] = 25; // When using DB-based query history, how many entries
414 $cfg['BrowseMIME'] = TRUE; // Use MIME-Types (stored in column comments table) for
417 * SQL Query box settings
418 * These are the links display in all of the SQL Query boxes
420 $cfg['SQLQuery']['Edit'] = TRUE; // Edit link to change a query
421 $cfg['SQLQuery']['Explain'] = TRUE; // EXPLAIN on SELECT queries
422 $cfg['SQLQuery']['ShowAsPHP'] = TRUE; // Wrap a query in PHP
423 $cfg['SQLQuery']['Validate'] = FALSE; // Validate a query (see $cfg['SQLValidator'] as well)
427 * web-server upload directory
429 $cfg['UploadDir'] = ''; // for example, './upload/'; you must end it with
430 // a slash, and you leave it empty for no upload
435 * SQL Parser Settings
437 $cfg['SQP']['enable'] = TRUE; // Totally turn off the SQL Parser (not recommended)
438 $cfg['SQP']['fmtType'] = 'html'; // Pretty-printing style to use on queries (html, text, none)
439 $cfg['SQP']['fmtInd'] = '1'; // Amount to indent each level (floats ok)
440 $cfg['SQP']['fmtIndUnit'] = 'em'; // Units for indenting each level (CSS Types - {em,px,pt})
441 $cfg['SQP']['fmtColor'] = array( // Syntax colouring data
442 'comment' => '#808000',
443 'comment_mysql' => '',
444 'comment_ansi' => '',
447 'digit_hex' => 'teal',
448 'digit_integer' => 'teal',
449 'digit_float' => 'aqua',
450 'punct' => 'fuchsia',
452 'alpha_columnType' => '#FF9900',
453 'alpha_columnAttrib' => '#0000FF',
454 'alpha_reservedWord' => '#990099',
455 'alpha_functionName' => '#FF0000',
456 'alpha_identifier' => 'black',
457 'alpha_variable' => '#800000',
458 'quote' => '#008000',
459 'quote_double' => '',
460 'quote_single' => '',
461 'quote_backtick' => ''
466 * If you wish to use the SQL Validator service, you should be
467 * aware of the following:
468 * All SQL statements are stored anonymously for statistical purposes.
469 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
470 * All rights reserved.
472 $cfg['SQLValidator']['use'] = FALSE; // Make the SQL Validator available
473 $cfg['SQLValidator']['username'] = ''; // If you have a custom username, specify it here (defaults to anonymous)
474 $cfg['SQLValidator']['password'] = ''; // Password for username
478 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
480 $cfg['DBG']['enable'] = FALSE; // Make the DBG stuff available
481 $cfg['DBG']['profile']['enable'] = FALSE; // Produce profiling results of PHP
482 $cfg['DBG']['profile']['threshold'] = 0.5; // Threshold of long running code to display
483 // Anything below the threshold is not displayed
490 // varchar, tinyint, text and date are listed first, based on estimated popularity
491 $cfg['ColumnTypes'] = array(
520 $cfg['AttributeTypes'] = array(
527 // Available functions
528 if ($cfg['ShowFunctionFields']) {
529 $cfg['Functions'] = array(
557 // Which column types will be mapped to which Group?
558 $cfg['RestrictColumnTypes'] = array(
559 'VARCHAR' => 'FUNC_CHAR',
560 'TINYINT' => 'FUNC_NUMBER',
561 'TEXT' => 'FUNC_CHAR',
562 'DATE' => 'FUNC_DATE',
563 'SMALLINT' => 'FUNC_NUMBER',
564 'MEDIUMINT' => 'FUNC_NUMBER',
565 'INT' => 'FUNC_NUMBER',
566 'BIGINT' => 'FUNC_NUMBER',
567 'FLOAT' => 'FUNC_NUMBER',
568 'DOUBLE' => 'FUNC_NUMBER',
569 'DECIMAL' => 'FUNC_NUMBER',
570 'DATETIME' => 'FUNC_DATE',
571 'TIMESTAMP' => 'FUNC_DATE',
572 'TIME' => 'FUNC_DATE',
573 'YEAR' => 'FUNC_DATE',
574 'CHAR' => 'FUNC_CHAR',
575 'TINYBLOB' => 'FUNC_CHAR',
576 'TINYTEXT' => 'FUNC_CHAR',
577 'BLOB' => 'FUNC_CHAR',
578 'MEDIUMBLOB' => 'FUNC_CHAR',
579 'MEDIUMTEXT' => 'FUNC_CHAR',
580 'LONGBLOB' => 'FUNC_CHAR',
581 'LONGTEXT' => 'FUNC_CHAR',
586 // Map above defined groups to any function
587 $cfg['RestrictFunctions'] = array(
588 'FUNC_CHAR' => array(
602 'FUNC_DATE' => array(
615 'FUNC_NUMBER' => array(
632 * Unset magic_quotes_runtime - do not change!
634 set_magic_quotes_runtime(0);
637 * File Revision - do not change either!
639 $cfg['FileRevision'] = '$Revision$';