2 /* vim: set expandtab sw=4 ts=4 sts=4: */
5 * N N OOO !! DDDD OOO N N OOO TTTTT EEEE DDDD I TTTTT !!
6 * NN N O O !! D D O O NN N O O T E D D I T !!
7 * N N N O O !! D D O O N N N O O T EEEE D D I T !!
8 * N NN O O D D O O N NN O O T E D D I T
9 * N N OOO !! DDDD OOO N N OOO T EEEE DDDD I T !!
12 * DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
14 * phpMyAdmin default configuration, you can copy values from here to your
17 * All directives are explained in Documentation.html
24 * Your phpMyAdmin URL.
26 * Complete the variable below with the full URL ie
27 * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
29 * It must contain characters that are valid for a URL, and the path is
30 * case sensitive on some Web servers, for example Unix-based servers.
32 * In most cases you can leave this variable empty, as the correct value
33 * will be detected automatically. However, we recommend that you do
34 * test to see that the auto-detection code works in your system. A good
35 * test is to browse a table, then edit a row and save it. There will be
36 * an error message if phpMyAdmin cannot auto-detect the correct value.
38 * @global string $cfg['PmaAbsoluteUri']
40 $cfg['PmaAbsoluteUri'] = '';
43 * Disable the default warning that is displayed on the DB Details Structure page if
44 * any of the required Tables for the relation features could not be found
46 * @global boolean $cfg['PmaNoRelation_DisableWarning']
48 $cfg['PmaNoRelation_DisableWarning'] = false;
51 * Disable the default warning that is displayed if Suhosin is detected
53 * @global boolean $cfg['SuhosinDisableWarning']
55 $cfg['SuhosinDisableWarning'] = false;
58 * Disable the default warning that is displayed if mcrypt is missing for
59 * cookie authentication.
61 * @global boolean $cfg['McryptDisableWarning']
63 $cfg['McryptDisableWarning'] = false;
66 * Allows phpMyAdmin to be included from a document located on
67 * another domain; setting this to true is a potential security hole
69 * @global boolean $cfg['AllowThirdPartyFraming']
71 $cfg['AllowThirdPartyFraming'] = false;
74 * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
75 * at least one server configuration uses 'cookie' auth_type, enter here a
76 * pass phrase that will be used by blowfish. The maximum length seems to be 46
79 * @global string $cfg['blowfish_secret']
81 $cfg['blowfish_secret'] = '';
84 /*******************************************************************************
85 * Server(s) configuration
87 * The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
88 * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
89 * to ''. If you want more than one server, just copy following section
90 * (including $i incrementation) several times. There is no need to define
91 * full server array, just define values you need to change.
93 * @global array $cfg['Servers']
95 $cfg['Servers'] = array();
100 * MySQL hostname or IP address
102 * @global string $cfg['Servers'][$i]['host']
104 $cfg['Servers'][$i]['host'] = 'localhost';
107 * MySQL port - leave blank for default port
109 * @global string $cfg['Servers'][$i]['port']
111 $cfg['Servers'][$i]['port'] = '';
114 * Path to the socket - leave blank for default socket
116 * @global string $cfg['Servers'][$i]['socket']
118 $cfg['Servers'][$i]['socket'] = '';
121 * Use SSL for connecting to MySQL server?
123 * @global boolean $cfg['Servers'][$i]['ssl']
125 $cfg['Servers'][$i]['ssl'] = false;
128 * How to connect to MySQL server ('tcp' or 'socket')
130 * @global string $cfg['Servers'][$i]['connect_type']
132 $cfg['Servers'][$i]['connect_type'] = 'tcp';
135 * The PHP MySQL extension to use ('mysql' or 'mysqli')
137 * @global string $cfg['Servers'][$i]['extension']
139 $cfg['Servers'][$i]['extension'] = 'mysql';
141 /* rajk - added for blobstreaming */
142 $cfg['Servers'][$i]['bs_garbage_threshold'] = '';
143 $cfg['Servers'][$i]['bs_repository_threshold'] = '';
144 $cfg['Servers'][$i]['bs_temp_blob_timeout'] = '';
145 $cfg['Servers'][$i]['bs_temp_log_threshold'] = '';
148 * Use compressed protocol for the MySQL connection (requires PHP >= 4.3.0)
150 * @global boolean $cfg['Servers'][$i]['compress']
152 $cfg['Servers'][$i]['compress'] = false;
155 * MySQL control user settings (this user must have read-only
156 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
157 * used for all relational features (pmadb)
159 * @global string $cfg['Servers'][$i]['controluser']
161 $cfg['Servers'][$i]['controluser'] = '';
164 * MySQL control user settings (this user must have read-only
165 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
166 * used for all relational features (pmadb)
168 * @global string $cfg['Servers'][$i]['controlpass']
170 $cfg['Servers'][$i]['controlpass'] = '';
173 * Authentication method (valid choices: config, http, signon or cookie)
175 * @global string $cfg['Servers'][$i]['auth_type']
177 $cfg['Servers'][$i]['auth_type'] = 'cookie';
180 * File containing Swekey ids and login names (see /contrib);
181 * leave empty to deactivate Swekey hardware authentication
183 * @global string $cfg['Servers'][$i]['auth_swekey_config']
185 $cfg['Servers'][$i]['auth_swekey_config'] = '';
190 * @global string $cfg['Servers'][$i]['user']
192 $cfg['Servers'][$i]['user'] = 'root';
195 * MySQL password (only needed with 'config' auth_type)
197 * @global string $cfg['Servers'][$i]['password']
199 $cfg['Servers'][$i]['password'] = '';
202 * Session to use for 'signon' authentication method
204 * @global string $cfg['Servers'][$i]['SignonSession']
206 $cfg['Servers'][$i]['SignonSession'] = '';
209 * URL where to redirect user to login for 'signon' authentication method
211 * @global string $cfg['Servers'][$i]['SignonURL']
213 $cfg['Servers'][$i]['SignonURL'] = '';
216 * URL where to redirect user after logout
218 * @global string $cfg['Servers'][$i]['LogoutURL']
220 $cfg['Servers'][$i]['LogoutURL'] = '';
223 * Whether to try to connect without password
225 * @global boolean $cfg['Servers'][$i]['nopassword']
227 $cfg['Servers'][$i]['nopassword'] = false;
230 * If set to a db-name, only this db is displayed in left frame
231 * It may also be an array of db-names, where sorting order is relevant.
233 * @global string $cfg['Servers'][$i]['only_db']
235 $cfg['Servers'][$i]['only_db'] = '';
238 * Database name to be hidden from listings
240 * @global string $cfg['Servers'][$i]['hide_db']
242 $cfg['Servers'][$i]['hide_db'] = '';
245 * Verbose name for this host - leave blank to show the hostname
246 * (for HTTP authentication, all non-US-ASCII characters will be stripped)
248 * @global string $cfg['Servers'][$i]['verbose']
250 $cfg['Servers'][$i]['verbose'] = '';
253 * Database used for Relation, Bookmark and PDF Features
254 * (see scripts/create_tables.sql)
255 * - leave blank for no support
256 * DEFAULT: 'phpmyadmin'
258 * @global string $cfg['Servers'][$i]['pmadb']
260 $cfg['Servers'][$i]['pmadb'] = '';
264 * - leave blank for no bookmark support
265 * DEFAULT: 'pma_bookmark'
267 * @global string $cfg['Servers'][$i]['bookmarktable']
269 $cfg['Servers'][$i]['bookmarktable'] = '';
272 * table to describe the relation between links (see doc)
273 * - leave blank for no relation-links support
274 * DEFAULT: 'pma_relation'
276 * @global string $cfg['Servers'][$i]['relation']
278 $cfg['Servers'][$i]['relation'] = '';
281 * table to describe the display fields
282 * - leave blank for no display fields support
283 * DEFAULT: 'pma_table_info'
285 * @global string $cfg['Servers'][$i]['table_info']
287 $cfg['Servers'][$i]['table_info'] = '';
290 * table to describe the tables position for the PDF schema
291 * - leave blank for no PDF schema support
292 * DEFAULT: 'pma_table_coords'
294 * @global string $cfg['Servers'][$i]['table_coords']
296 $cfg['Servers'][$i]['table_coords'] = '';
299 * table to describe pages of relationpdf
300 * - leave blank if you don't want to use this
301 * DEFAULT: 'pma_pdf_pages'
303 * @global string $cfg['Servers'][$i]['pdf_pages']
305 $cfg['Servers'][$i]['pdf_pages'] = '';
308 * table to store column information
309 * - leave blank for no column comments/mime types
310 * DEFAULT: 'pma_column_info'
312 * @global string $cfg['Servers'][$i]['column_info']
314 $cfg['Servers'][$i]['column_info'] = '';
317 * table to store SQL history
318 * - leave blank for no SQL query history
319 * DEFAULT: 'pma_history'
321 * @global string $cfg['Servers'][$i]['history']
323 $cfg['Servers'][$i]['history'] = '';
326 * table to store the coordinates for Designer
327 * - leave blank for no Designer feature
328 * DEFAULT: 'pma_designer_coords'
330 * @global string $cfg['Servers'][$i]['designer_coords']
332 $cfg['Servers'][$i]['designer_coords'] = '';
335 * set to false if you know that your pma_* tables are up to date.
336 * This prevents compatibility checks and thereby increases performance.
338 * @global boolean $cfg['Servers'][$i]['verbose_check']
340 $cfg['Servers'][$i]['verbose_check'] = true;
343 * whether to allow root login
345 * @global boolean $cfg['Servers'][$i]['AllowRoot']
347 $cfg['Servers'][$i]['AllowRoot'] = true;
350 * whether to allow login of any user without a password
352 * @global boolean $cfg['Servers'][$i]['AllowNoPassword']
354 $cfg['Servers'][$i]['AllowNoPassword'] = false;
357 * Host authentication order, leave blank to not use
359 * @global string $cfg['Servers'][$i]['AllowDeny']['order']
361 $cfg['Servers'][$i]['AllowDeny']['order'] = '';
364 * Disable use of INFORMATION_SCHEMA
366 * @see http://sf.net/support/tracker.php?aid=1849494
367 * @see http://bugs.mysql.com/19588
368 * @global boolean $cfg['Servers'][$i]['DisableIS']
370 $cfg['Servers'][$i]['DisableIS'] = true;
373 * Host authentication rules, leave blank for defaults
375 * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
377 $cfg['Servers'][$i]['AllowDeny']['rules'] = array();
380 * SQL command to fetch available databases
382 * by default most user will be fine with SHOW DATABASES,
383 * for servers with a huge amount of databases it is possible to
384 * define a command which executes faster but with less information
386 * especially when accessing database servers from ISPs changing this command
387 * can result in a great speed improvement
389 * false will disable fetching databases from the server, only databases in
390 * $cfg['Servers'][$i]['only_db'] will be displayed
392 * #user# will be replaced by current user
396 * "SHOW DATABASES LIKE '#user#\_%'"
397 * 'SELECT DISTINCT TABLE_SCHEMA FROM information_schema.SCHEMA_PRIVILEGES'
398 * 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA'
401 * @global array $cfg['Servers'][$i]['ShowDatabasesCommand']
403 $cfg['Servers'][$i]['ShowDatabasesCommand'] = 'SHOW DATABASES';
406 * Whether to count tables when showing database list
408 * @global array $cfg['Servers'][$i]['CountTables']
410 $cfg['Servers'][$i]['CountTables'] = true;
413 * Default server (0 = no default server)
415 * If you have more than one server configured, you can set $cfg['ServerDefault']
416 * to any one of them to auto-connect to that server when phpMyAdmin is started,
417 * or set it to 0 to be given a list of servers without logging in
418 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
419 * set to that server.
421 * @global integer $cfg['ServerDefault']
423 $cfg['ServerDefault'] = 1;
426 * Other core phpMyAdmin settings
429 * maximum number of db's displayed in left frame and database list
431 * @global integer $cfg['MaxDbList']
433 $cfg['MaxDbList'] = 100;
436 * maximum number of tables displayed in table list
438 * @global integer $cfg['MaxTableList']
440 $cfg['MaxTableList'] = 250;
443 * maximum number of characters when a SQL query is displayed
445 * @global integer $cfg['MaxCharactersInDisplayedSQL']
447 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
450 * use GZIP output buffering if possible (true|false|'auto')
452 * @global string $cfg['OBGzip']
454 $cfg['OBGzip'] = 'auto';
457 * use persistent connections to MySQL database
459 * @global boolean $cfg['PersistentConnections']
461 $cfg['PersistentConnections'] = false;
464 * whether to force using HTTPS
466 * @global boolean $cfg['ForceSSL']
468 $cfg['ForceSSL'] = false;
471 * maximum execution time in seconds (0 for no limit)
473 * @global integer $cfg['ExecTimeLimit']
475 $cfg['ExecTimeLimit'] = 300;
478 * maximum allocated bytes (0 for no limit)
480 * @global integer $cfg['MemoryLimit']
482 $cfg['MemoryLimit'] = 0;
485 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
487 * @global boolean $cfg['SkipLockedTables']
489 $cfg['SkipLockedTables'] = false;
492 * show SQL queries as run
494 * @global boolean $cfg['ShowSQL']
496 $cfg['ShowSQL'] = true;
499 * show a 'Drop database' link to normal users
501 * @global boolean $cfg['AllowUserDropDatabase']
503 $cfg['AllowUserDropDatabase'] = false;
506 * confirm 'DROP TABLE' & 'DROP DATABASE'
508 * @global boolean $cfg['Confirm']
510 $cfg['Confirm'] = true;
513 * recall previous login in cookie authentication mode or not
515 * @global boolean $cfg['LoginCookieRecall']
517 $cfg['LoginCookieRecall'] = true;
520 * validity of cookie login (in seconds)
522 * @global integer $cfg['LoginCookieValidity']
524 $cfg['LoginCookieValidity'] = 1440;
527 * how long login cookie should be stored (in seconds)
529 * @global integer $cfg['LoginCookieStore']
531 $cfg['LoginCookieStore'] = 0;
534 * whether to delete all login cookies on logout
536 * @global boolean $cfg['LoginCookieDeleteAll']
538 $cfg['LoginCookieDeleteAll'] = true;
541 * whether to enable the "database search" feature or not
543 * @global boolean $cfg['UseDbSearch']
545 $cfg['UseDbSearch'] = true;
548 * if set to true, PMA continues computing multiple-statement queries
549 * even if one of the queries failed
551 * @global boolean $cfg['IgnoreMultiSubmitErrors']
553 $cfg['IgnoreMultiSubmitErrors'] = false;
556 * if set to true, PMA will show the affected rows of EACH statement on
557 * multiple-statement queries. See the libraries/import.php file for
558 * hard coded defaults on how many queries a statement may contain!
560 * @global boolean $cfg['VerboseMultiSubmit']
562 $cfg['VerboseMultiSubmit'] = true;
565 * allow login to any user entered server in cookie based authentication
567 * @global boolean $cfg['AllowArbitraryServer']
569 $cfg['AllowArbitraryServer'] = false;
572 /*******************************************************************************
573 * Error handler configuration
575 * this configures phpMyAdmin's own error handler, it is used to avoid information
576 * disclosure, gather errors for logging, reporting and displaying
578 * @global array $cfg['Error_Handler']
580 $cfg['Error_Handler'] = array();
583 * whether to display errors or not
585 * this does not affect errors of type E_USER_*
587 * @global boolean $cfg['Error_Handler']['display']
589 $cfg['Error_Handler']['display'] = false;
592 * (NOT IMPLEMENTED YET)
593 * where to log errors, false or empty to disable
596 * // EXAMPLE log to std PHP error log
597 * $cfg['Error_Handler']['log'] = array(0);
598 * // EXAMPLE mail errors
599 * $cfg['Error_Handler']['log'] = array(1, 'admin@example.org');
600 * // EXAMPLE append to specific file
601 * $cfg['Error_Handler']['log'] = array(3, '/var/log/phpmyadmin_error.log');
604 * @see http://php.net/error_log
605 * @global string $cfg['Error_Handler']['log']
607 //$cfg['Error_Handler']['log'] = false;
610 * gather all errors in session to be displayed on a error reporting page
611 * for viewing and/or sending to phpMyAdmin developer team
613 * @global boolean $cfg['Error_Handler']['gather']
615 $cfg['Error_Handler']['gather'] = false;
618 /*******************************************************************************
623 * use a select-based menu and display only the current tables in the left frame.
625 * @global boolean $cfg['LeftFrameLight']
627 $cfg['LeftFrameLight'] = true;
630 * turn the select-based light menu into a tree
632 * @global boolean $cfg['LeftFrameDBTree']
634 $cfg['LeftFrameDBTree'] = true;
637 * the separator to sub-tree the select-based light menu tree
639 * @global string $cfg['LeftFrameDBSeparator']
641 $cfg['LeftFrameDBSeparator'] = '_';
644 * Which string will be used to generate table prefixes
645 * to split/nest tables into multiple categories
647 * @global string $cfg['LeftFrameTableSeparator']
649 $cfg['LeftFrameTableSeparator']= '__';
652 * How many sublevels should be displayed when splitting up tables by the above Separator
654 * @global integer $cfg['LeftFrameTableLevel']
656 $cfg['LeftFrameTableLevel'] = 1;
659 * display table comment as tooltip in left frame
661 * @global boolean $cfg['ShowTooltip']
663 $cfg['ShowTooltip'] = true;
666 * if ShowToolTip is enabled, this defines that table/db comments
668 * @global boolean $cfg['ShowTooltipAliasDB']
670 $cfg['ShowTooltipAliasDB'] = false;
673 * are shown (in the left menu and db_structure) instead of table/db names.
674 * Setting ShowTooltipAliasTB to 'nested' will only use the Aliases for nested
675 * descriptors, not the table itself.
677 * @global boolean $cfg['ShowTooltipAliasTB']
679 $cfg['ShowTooltipAliasTB'] = false;
682 * display logo at top of left frame
684 * @global boolean $cfg['LeftDisplayLogo']
686 $cfg['LeftDisplayLogo'] = true;
689 * where should logo link point to (can also contain an external URL)
691 * @global string $cfg['LeftLogoLink']
693 $cfg['LeftLogoLink'] = 'main.php';
696 * whether to open the linked page in the main window ('main') or
697 * in a new window ('new')
699 * @global string $cfg['LeftLogoLinkWindow']
701 $cfg['LeftLogoLinkWindow'] = 'main';
704 * display server choice at top of left frame
706 * @global boolean $cfg['LeftDisplayServers']
708 $cfg['LeftDisplayServers'] = false;
711 * server choice as links
713 * @global boolean $cfg['DisplayServersList']
715 $cfg['DisplayServersList'] = false;
718 * database choice in light as links
720 * @global boolean $cfg['DisplayDatabasesList']
722 $cfg['DisplayDatabasesList'] = 'auto';
725 * target of the navigation panel quick access icon
728 * 'tbl_structure.php' = fields list
729 * 'tbl_sql.php' = SQL form
730 * 'tbl_select.php' = search page
731 * 'tbl_change.php' = insert row page
732 * 'sql.php' = browse page
734 * @global string $cfg['LeftDefaultTabTable']
736 $cfg['LeftDefaultTabTable'] = 'tbl_structure.php';
739 /*******************************************************************************
740 * In the main frame, at startup...
744 * allow to display statistics and space usage in the pages about database
745 * details and table properties
747 * @global boolean $cfg['ShowStats']
749 $cfg['ShowStats'] = true;
754 * @global boolean $cfg['ShowPhpInfo']
756 $cfg['ShowPhpInfo'] = false;
759 * show MySQL server information
761 * @global boolean $cfg['ShowServerInfo']
763 $cfg['ShowServerInfo'] = true;
766 * show change password link
768 * @global boolean $cfg['ShowChgPassword']
770 $cfg['ShowChgPassword'] = true;
773 * show create database form
775 * @global boolean $cfg['ShowCreateDb']
777 $cfg['ShowCreateDb'] = true;
780 * suggest a new DB name if possible (false = keep empty)
782 * @global boolean $cfg['SuggestDBName']
784 $cfg['SuggestDBName'] = true;
787 /*******************************************************************************
792 * Use icons instead of text for the navigation bar buttons
793 * and on right panel top menu (server db table) (true|false|'both')
795 * @global string $cfg['NavigationBarIconic']
797 $cfg['NavigationBarIconic'] = 'both';
800 * allows to display all the rows
802 * @global boolean $cfg['ShowAll']
804 $cfg['ShowAll'] = false;
807 * maximum number of rows to display
809 * @global integer $cfg['MaxRows']
811 $cfg['MaxRows'] = 30;
814 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
815 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
816 * ascending order else-)
818 * @global string $cfg['Order']
820 $cfg['Order'] = 'ASC';
823 /*******************************************************************************
828 * disallow editing of binary fields
830 * false allow editing
831 * 'blob' allow editing except for BLOB fields
832 * 'all' disallow editing
834 * @global string $cfg['ProtectBinary']
836 $cfg['ProtectBinary'] = 'blob';
839 * Display the function fields in edit/insert mode
841 * @global boolean $cfg['ShowFunctionFields']
843 $cfg['ShowFunctionFields'] = true;
846 * Which editor should be used for CHAR/VARCHAR fields:
847 * input - allows limiting of input length
848 * textarea - allows newlines in fields
850 * @global string $cfg['CharEditing']
852 $cfg['CharEditing'] = 'input';
855 * How many rows can be inserted at one time
857 * @global integer $cfg['InsertRows']
859 $cfg['InsertRows'] = 2;
862 * Sort order for items in a foreign-key drop-down list.
863 * 'content' is the referenced data, 'id' is the key value.
865 * @global array $cfg['ForeignKeyDropdownOrder']
867 $cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
870 * A drop-down list will be used if fewer items are present
872 * @global integer $cfg['ForeignKeyMaxLimit']
874 $cfg['ForeignKeyMaxLimit'] = 100;
877 /*******************************************************************************
878 * For the export features...
882 * Allow for the use of zip compression (requires zip support to be enabled)
884 * @global boolean $cfg['ZipDump']
886 $cfg['ZipDump'] = true;
889 * Allow for the use of gzip compression (requires zlib)
891 * @global boolean $cfg['GZipDump']
893 $cfg['GZipDump'] = true;
896 * Allow for the use of bzip2 compression (requires bz2 extension)
898 * @global boolean $cfg['BZipDump']
900 $cfg['BZipDump'] = true;
903 * Will compress gzip/bzip2 exports on the fly without the need for much memory.
904 * If you encounter problems with created gzip/bzip2 files disable this feature.
906 * @global boolean $cfg['CompressOnFly']
908 $cfg['CompressOnFly'] = true;
911 /*******************************************************************************
912 * Tabs display settings
916 * use graphically less intense menu tabs
918 * @global boolean $cfg['LightTabs']
920 $cfg['LightTabs'] = false;
923 * Use icons instead of text for the table display of a database (true|false|'both')
925 * @global boolean $cfg['PropertiesIconic']
927 $cfg['PropertiesIconic'] = true;
930 * How many columns should be used for table display of a database?
931 * (a value larger than 1 results in some information being hidden)
933 * @global integer $cfg['PropertiesNumColumns']
935 $cfg['PropertiesNumColumns'] = 1;
939 * 'main.php' = the welcome page
940 * (recommended for multiuser setups)
941 * 'server_databases.php' = list of databases
942 * 'server_status.php' = runtime information
943 * 'server_variables.php' = MySQL server variables
944 * 'server_privileges.php' = user management
945 * 'server_processlist.php' = process list
947 * @global string $cfg['DefaultTabServer']
949 $cfg['DefaultTabServer'] = 'main.php';
953 * 'db_structure.php' = tables list
954 * 'db_sql.php' = SQL form
955 * 'db_search.php' = search query
956 * 'db_operations.php' = operations on database
958 * @global string $cfg['DefaultTabDatabase']
960 $cfg['DefaultTabDatabase'] = 'db_structure.php';
964 * 'tbl_structure.php' = fields list
965 * 'tbl_sql.php' = SQL form
966 * 'tbl_select.php' = search page
967 * 'tbl_change.php' = insert row page
968 * 'sql.php' = browse page
970 * @global string $cfg['DefaultTabTable']
972 $cfg['DefaultTabTable'] = 'sql.php';
975 * Mapping between script filenames and translation keys
977 * Lookup can be performed by PMA_getTitleForTarget()
979 * @global string $cfg['DefaultTabTranslationMapping']
981 $cfg['DefaultTabTranslationMapping'] = array(
983 // Values for $cfg['DefaultTabTable']
984 'tbl_structure.php' => 'strStructure',
985 'tbl_sql.php' => 'strSQL',
986 'tbl_select.php' => 'strSearch',
987 'tbl_change.php' => 'strInsert',
988 'sql.php' => 'strBrowse',
990 // Values for $cfg['DefaultTabDatabase']
991 'db_structure.php' => 'strStructure',
992 'db_sql.php' => 'strSQL',
993 'db_search.php' => 'strSearch',
994 'db_operations.php' => 'strOperations',
997 /*******************************************************************************
1000 $cfg['Export'] = array();
1003 * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xls/xml/yaml
1005 * @global string $cfg['Export']['format']
1007 $cfg['Export']['format'] = 'sql';
1010 * none/zip/gzip/bzip2
1012 * @global string $cfg['Export']['compression']
1014 $cfg['Export']['compression'] = 'none';
1019 * @global boolean $cfg['Export']['asfile']
1021 $cfg['Export']['asfile'] = false;
1026 * @global string $cfg['Export']['charset']
1028 $cfg['Export']['charset'] = '';
1033 * @global boolean $cfg['Export']['onserver']
1035 $cfg['Export']['onserver'] = false;
1040 * @global boolean $cfg['Export']['onserver_overwrite']
1042 $cfg['Export']['onserver_overwrite'] = false;
1047 * @global boolean $cfg['Export']['remember_file_template']
1049 $cfg['Export']['remember_file_template'] = true;
1054 * @global string $cfg['Export']['file_template_table']
1056 $cfg['Export']['file_template_table'] = '__TABLE__';
1061 * @global string $cfg['Export']['file_template_database']
1063 $cfg['Export']['file_template_database'] = '__DB__';
1068 * @global string $cfg['Export']['file_template_server']
1070 $cfg['Export']['file_template_server'] = '__SERVER__';
1075 * @global boolean $cfg['Export']['ods_columns']
1077 $cfg['Export']['ods_columns'] = false;
1082 * @global string $cfg['Export']['ods_null']
1084 $cfg['Export']['ods_null'] = 'NULL';
1089 * @global boolean $cfg['Export']['odt_structure']
1091 $cfg['Export']['odt_structure'] = true;
1096 * @global boolean $cfg['Export']['odt_data']
1098 $cfg['Export']['odt_data'] = true;
1103 * @global boolean $cfg['Export']['odt_columns']
1105 $cfg['Export']['odt_columns'] = true;
1110 * @global boolean $cfg['Export']['odt_relation']
1112 $cfg['Export']['odt_relation'] = true;
1117 * @global boolean $cfg['Export']['odt_comments']
1119 $cfg['Export']['odt_comments'] = true;
1124 * @global boolean $cfg['Export']['odt_mime']
1126 $cfg['Export']['odt_mime'] = true;
1131 * @global string $cfg['Export']['odt_null']
1133 $cfg['Export']['odt_null'] = 'NULL';
1138 * @global boolean $cfg['Export']['htmlexcel_columns']
1140 $cfg['Export']['htmlexcel_columns'] = false;
1145 * @global string $cfg['Export']['htmlexcel_null']
1147 $cfg['Export']['htmlexcel_null'] = 'NULL';
1152 * @global boolean $cfg['Export']['htmlword_structure']
1154 $cfg['Export']['htmlword_structure'] = true;
1159 * @global boolean $cfg['Export']['htmlword_data']
1161 $cfg['Export']['htmlword_data'] = true;
1166 * @global boolean $cfg['Export']['htmlword_columns']
1168 $cfg['Export']['htmlword_columns'] = false;
1173 * @global string $cfg['Export']['htmlword_null']
1175 $cfg['Export']['htmlword_null'] = 'NULL';
1180 * @global boolean $cfg['Export']['texytext_structure']
1182 $cfg['Export']['texytext_structure'] = TRUE;
1187 * @global boolean $cfg['Export']['texytext_data']
1189 $cfg['Export']['texytext_data'] = TRUE;
1194 * @global boolean $cfg['Export']['texytext_columns']
1196 $cfg['Export']['texytext_columns'] = FALSE;
1201 * @global string $cfg['Export']['texytext_null']
1203 $cfg['Export']['texytext_null'] = 'NULL';
1208 * @global boolean $cfg['Export']['xls_columns']
1210 $cfg['Export']['xls_columns'] = false;
1215 * @global string $cfg['Export']['xls_null']
1217 $cfg['Export']['xls_null'] = 'NULL';
1222 * @global boolean $cfg['Export']['csv_columns']
1224 $cfg['Export']['csv_columns'] = false;
1229 * @global string $cfg['Export']['csv_null']
1231 $cfg['Export']['csv_null'] = 'NULL';
1236 * @global string $cfg['Export']['csv_separator']
1238 $cfg['Export']['csv_separator'] = ';';
1243 * @global string $cfg['Export']['csv_enclosed']
1245 $cfg['Export']['csv_enclosed'] = '"';
1250 * @global string $cfg['Export']['csv_escaped']
1252 $cfg['Export']['csv_escaped'] = '\\';
1257 * @global string $cfg['Export']['csv_terminated']
1259 $cfg['Export']['csv_terminated'] = 'AUTO';
1264 * @global boolean $cfg['Export']['excel_columns']
1266 $cfg['Export']['excel_columns'] = false;
1271 * @global string $cfg['Export']['excel_null']
1273 $cfg['Export']['excel_null'] = 'NULL';
1278 * @global string $cfg['Export']['excel_edition']
1280 $cfg['Export']['excel_edition'] = 'win';
1285 * @global boolean $cfg['Export']['latex_structure']
1287 $cfg['Export']['latex_structure'] = true;
1292 * @global boolean $cfg['Export']['latex_data']
1294 $cfg['Export']['latex_data'] = true;
1299 * @global boolean $cfg['Export']['latex_columns']
1301 $cfg['Export']['latex_columns'] = true;
1306 * @global boolean $cfg['Export']['latex_relation']
1308 $cfg['Export']['latex_relation'] = true;
1313 * @global boolean $cfg['Export']['latex_comments']
1315 $cfg['Export']['latex_comments'] = true;
1320 * @global boolean $cfg['Export']['latex_mime']
1322 $cfg['Export']['latex_mime'] = true;
1327 * @global string $cfg['Export']['latex_null']
1329 $cfg['Export']['latex_null'] = '\textit{NULL}';
1334 * @global boolean $cfg['Export']['latex_caption']
1336 $cfg['Export']['latex_caption'] = true;
1341 * @global string $cfg['Export']['latex_structure_caption']
1343 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1348 * @global string $cfg['Export']['latex_structure_continued_caption']
1350 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
1355 * @global string $cfg['Export']['latex_data_caption']
1357 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1362 * @global string $cfg['Export']['latex_data_continued_caption']
1364 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1369 * @global string $cfg['Export']['latex_data_label']
1371 $cfg['Export']['latex_data_label'] = 'tab:__TABLE__-data';
1376 * @global string $cfg['Export']['latex_structure_label']
1378 $cfg['Export']['latex_structure_label'] = 'tab:__TABLE__-structure';
1383 * @global boolean $cfg['Export']['sql_structure']
1385 $cfg['Export']['sql_structure'] = true;
1390 * @global boolean $cfg['Export']['sql_data']
1392 $cfg['Export']['sql_data'] = true;
1397 * @global string $cfg['Export']['sql_compatibility']
1399 $cfg['Export']['sql_compatibility'] = 'NONE';
1402 * Whether to include comments in SQL export.
1404 * @global string $cfg['Export']['sql_include_comments']
1406 $cfg['Export']['sql_include_comments'] = true;
1411 * @global boolean $cfg['Export']['sql_disable_fk']
1413 $cfg['Export']['sql_disable_fk'] = false;
1418 * @global boolean $cfg['Export']['sql_use_transaction']
1420 $cfg['Export']['sql_use_transaction'] = false;
1425 * @global boolean $cfg['Export']['sql_drop_database']
1427 $cfg['Export']['sql_drop_database'] = false;
1432 * @global boolean $cfg['Export']['sql_drop_table']
1434 $cfg['Export']['sql_drop_table'] = false;
1439 * true by default for correct behavior when dealing with exporting
1440 * of VIEWs and the stand-in table
1441 * @global boolean $cfg['Export']['sql_if_not_exists']
1443 $cfg['Export']['sql_if_not_exists'] = true;
1448 * @global boolean $cfg['Export']['sql_procedure_function']
1450 $cfg['Export']['sql_procedure_function'] = false;
1455 * @global boolean $cfg['Export']['sql_auto_increment']
1457 $cfg['Export']['sql_auto_increment'] = true;
1462 * @global boolean $cfg['Export']['sql_backquotes']
1464 $cfg['Export']['sql_backquotes'] = true;
1469 * @global boolean $cfg['Export']['sql_dates']
1471 $cfg['Export']['sql_dates'] = false;
1476 * @global boolean $cfg['Export']['sql_relation']
1478 $cfg['Export']['sql_relation'] = false;
1483 * @global boolean $cfg['Export']['sql_columns']
1485 $cfg['Export']['sql_columns'] = true;
1490 * @global boolean $cfg['Export']['sql_delayed']
1492 $cfg['Export']['sql_delayed'] = false;
1497 * @global boolean $cfg['Export']['sql_ignore']
1499 $cfg['Export']['sql_ignore'] = false;
1504 * @global boolean $cfg['Export']['sql_hex_for_blob']
1506 $cfg['Export']['sql_hex_for_blob'] = true;
1509 * insert/update/replace
1511 * @global string $cfg['Export']['sql_type']
1513 $cfg['Export']['sql_type'] = 'insert';
1518 * @global boolean $cfg['Export']['sql_extended']
1520 $cfg['Export']['sql_extended'] = true;
1525 * @global integer $cfg['Export']['sql_max_query_size']
1527 $cfg['Export']['sql_max_query_size'] = 50000;
1532 * @global boolean $cfg['Export']['sql_comments']
1534 $cfg['Export']['sql_comments'] = false;
1539 * @global boolean $cfg['Export']['sql_mime']
1541 $cfg['Export']['sql_mime'] = false;
1544 * \n is replaced by new line
1546 * @global string $cfg['Export']['sql_header_comment']
1548 $cfg['Export']['sql_header_comment'] = '';
1553 * @global boolean $cfg['Export']['pdf_structure']
1555 $cfg['Export']['pdf_structure'] = false;
1560 * @global boolean $cfg['Export']['pdf_data']
1562 $cfg['Export']['pdf_data'] = true;
1567 * @global string $cfg['Export']['pdf_report_title']
1569 $cfg['Export']['pdf_report_title'] = '';
1572 /*******************************************************************************
1575 $cfg['Import'] = array();
1580 * @global string $cfg['Import']['format']
1582 $cfg['Import']['format'] = 'sql';
1585 * Default charset for import.
1587 * @global string $cfg['Import']['charset']
1589 $cfg['Import']['charset'] = '';
1594 * @global boolean $cfg['Import']['allow_interrupt']
1596 $cfg['Import']['allow_interrupt'] = true;
1601 * @global integer $cfg['Import']['skip_queries']
1603 $cfg['Import']['skip_queries'] = '0';
1608 * @global string $cfg['Import']['sql_compatibility']
1610 $cfg['Import']['sql_compatibility'] = 'NONE';
1615 * @global boolean $cfg['Import']['csv_replace']
1617 $cfg['Import']['csv_replace'] = false;
1622 * @global string $cfg['Import']['csv_terminated']
1624 $cfg['Import']['csv_terminated'] = ';';
1629 * @global string $cfg['Import']['csv_enclosed']
1631 $cfg['Import']['csv_enclosed'] = '"';
1636 * @global string $cfg['Import']['csv_escaped']
1638 $cfg['Import']['csv_escaped'] = '\\';
1643 * @global string $cfg['Import']['csv_new_line']
1645 $cfg['Import']['csv_new_line'] = 'auto';
1650 * @global string $cfg['Import']['csv_columns']
1652 $cfg['Import']['csv_columns'] = '';
1657 * @global boolean $cfg['Import']['ldi_replace']
1659 $cfg['Import']['ldi_replace'] = false;
1664 * @global string $cfg['Import']['ldi_terminated']
1666 $cfg['Import']['ldi_terminated'] = ';';
1671 * @global string $cfg['Import']['ldi_enclosed']
1673 $cfg['Import']['ldi_enclosed'] = '"';
1678 * @global string $cfg['Import']['ldi_escaped']
1680 $cfg['Import']['ldi_escaped'] = '\\';
1685 * @global string $cfg['Import']['ldi_new_line']
1687 $cfg['Import']['ldi_new_line'] = 'auto';
1692 * @global string $cfg['Import']['ldi_columns']
1694 $cfg['Import']['ldi_columns'] = '';
1697 * 'auto' for auto-detection, true or false for forcing
1699 * @global string $cfg['Import']['ldi_local_option']
1701 $cfg['Import']['ldi_local_option'] = 'auto';
1704 * Link to the official MySQL documentation.
1705 * Be sure to include no trailing slash on the path.
1706 * See http://dev.mysql.com/doc/ for more information
1707 * about MySQL manuals and their types.
1709 * @global string $cfg['MySQLManualBase']
1711 $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
1714 * Type of MySQL documentation:
1715 * viewable - "viewable online", current one used on MySQL website
1716 * searchable - "Searchable, with user comments"
1717 * chapters - "HTML, one page per chapter"
1718 * chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
1719 * big - "HTML, all on one page"
1720 * old - old style used in phpMyAdmin 2.3.0 and sooner
1721 * none - do not show documentation links
1723 * @global string $cfg['MySQLManualType']
1725 $cfg['MySQLManualType'] = 'viewable';
1728 /*******************************************************************************
1735 * @global array $cfg['PDFPageSizes']
1737 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
1742 * @global string $cfg['PDFDefaultPageSize']
1744 $cfg['PDFDefaultPageSize'] = 'A4';
1747 /*******************************************************************************
1748 * Language and character set conversion settings
1752 * Default language to use, if not browser-defined or user-defined
1754 * @global string $cfg['DefaultLang']
1756 $cfg['DefaultLang'] = 'en-utf-8';
1759 * Default connection collation
1761 * @global string $cfg['DefaultConnectionCollation']
1763 $cfg['DefaultConnectionCollation'] = 'utf8_general_ci';
1766 * Force: always use this language - must be defined in
1767 * libraries/select_lang.lib.php
1768 * $cfg['Lang'] = 'en-utf-8';
1770 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
1773 * @global string $cfg['FilterLanguages']
1775 $cfg['FilterLanguages'] = '';
1778 * Default character set to use for recoding of MySQL queries, does not take
1779 * any effect when character sets recoding is switched off by
1780 * $cfg['AllowAnywhereRecoding'] or in language file
1781 * (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
1783 * @global string $cfg['DefaultCharset']
1785 $cfg['DefaultCharset'] = 'utf-8';
1788 * Allow character set recoding of MySQL queries, must be also enabled in language
1789 * file to make harder using other language files than Unicode.
1790 * Default value is false to avoid problems on servers without the iconv
1793 * @global boolean $cfg['AllowAnywhereRecoding']
1795 $cfg['AllowAnywhereRecoding'] = false;
1798 * You can select here which functions will be used for character set conversion.
1799 * Possible values are:
1800 * auto - automatically use available one (first is tested iconv, then
1802 * iconv - use iconv or libiconv functions
1803 * recode - use recode_string function
1805 * @global string $cfg['RecodingEngine']
1807 $cfg['RecodingEngine'] = 'auto';
1810 * Specify some parameters for iconv used in character set conversion. See iconv
1811 * documentation for details:
1812 * http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
1814 * @global string $cfg['IconvExtraParams']
1816 $cfg['IconvExtraParams'] = '//TRANSLIT';
1819 * Available character sets for MySQL conversion. currently contains all which could
1820 * be found in lang/* files and few more.
1821 * Character sets will be shown in same order as here listed, so if you frequently
1822 * use some of these move them to the top.
1824 * @global array $cfg['AvailableCharsets']
1826 $cfg['AvailableCharsets'] = array(
1861 /*******************************************************************************
1862 * Customization & design
1864 * The graphical settings are now located in themes/theme-name/layout.inc.php
1868 * enable the left panel pointer
1869 * (used when LeftFrameLight is false)
1870 * see also LeftPointerColor
1873 * @global boolean $cfg['LeftPointerEnable']
1875 $cfg['LeftPointerEnable'] = true;
1878 * enable the browse pointer
1879 * see also BrowsePointerColor
1882 * @global boolean $cfg['BrowsePointerEnable']
1884 $cfg['BrowsePointerEnable'] = true;
1887 * enable the browse marker
1888 * see also BrowseMarkerColor
1891 * @global boolean $cfg['BrowseMarkerEnable']
1893 $cfg['BrowseMarkerEnable'] = true;
1896 * textarea size (columns) in edit mode
1897 * (this value will be emphasized (*2) for SQL
1898 * query textareas and (*1.25) for query window)
1900 * @global integer $cfg['TextareaCols']
1902 $cfg['TextareaCols'] = 40;
1905 * textarea size (rows) in edit mode
1907 * @global integer $cfg['TextareaRows']
1909 $cfg['TextareaRows'] = 7;
1912 * double size of textarea size for LONGTEXT fields
1914 * @global boolean $cfg['LongtextDoubleTextarea']
1916 $cfg['LongtextDoubleTextarea'] = true;
1919 * auto-select when clicking in the textarea of the query-box
1921 * @global boolean $cfg['TextareaAutoSelect']
1923 $cfg['TextareaAutoSelect'] = false;
1926 * textarea size (columns) for CHAR/VARCHAR
1928 * @global integer $cfg['CharTextareaCols']
1930 $cfg['CharTextareaCols'] = 40;
1933 * textarea size (rows) for CHAR/VARCHAR
1935 * @global integer $cfg['CharTextareaRows']
1937 $cfg['CharTextareaRows'] = 2;
1940 * Enable Ctrl+Arrows moving between fields when editing?
1942 * @global boolean $cfg['CtrlArrowsMoving']
1944 $cfg['CtrlArrowsMoving'] = true;
1947 * Max field data length in browse mode for all non-numeric fields
1949 * @global integer $cfg['LimitChars']
1951 $cfg['LimitChars'] = 50;
1954 * show edit/delete links on left side of browse
1955 * (or at the top with vertical browse)
1957 * @global boolean $cfg['ModifyDeleteAtLeft']
1959 $cfg['ModifyDeleteAtLeft'] = true;
1962 * show edit/delete links on right side of browse
1963 * (or at the bottom with vertical browse)
1965 * @global boolean $cfg['ModifyDeleteAtRight']
1967 $cfg['ModifyDeleteAtRight'] = false;
1970 * default display direction (horizontal|vertical|horizontalflipped)
1972 * @global string $cfg['DefaultDisplay']
1974 $cfg['DefaultDisplay'] = 'horizontal';
1977 * default display direction for altering/creating columns (tbl_properties)
1978 * (horizontal|vertical|<number>)
1979 * number indicates maximal number for which vertical model is used
1981 * @global integer $cfg['DefaultPropDisplay']
1983 $cfg['DefaultPropDisplay'] = 3;
1986 * table-header rotation via faking or CSS? (css|fake)
1987 * NOTE: CSS only works in IE browsers!
1989 * @global string $cfg['HeaderFlipType']
1991 $cfg['HeaderFlipType'] = 'css';
1994 * shows stored relation-comments in 'browse' mode.
1996 * @global boolean $cfg['ShowBrowseComments']
1998 $cfg['ShowBrowseComments'] = true;
2001 * shows stored relation-comments in 'table property' mode.
2003 * @global boolean $cfg['ShowPropertyComments']
2005 $cfg['ShowPropertyComments']= true;
2008 * repeat header names every X cells? (0 = deactivate)
2010 * @global integer $cfg['RepeatCells']
2012 $cfg['RepeatCells'] = 100;
2015 * Set to true if Edit link should open the query to edit in the query window
2016 * (assuming JavaScript is enabled), and to false if we should edit in the right panel
2018 * @global boolean $cfg['EditInWindow']
2020 $cfg['EditInWindow'] = true;
2023 * Width of Query window
2025 * @global integer $cfg['QueryWindowWidth']
2027 $cfg['QueryWindowWidth'] = 550;
2030 * Height of Query window
2032 * @global integer $cfg['QueryWindowHeight']
2034 $cfg['QueryWindowHeight'] = 310;
2037 * Set to true if you want DB-based query history.If false, this utilizes
2038 * JS-routines to display query history (lost by window close)
2040 * @global boolean $cfg['QueryHistoryDB']
2042 $cfg['QueryHistoryDB'] = false;
2045 * which tab to display in the querywindow on startup
2046 * (sql|files|history|full)
2048 * @global string $cfg['QueryWindowDefTab']
2050 $cfg['QueryWindowDefTab'] = 'sql';
2053 * When using DB-based query history, how many entries should be kept?
2055 * @global integer $cfg['QueryHistoryMax']
2057 $cfg['QueryHistoryMax'] = 25;
2060 * Use MIME-Types (stored in column comments table) for
2062 * @global boolean $cfg['BrowseMIME']
2064 $cfg['BrowseMIME'] = true;
2067 * When approximate count < this, PMA will get exact count for table rows.
2069 * @global integer $cfg['MaxExactCount']
2071 $cfg['MaxExactCount'] = 20000;
2074 * Zero means that no row count is done for views; see the doc
2076 * @global integer $cfg['MaxExactCountViews']
2078 $cfg['MaxExactCountViews'] = 0;
2081 * Utilize DHTML/JS capabilities to allow WYSIWYG editing of
2082 * the PDF page editor. Requires an IE6/Gecko based browser.
2084 * @global boolean $cfg['WYSIWYG-PDF']
2086 $cfg['WYSIWYG-PDF'] = true;
2089 * Sort table and database in natural order
2091 * @global boolean $cfg['NaturalOrder']
2093 $cfg['NaturalOrder'] = true;
2096 * Initial state for sliders
2099 * @global string $cfg['InitialSlidersState']
2101 $cfg['InitialSlidersState'] = 'closed';
2105 //-----------------------------------------------------------------------------
2106 // custom-setup by mkkeck: 2004-05-04
2107 // some specials for new icons and scrolling
2109 * @todo 2004-05-08 rabus: We need to rearrange these variables.
2113 /*******************************************************************************
2114 * Window title settings
2118 * title of browser window when a table is selected
2120 * @global string $cfg['TitleTable']
2122 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2125 * title of browser window when a database is selected
2127 * @global string $cfg['TitleDatabase']
2129 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2132 * title of browser window when a server is selected
2134 * @global string $cfg['TitleServer']
2136 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2139 * title of browser window when nothing is selected
2140 * @global string $cfg['TitleDefault']
2142 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2145 * show some icons for warning, error and information messages (true|false)?
2147 * @global boolean $cfg['ErrorIconic']
2149 $cfg['ErrorIconic'] = true;
2152 * show icons in list on main page and on menu tabs (true|false)?
2154 * @global boolean $cfg['MainPageIconic']
2156 $cfg['MainPageIconic'] = true;
2159 * show help button instead of strDocu (true|false)?
2161 * @global boolean $cfg['ReplaceHelpImg']
2163 $cfg['ReplaceHelpImg'] = true;
2166 /*******************************************************************************
2171 * using themes manager please set up here the path to 'themes' else leave empty
2173 * @global string $cfg['ThemePath']
2175 $cfg['ThemePath'] = './themes';
2178 * if you want to use selectable themes and if ThemesPath not empty
2179 * set it to true, else set it to false (default is false);
2181 * @global boolean $cfg['ThemeManager']
2183 $cfg['ThemeManager'] = true;
2186 * set up default theme, if ThemePath not empty you can set up here an valid
2187 * path to themes or 'original' for the original pma-theme
2189 * @global string $cfg['ThemeDefault']
2191 $cfg['ThemeDefault'] = 'original';
2194 * allow different theme for each configured server
2196 * @global boolean $cfg['ThemePerServer']
2198 $cfg['ThemePerServer'] = false;
2201 /*******************************************************************************
2207 * %d will be replaced by the database name.
2208 * %t will be replaced by the table name.
2209 * %f will be replaced by a list of field names.
2210 * (%t and %f only applies to DefaultQueryTable)
2212 * @global string $cfg['DefaultQueryTable']
2214 $cfg['DefaultQueryTable'] = 'SELECT * FROM %t WHERE 1';
2218 * %d will be replaced by the database name.
2219 * %t will be replaced by the table name.
2220 * %f will be replaced by a list of field names.
2221 * (%t and %f only applies to DefaultQueryTable)
2223 * @global string $cfg['DefaultQueryDatabase']
2225 $cfg['DefaultQueryDatabase'] = '';
2228 /*******************************************************************************
2229 * SQL Query box settings
2230 * These are the links display in all of the SQL Query boxes
2232 * @global array $cfg['SQLQuery']
2234 $cfg['SQLQuery'] = array();
2237 * Edit link to change a query
2239 * @global boolean $cfg['SQLQuery']['Edit']
2241 $cfg['SQLQuery']['Edit'] = true;
2244 * EXPLAIN on SELECT queries
2246 * @global boolean $cfg['SQLQuery']['Explain']
2248 $cfg['SQLQuery']['Explain'] = true;
2251 * Wrap a query in PHP
2253 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2255 $cfg['SQLQuery']['ShowAsPHP'] = true;
2258 * Validate a query (see $cfg['SQLValidator'] as well)
2260 * @global boolean $cfg['SQLQuery']['Validate']
2262 $cfg['SQLQuery']['Validate'] = false;
2265 * Refresh the results page
2267 * @global boolean $cfg['SQLQuery']['Refresh']
2269 $cfg['SQLQuery']['Refresh'] = true;
2272 /*******************************************************************************
2273 * Web server upload/save/import directories
2277 * Directory for uploaded files that can be executed by phpMyAdmin.
2278 * For example './upload'. Leave empty for no upload directory support.
2279 * Use %u for username inclusion.
2281 * @global string $cfg['UploadDir']
2283 $cfg['UploadDir'] = '';
2286 * Directory where phpMyAdmin can save exported data on server.
2287 * For example './save'. Leave empty for no save directory support.
2288 * Use %u for username inclusion.
2290 * @global string $cfg['SaveDir']
2292 $cfg['SaveDir'] = '';
2295 * Directory where phpMyAdmin can save temporary files.
2296 * This is needed for MS Excel export, see documentation how to enable that.
2298 * @global string $cfg['TempDir']
2300 $cfg['TempDir'] = '';
2308 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2309 * which is the only safe way to determine GD version.
2311 * @global string $cfg['GD2Available']
2313 $cfg['GD2Available'] = 'auto';
2316 * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
2318 * @global array $cfg['TrustedProxies']
2320 $cfg['TrustedProxies'] = array();
2323 * We normally check the permissions on the configuration file to ensure
2324 * it's not world writable. However, phpMyAdmin could be installed on
2325 * a NTFS filesystem mounted on a non-Windows server, in which case the
2326 * permissions seems wrong but in fact cannot be detected. In this case
2327 * a sysadmin would set the following to false.
2329 $cfg['CheckConfigurationPermissions'] = true;
2331 /*******************************************************************************
2332 * SQL Parser Settings
2334 * @global array $cfg['SQP']
2336 $cfg['SQP'] = array();
2339 * Pretty-printing style to use on queries (html, text, none)
2341 * @global string $cfg['SQP']['fmtType']
2343 $cfg['SQP']['fmtType'] = 'html';
2346 * Amount to indent each level (floats are valid)
2348 * @global integer $cfg['SQP']['fmtInd']
2350 $cfg['SQP']['fmtInd'] = '1';
2353 * Units for indenting each level (CSS Types - {em, px, pt})
2355 * @global string $cfg['SQP']['fmtIndUnit']
2357 $cfg['SQP']['fmtIndUnit'] = 'em';
2360 /*******************************************************************************
2361 * If you wish to use the SQL Validator service, you should be aware of the
2363 * All SQL statements are stored anonymously for statistical purposes.
2364 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
2365 * All rights reserved.
2367 * @global array $cfg['SQLValidator']
2369 $cfg['SQLValidator'] = array();
2372 * Make the SQL Validator available
2374 * @global boolean $cfg['SQLValidator']['use']
2376 $cfg['SQLValidator']['use'] = false;
2379 * If you have a custom username, specify it here (defaults to anonymous)
2381 * @global string $cfg['SQLValidator']['username']
2383 $cfg['SQLValidator']['username'] = '';
2386 * Password for username
2388 * @global string $cfg['SQLValidator']['password']
2390 $cfg['SQLValidator']['password'] = '';
2393 /*******************************************************************************
2396 * @global array $cfg['DBG']
2398 $cfg['DBG'] = array();
2401 * Output executed queries and their execution times
2403 * @global boolean $cfg['DBG']['sql']
2405 $cfg['DBG']['sql'] = false;
2408 * Make the DBG stuff available
2409 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
2411 * @global boolean $cfg['DBG']['php']
2413 $cfg['DBG']['php'] = false;
2416 * Produce profiling results of PHP
2418 * @global boolean $cfg['DBG']['profile']['enable']
2420 $cfg['DBG']['profile']['enable'] = false;
2423 * Threshold of long running code to display
2424 * Anything below the threshold is not displayed
2426 * @global float $cfg['DBG']['profile']['threshold']
2428 $cfg['DBG']['profile']['threshold'] = 0.5;
2431 /*******************************************************************************
2437 * VARCHAR, TINYINT, TEXT and DATE are listed first, based on estimated popularity
2439 * @global array $cfg['ColumnTypes']
2441 $cfg['ColumnTypes'] = array(
2468 'DATE and TIME' => array(
2506 'GEOMETRYCOLLECTION',
2513 * @global array $cfg['AttributeTypes']
2515 $cfg['AttributeTypes'] = array(
2519 'UNSIGNED ZEROFILL',
2520 'on update CURRENT_TIMESTAMP',
2524 if ($cfg['ShowFunctionFields']) {
2526 * Available functions
2528 * @global array $cfg['Functions']
2530 $cfg['Functions'] = array(
2603 * Which column types will be mapped to which Group?
2605 * @global array $cfg['RestrictColumnTypes']
2607 $cfg['RestrictColumnTypes'] = array(
2608 'TINYINT' => 'FUNC_NUMBER',
2609 'SMALLINT' => 'FUNC_NUMBER',
2610 'MEDIUMINT' => 'FUNC_NUMBER',
2611 'INT' => 'FUNC_NUMBER',
2612 'BIGINT' => 'FUNC_NUMBER',
2613 'DECIMAL' => 'FUNC_NUMBER',
2614 'FLOAT' => 'FUNC_NUMBER',
2615 'DOUBLE' => 'FUNC_NUMBER',
2616 'REAL' => 'FUNC_NUMBER',
2617 'BIT' => 'FUNC_NUMBER',
2618 'BOOL' => 'FUNC_NUMBER',
2619 'SERIAL' => 'FUNC_NUMBER',
2621 'DATE' => 'FUNC_DATE',
2622 'DATETIME' => 'FUNC_DATE',
2623 'TIMESTAMP' => 'FUNC_DATE',
2624 'TIME' => 'FUNC_DATE',
2625 'YEAR' => 'FUNC_DATE',
2627 'CHAR' => 'FUNC_CHAR',
2628 'VARCHAR' => 'FUNC_CHAR',
2629 'TINYTEXT' => 'FUNC_CHAR',
2630 'TEXT' => 'FUNC_CHAR',
2631 'MEDIUMTEXT' => 'FUNC_CHAR',
2632 'LONGTEXT' => 'FUNC_CHAR',
2633 'BINARY' => 'FUNC_CHAR',
2634 'VARBINARY' => 'FUNC_CHAR',
2635 'TINYBLOB' => 'FUNC_CHAR',
2636 'MEDIUMBLOB' => 'FUNC_CHAR',
2637 'BLOB' => 'FUNC_CHAR',
2638 'LONGBLOB' => 'FUNC_CHAR',
2642 'GEOMETRY' => 'FUNC_SPATIAL',
2643 'POINT' => 'FUNC_SPATIAL',
2644 'LINESTRING' => 'FUNC_SPATIAL',
2645 'POLYGON' => 'FUNC_SPATIAL',
2646 'MULTIPOINT' => 'FUNC_SPATIAL',
2647 'MULTILINESTRING' => 'FUNC_SPATIAL',
2648 'MULTIPOLYGON' => 'FUNC_SPATIAL',
2649 'GEOMETRYCOLLECTION' => 'FUNC_SPATIAL',
2654 * Map above defined groups to any function
2656 * @global array $cfg['RestrictFunctions']
2658 $cfg['RestrictFunctions'] = array(
2659 'FUNC_CHAR' => array(
2685 'FUNC_DATE' => array(
2700 'FUNC_NUMBER' => array(
2737 'FUNC_SPATIAL' => array(
2760 * Default functions for above defined groups
2762 * @global array $cfg['DefaultFunctions']
2764 $cfg['DefaultFunctions'] = array(
2767 'FUNC_NUMBER' => '',
2768 'first_timestamp' => 'NOW',
2769 'pk_char36' => 'UUID',
2778 * @global array $cfg['NumOperators']
2780 $cfg['NumOperators'] = array(
2794 * @global array $cfg['TextOperators']
2796 $cfg['TextOperators'] = array(
2811 * @global array $cfg['EnumOperators']
2813 $cfg['EnumOperators'] = array(
2821 * @global array $cfg['SetOperators']
2823 $cfg['SetOperators'] = array(
2831 * @global array $cfg['NullOperators']
2833 $cfg['NullOperators'] = array(
2841 * @global array $cfg['UnaryOperators']
2843 $cfg['UnaryOperators'] = array(