Remove unneeded variables from config.default.php
[phpmyadmin.git] / libraries / config.default.php
blobc40e784f8367aa094a4c2fbc709922bb29d5e866
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * <code>
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 !!
10 * </code>
12 * DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
14 * phpMyAdmin default configuration, you can copy values from here to your
15 * config.inc.php
17 * All directives are explained in Documentation.html
19 * @package phpMyAdmin
22 /**
23 * Your phpMyAdmin URL.
25 * Complete the variable below with the full URL ie
26 * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
28 * It must contain characters that are valid for a URL, and the path is
29 * case sensitive on some Web servers, for example Unix-based servers.
31 * In most cases you can leave this variable empty, as the correct value
32 * will be detected automatically. However, we recommend that you do
33 * test to see that the auto-detection code works in your system. A good
34 * test is to browse a table, then edit a row and save it. There will be
35 * an error message if phpMyAdmin cannot auto-detect the correct value.
37 * @global string $cfg['PmaAbsoluteUri']
39 $cfg['PmaAbsoluteUri'] = '';
41 /**
42 * Disable the default warning that is displayed on the DB Details Structure page if
43 * any of the required Tables for the configuration storage could not be found
45 * @global boolean $cfg['PmaNoRelation_DisableWarning']
47 $cfg['PmaNoRelation_DisableWarning'] = false;
49 /**
50 * Disable the default warning that is displayed if Suhosin is detected
52 * @global boolean $cfg['SuhosinDisableWarning']
54 $cfg['SuhosinDisableWarning'] = false;
56 /**
57 * Disable the default warning that is displayed if mcrypt is missing for
58 * cookie authentication.
60 * @global boolean $cfg['McryptDisableWarning']
62 $cfg['McryptDisableWarning'] = false;
64 /**
65 * Show warning about incomplete translations on certain threshold.
67 * @global boolean $cfg['TranslationWarningThreshold']
69 $cfg['TranslationWarningThreshold'] = 80;
71 /**
72 * Allows phpMyAdmin to be included from a document located on
73 * another domain; setting this to true is a potential security hole
75 * @global boolean $cfg['AllowThirdPartyFraming']
77 $cfg['AllowThirdPartyFraming'] = false;
79 /**
80 * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
81 * at least one server configuration uses 'cookie' auth_type, enter here a
82 * pass phrase that will be used by blowfish. The maximum length seems to be 46
83 * characters.
85 * @global string $cfg['blowfish_secret']
87 $cfg['blowfish_secret'] = '';
90 /*******************************************************************************
91 * Server(s) configuration
93 * The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
94 * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
95 * to ''. If you want more than one server, just copy following section
96 * (including $i incrementation) several times. There is no need to define
97 * full server array, just define values you need to change.
99 * @global array $cfg['Servers']
101 $cfg['Servers'] = array();
103 $i = 1;
106 * MySQL hostname or IP address
108 * @global string $cfg['Servers'][$i]['host']
110 $cfg['Servers'][$i]['host'] = 'localhost';
113 * MySQL port - leave blank for default port
115 * @global string $cfg['Servers'][$i]['port']
117 $cfg['Servers'][$i]['port'] = '';
120 * Path to the socket - leave blank for default socket
122 * @global string $cfg['Servers'][$i]['socket']
124 $cfg['Servers'][$i]['socket'] = '';
127 * Use SSL for connecting to MySQL server?
129 * @global boolean $cfg['Servers'][$i]['ssl']
131 $cfg['Servers'][$i]['ssl'] = false;
134 * How to connect to MySQL server ('tcp' or 'socket')
136 * @global string $cfg['Servers'][$i]['connect_type']
138 $cfg['Servers'][$i]['connect_type'] = 'tcp';
141 * The PHP MySQL extension to use ('mysql' or 'mysqli')
143 * @global string $cfg['Servers'][$i]['extension']
145 $cfg['Servers'][$i]['extension'] = 'mysqli';
148 * Use compressed protocol for the MySQL connection
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 * HTTP Basic Auth Realm name to display (only used with 'HTTP' auth_type)
182 * @global string $cfg['Servers'][$i]['auth_http_realm']
184 $cfg['Servers'][$i]['auth_http_realm'] = '';
187 * File containing Swekey ids and login names (see /contrib);
188 * leave empty to deactivate Swekey hardware authentication
190 * @global string $cfg['Servers'][$i]['auth_swekey_config']
192 $cfg['Servers'][$i]['auth_swekey_config'] = '';
195 * MySQL user
197 * @global string $cfg['Servers'][$i]['user']
199 $cfg['Servers'][$i]['user'] = 'root';
202 * MySQL password (only needed with 'config' auth_type)
204 * @global string $cfg['Servers'][$i]['password']
206 $cfg['Servers'][$i]['password'] = '';
209 * Session to use for 'signon' authentication method
211 * @global string $cfg['Servers'][$i]['SignonSession']
213 $cfg['Servers'][$i]['SignonSession'] = '';
216 * PHP script to use for 'signon' authentication method
218 * @global string $cfg['Servers'][$i]['SignonScript']
220 $cfg['Servers'][$i]['SignonScript'] = '';
223 * URL where to redirect user to login for 'signon' authentication method
225 * @global string $cfg['Servers'][$i]['SignonURL']
227 $cfg['Servers'][$i]['SignonURL'] = '';
230 * URL where to redirect user after logout
232 * @global string $cfg['Servers'][$i]['LogoutURL']
234 $cfg['Servers'][$i]['LogoutURL'] = '';
237 * Whether to try to connect without password
239 * @global boolean $cfg['Servers'][$i]['nopassword']
241 $cfg['Servers'][$i]['nopassword'] = false;
244 * If set to a db-name, only this db is displayed in left frame
245 * It may also be an array of db-names, where sorting order is relevant.
247 * @global string $cfg['Servers'][$i]['only_db']
249 $cfg['Servers'][$i]['only_db'] = '';
252 * Database name to be hidden from listings
254 * @global string $cfg['Servers'][$i]['hide_db']
256 $cfg['Servers'][$i]['hide_db'] = '';
259 * Verbose name for this host - leave blank to show the hostname
260 * (for HTTP authentication, all non-US-ASCII characters will be stripped)
262 * @global string $cfg['Servers'][$i]['verbose']
264 $cfg['Servers'][$i]['verbose'] = '';
267 * Database used for Relation, Bookmark and PDF Features
268 * (see scripts/create_tables.sql)
269 * - leave blank for no support
270 * SUGGESTED: 'phpmyadmin'
272 * @global string $cfg['Servers'][$i]['pmadb']
274 $cfg['Servers'][$i]['pmadb'] = '';
277 * Bookmark table
278 * - leave blank for no bookmark support
279 * SUGGESTED: 'pma_bookmark'
281 * @global string $cfg['Servers'][$i]['bookmarktable']
283 $cfg['Servers'][$i]['bookmarktable'] = '';
286 * table to describe the relation between links (see doc)
287 * - leave blank for no relation-links support
288 * SUGGESTED: 'pma_relation'
290 * @global string $cfg['Servers'][$i]['relation']
292 $cfg['Servers'][$i]['relation'] = '';
295 * table to describe the display fields
296 * - leave blank for no display fields support
297 * SUGGESTED: 'pma_table_info'
299 * @global string $cfg['Servers'][$i]['table_info']
301 $cfg['Servers'][$i]['table_info'] = '';
304 * table to describe the tables position for the PDF schema
305 * - leave blank for no PDF schema support
306 * SUGGESTED: 'pma_table_coords'
308 * @global string $cfg['Servers'][$i]['table_coords']
310 $cfg['Servers'][$i]['table_coords'] = '';
313 * table to describe pages of relationpdf
314 * - leave blank if you don't want to use this
315 * SUGGESTED: 'pma_pdf_pages'
317 * @global string $cfg['Servers'][$i]['pdf_pages']
319 $cfg['Servers'][$i]['pdf_pages'] = '';
322 * table to store column information
323 * - leave blank for no column comments/mime types
324 * SUGGESTED: 'pma_column_info'
326 * @global string $cfg['Servers'][$i]['column_info']
328 $cfg['Servers'][$i]['column_info'] = '';
331 * table to store SQL history
332 * - leave blank for no SQL query history
333 * SUGGESTED: 'pma_history'
335 * @global string $cfg['Servers'][$i]['history']
337 $cfg['Servers'][$i]['history'] = '';
340 * table to store the coordinates for Designer
341 * - leave blank for no Designer feature
342 * SUGGESTED: 'pma_designer_coords'
344 * @global string $cfg['Servers'][$i]['designer_coords']
346 $cfg['Servers'][$i]['designer_coords'] = '';
349 * table to store recently used tables
350 * - leave blank for no "persistent" recently used tables
351 * SUGGESTED: 'pma_recent'
353 $cfg['Servers'][$i]['recent'] = '';
356 * table to store UI preferences for tables
357 * - leave blank for no "persistent" UI preferences
358 * SUGGESTED: 'pma_table_uiprefs'
360 $cfg['Servers'][$i]['table_uiprefs'] = '';
363 * table to store SQL tracking
364 * - leave blank for no SQL tracking
365 * SUGGESTED: 'pma_tracking'
367 * @global string $cfg['Servers'][$i]['tracking']
369 $cfg['Servers'][$i]['tracking'] = '';
372 * table to store user preferences
373 * - leave blank to disable server storage
374 * SUGGESTED: 'pma_userconfig'
376 * @global string $cfg['Servers'][$i]['userconfig']
378 $cfg['Servers'][$i]['userconfig'] = '';
381 * Maximum number of records saved in $cfg['Servers'][$i]['table_uiprefs'] table.
383 * In case where tables in databases is modified (e.g. dropped or renamed),
384 * table_uiprefs may contains invalid data (referring to tables which are not
385 * exist anymore).
386 * This configuration make sure that we only keep N (N = MaxTableUiprefs)
387 * newest record in table_uiprefs and automatically delete older records.
389 * @global integer $cfg['Servers'][$i]['userconfig'] = '';
391 $cfg['Servers'][$i]['MaxTableUiprefs'] = 100;
394 * set to false if you know that your pma_* tables are up to date.
395 * This prevents compatibility checks and thereby increases performance.
397 * @global boolean $cfg['Servers'][$i]['verbose_check']
399 $cfg['Servers'][$i]['verbose_check'] = true;
402 * whether to allow root login
404 * @global boolean $cfg['Servers'][$i]['AllowRoot']
406 $cfg['Servers'][$i]['AllowRoot'] = true;
409 * whether to allow login of any user without a password
411 * @global boolean $cfg['Servers'][$i]['AllowNoPassword']
413 $cfg['Servers'][$i]['AllowNoPassword'] = false;
416 * Host authentication order, leave blank to not use
418 * @global string $cfg['Servers'][$i]['AllowDeny']['order']
420 $cfg['Servers'][$i]['AllowDeny']['order'] = '';
423 * Host authentication rules, leave blank for defaults
425 * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
427 $cfg['Servers'][$i]['AllowDeny']['rules'] = array();
430 * Disable use of INFORMATION_SCHEMA
432 * @see http://sf.net/support/tracker.php?aid=1849494
433 * @see http://bugs.mysql.com/19588
434 * @global boolean $cfg['Servers'][$i]['DisableIS']
436 $cfg['Servers'][$i]['DisableIS'] = true;
439 * SQL command to fetch available databases
441 * by default most user will be fine with SHOW DATABASES,
442 * for servers with a huge amount of databases it is possible to
443 * define a command which executes faster but with less information
445 * especially when accessing database servers from ISPs changing this command
446 * can result in a great speed improvement
448 * false will disable fetching databases from the server, only databases in
449 * $cfg['Servers'][$i]['only_db'] will be displayed
451 * #user# will be replaced by current user
453 * examples:
454 * 'SHOW DATABASES'
455 * "SHOW DATABASES LIKE '#user#\_%'"
456 * 'SELECT DISTINCT TABLE_SCHEMA FROM information_schema.SCHEMA_PRIVILEGES'
457 * 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA'
458 * false
460 * @global array $cfg['Servers'][$i]['ShowDatabasesCommand']
462 $cfg['Servers'][$i]['ShowDatabasesCommand'] = 'SHOW DATABASES';
465 * Whether to count tables when showing database list
467 * @global array $cfg['Servers'][$i]['CountTables']
469 $cfg['Servers'][$i]['CountTables'] = false;
472 * Whether the tracking mechanism creates versions for tables and views automatically.
474 * @global bool $cfg['Servers'][$i]['tracking_version_auto_create']
477 $cfg['Servers'][$i]['tracking_version_auto_create'] = false;
480 * Defines the list of statements the auto-creation uses for new versions.
482 * @global string $cfg['Servers'][$i]['tracking_default_statements']
485 $cfg['Servers'][$i]['tracking_default_statements'] = 'CREATE TABLE,ALTER TABLE,DROP TABLE,RENAME TABLE,' .
486 'CREATE INDEX,DROP INDEX,' .
487 'INSERT,UPDATE,DELETE,TRUNCATE,REPLACE,' .
488 'CREATE VIEW,ALTER VIEW,DROP VIEW,' .
489 'CREATE DATABASE,ALTER DATABASE,DROP DATABASE';
492 * Whether a DROP VIEW IF EXISTS statement will be added as first line to the log when creating a view.
494 * @global bool $cfg['Servers'][$i]['tracking_add_drop_view']
497 $cfg['Servers'][$i]['tracking_add_drop_view'] = true;
500 * Whether a DROP TABLE IF EXISTS statement will be added as first line to the log when creating a table.
502 * @global bool $cfg['Servers'][$i]['tracking_add_drop_table']
505 $cfg['Servers'][$i]['tracking_add_drop_table'] = true;
508 * Whether a DROP DATABASE IF EXISTS statement will be added as first line to the log when creating a database.
510 * @global bool $cfg['Servers'][$i]['tracking_add_drop_database']
513 $cfg['Servers'][$i]['tracking_add_drop_database'] = true;
516 * Default server (0 = no default server)
518 * If you have more than one server configured, you can set $cfg['ServerDefault']
519 * to any one of them to auto-connect to that server when phpMyAdmin is started,
520 * or set it to 0 to be given a list of servers without logging in
521 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
522 * set to that server.
524 * @global integer $cfg['ServerDefault']
526 $cfg['ServerDefault'] = 1;
529 * Other core phpMyAdmin settings
532 * whether Ajax behavior is active
534 * @global boolean $cfg['AjaxEnable']
536 $cfg['AjaxEnable'] = true;
539 * whether version check is active
541 * @global boolean $cfg['VersionCheck']
543 $cfg['VersionCheck'] = VERSION_CHECK_DEFAULT;
546 * maximum number of db's displayed in left frame and database list
548 * @global integer $cfg['MaxDbList']
550 $cfg['MaxDbList'] = 100;
553 * maximum number of tables displayed in table list
555 * @global integer $cfg['MaxTableList']
557 $cfg['MaxTableList'] = 250;
560 * whether to show hint or not
562 * @global boolean $cfg['ShowHint']
564 $cfg['ShowHint'] = true;
567 * maximum number of characters when a SQL query is displayed
569 * @global integer $cfg['MaxCharactersInDisplayedSQL']
571 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
574 * use GZIP output buffering if possible (true|false|'auto')
576 * @global string $cfg['OBGzip']
578 $cfg['OBGzip'] = 'auto';
581 * use persistent connections to MySQL database
583 * @global boolean $cfg['PersistentConnections']
585 $cfg['PersistentConnections'] = false;
588 * whether to force using HTTPS
590 * @global boolean $cfg['ForceSSL']
592 $cfg['ForceSSL'] = false;
595 * maximum execution time in seconds (0 for no limit)
597 * @global integer $cfg['ExecTimeLimit']
599 $cfg['ExecTimeLimit'] = 300;
602 * Path for storing session data (session_save_path PHP parameter).
604 * @global integer $cfg['SessionSavePath']
606 $cfg['SessionSavePath'] = '';
609 * maximum allocated bytes ('0' for no limit)
610 * this is a string because '16M' is a valid value; we must put here
611 * a string as the default value so that /setup accepts strings
613 * @global string $cfg['MemoryLimit']
615 $cfg['MemoryLimit'] = '0';
618 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
620 * @global boolean $cfg['SkipLockedTables']
622 $cfg['SkipLockedTables'] = false;
625 * show SQL queries as run
627 * @global boolean $cfg['ShowSQL']
629 $cfg['ShowSQL'] = true;
632 * show a 'Drop database' link to normal users
634 * @global boolean $cfg['AllowUserDropDatabase']
636 $cfg['AllowUserDropDatabase'] = false;
639 * confirm some commands that can result in loss of data
640 * (see "need_confirm" in the parser)
642 * @global boolean $cfg['Confirm']
644 $cfg['Confirm'] = true;
647 * recall previous login in cookie authentication mode or not
649 * @global boolean $cfg['LoginCookieRecall']
651 $cfg['LoginCookieRecall'] = true;
654 * validity of cookie login (in seconds; 1440 matches php.ini's
655 * session.gc_maxlifetime)
657 * @global integer $cfg['LoginCookieValidity']
659 $cfg['LoginCookieValidity'] = 1440;
662 * how long login cookie should be stored (in seconds)
664 * @global integer $cfg['LoginCookieStore']
666 $cfg['LoginCookieStore'] = 0;
669 * whether to delete all login cookies on logout
671 * @global boolean $cfg['LoginCookieDeleteAll']
673 $cfg['LoginCookieDeleteAll'] = true;
676 * whether to enable the "database search" feature or not
678 * @global boolean $cfg['UseDbSearch']
680 $cfg['UseDbSearch'] = true;
683 * if set to true, PMA continues computing multiple-statement queries
684 * even if one of the queries failed
686 * @global boolean $cfg['IgnoreMultiSubmitErrors']
688 $cfg['IgnoreMultiSubmitErrors'] = false;
691 * if set to true, PMA will show the affected rows of EACH statement on
692 * multiple-statement queries. See the libraries/import.php file for
693 * hard coded defaults on how many queries a statement may contain!
695 * @global boolean $cfg['VerboseMultiSubmit']
697 $cfg['VerboseMultiSubmit'] = true;
700 * allow login to any user entered server in cookie based authentication
702 * @global boolean $cfg['AllowArbitraryServer']
704 $cfg['AllowArbitraryServer'] = false;
707 /*******************************************************************************
708 * Error handler configuration
710 * this configures phpMyAdmin's own error handler, it is used to avoid information
711 * disclosure, gather errors for logging, reporting and displaying
713 * @global array $cfg['Error_Handler']
715 $cfg['Error_Handler'] = array();
718 * whether to display errors or not
720 * this does not affect errors of type E_USER_*
722 * @global boolean $cfg['Error_Handler']['display']
724 $cfg['Error_Handler']['display'] = false;
727 * (NOT IMPLEMENTED YET)
728 * where to log errors, false or empty to disable
730 * <code>
731 * // EXAMPLE log to std PHP error log
732 * $cfg['Error_Handler']['log'] = array(0);
733 * // EXAMPLE mail errors
734 * $cfg['Error_Handler']['log'] = array(1, 'admin@example.org');
735 * // EXAMPLE append to specific file
736 * $cfg['Error_Handler']['log'] = array(3, '/var/log/phpmyadmin_error.log');
737 * </code>
739 * @see http://php.net/error_log
740 * @global string $cfg['Error_Handler']['log']
742 //$cfg['Error_Handler']['log'] = false;
745 * gather all errors in session to be displayed on a error reporting page
746 * for viewing and/or sending to phpMyAdmin developer team
748 * @global boolean $cfg['Error_Handler']['gather']
750 $cfg['Error_Handler']['gather'] = false;
753 /*******************************************************************************
754 * Left frame setup
758 * use a select-based menu and display only the current tables in the left frame.
760 * @global boolean $cfg['LeftFrameLight']
762 $cfg['LeftFrameLight'] = true;
765 * turn the select-based light menu into a tree
767 * @global boolean $cfg['LeftFrameDBTree']
769 $cfg['LeftFrameDBTree'] = true;
772 * the separator to sub-tree the select-based light menu tree
774 * @global string $cfg['LeftFrameDBSeparator']
776 $cfg['LeftFrameDBSeparator'] = '_';
779 * Which string will be used to generate table prefixes
780 * to split/nest tables into multiple categories
782 * @global string $cfg['LeftFrameTableSeparator']
784 $cfg['LeftFrameTableSeparator']= '__';
787 * How many sublevels should be displayed when splitting up tables by the above Separator
789 * @global integer $cfg['LeftFrameTableLevel']
791 $cfg['LeftFrameTableLevel'] = 1;
794 * display table comment as tooltip in left frame
796 * @global boolean $cfg['ShowTooltip']
798 $cfg['ShowTooltip'] = true;
801 * if ShowToolTip is enabled, this defines that table/db comments
803 * @global boolean $cfg['ShowTooltipAliasDB']
805 $cfg['ShowTooltipAliasDB'] = false;
808 * are shown (in the left menu and db_structure) instead of table/db names.
809 * Setting ShowTooltipAliasTB to 'nested' will only use the Aliases for nested
810 * descriptors, not the table itself.
812 * @global boolean $cfg['ShowTooltipAliasTB']
814 $cfg['ShowTooltipAliasTB'] = false;
817 * display logo at top of left frame
819 * @global boolean $cfg['LeftDisplayLogo']
821 $cfg['LeftDisplayLogo'] = true;
824 * where should logo link point to (can also contain an external URL)
826 * @global string $cfg['LeftLogoLink']
828 $cfg['LeftLogoLink'] = 'main.php';
831 * whether to open the linked page in the main window ('main') or
832 * in a new window ('new')
834 * @global string $cfg['LeftLogoLinkWindow']
836 $cfg['LeftLogoLinkWindow'] = 'main';
839 * number of recently used tables displayed in the navigation frame
841 * @global integer $cfg['LeftRecentTable']
843 $cfg['LeftRecentTable'] = 10;
846 * display a JavaScript table filter in the left frame
847 * when more then x tables are present
849 * @global boolean $cfg['LeftDisplayTableFilterMinimum']
851 $cfg['LeftDisplayTableFilterMinimum'] = 30;
854 * display server choice at top of left frame
856 * @global boolean $cfg['LeftDisplayServers']
858 $cfg['LeftDisplayServers'] = false;
861 * server choice as links
863 * @global boolean $cfg['DisplayServersList']
865 $cfg['DisplayServersList'] = false;
868 * database choice in light as links
870 * @global boolean $cfg['DisplayDatabasesList']
872 $cfg['DisplayDatabasesList'] = 'auto';
875 * target of the navigation panel quick access icon
877 * Possible values:
878 * 'tbl_structure.php' = fields list
879 * 'tbl_sql.php' = SQL form
880 * 'tbl_select.php' = search page
881 * 'tbl_change.php' = insert row page
882 * 'sql.php' = browse page
884 * @global string $cfg['LeftDefaultTabTable']
886 $cfg['LeftDefaultTabTable'] = 'tbl_structure.php';
889 /*******************************************************************************
890 * In the main frame, at startup...
894 * allow to display statistics and space usage in the pages about database
895 * details and table properties
897 * @global boolean $cfg['ShowStats']
899 $cfg['ShowStats'] = true;
902 * show PHP info link
904 * @global boolean $cfg['ShowPhpInfo']
906 $cfg['ShowPhpInfo'] = false;
909 * show MySQL server and web server information
911 * @global boolean $cfg['ShowServerInfo']
913 $cfg['ShowServerInfo'] = true;
916 * show change password link
918 * @global boolean $cfg['ShowChgPassword']
920 $cfg['ShowChgPassword'] = true;
923 * show create database form
925 * @global boolean $cfg['ShowCreateDb']
927 $cfg['ShowCreateDb'] = true;
930 * suggest a new DB name if possible (false = keep empty)
932 * @global boolean $cfg['SuggestDBName']
934 $cfg['SuggestDBName'] = true;
937 /*******************************************************************************
938 * In browse mode...
942 * Use icons instead of text for the navigation bar buttons
943 * and on right panel top menu (server db table) (true|false|'both')
945 * @global string $cfg['NavigationBarIconic']
947 $cfg['NavigationBarIconic'] = true;
950 * Defines whether a user should be displayed a "show all (records)"
951 * button in browse mode or not.
953 * @global boolean $cfg['ShowAll']
955 $cfg['ShowAll'] = false;
958 * Number of rows displayed when browsing a result set. If the result
959 * set contains more rows, "Previous" and "Next".
961 * @global integer $cfg['MaxRows']
963 $cfg['MaxRows'] = 30;
966 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
967 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
968 * ascending order else-)
970 * @global string $cfg['Order']
972 $cfg['Order'] = 'SMART';
975 * default for 'Show binary contents as HEX'
977 * @global string $cfg['DisplayBinaryAsHex']
979 $cfg['DisplayBinaryAsHex'] = true;
982 /*******************************************************************************
983 * In edit mode...
987 * disallow editing of binary fields
988 * valid values are:
989 * false allow editing
990 * 'blob' allow editing except for BLOB fields
991 * 'all' disallow editing
993 * @global string $cfg['ProtectBinary']
995 $cfg['ProtectBinary'] = 'blob';
998 * Display the function fields in edit/insert mode
1000 * @global boolean $cfg['ShowFunctionFields']
1002 $cfg['ShowFunctionFields'] = true;
1005 * Display the type fields in edit/insert mode
1007 * @global boolean $cfg['ShowFieldTypesInDataEditView']
1009 $cfg['ShowFieldTypesInDataEditView'] = true;
1012 * Which editor should be used for CHAR/VARCHAR fields:
1013 * input - allows limiting of input length
1014 * textarea - allows newlines in fields
1016 * @global string $cfg['CharEditing']
1018 $cfg['CharEditing'] = 'input';
1021 * How many rows can be inserted at one time
1023 * @global integer $cfg['InsertRows']
1025 $cfg['InsertRows'] = 2;
1028 * Sort order for items in a foreign-key drop-down list.
1029 * 'content' is the referenced data, 'id' is the key value.
1031 * @global array $cfg['ForeignKeyDropdownOrder']
1033 $cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
1036 * A drop-down list will be used if fewer items are present
1038 * @global integer $cfg['ForeignKeyMaxLimit']
1040 $cfg['ForeignKeyMaxLimit'] = 100;
1043 /*******************************************************************************
1044 * For the export features...
1048 * Allow for the use of zip compression (requires zip support to be enabled)
1050 * @global boolean $cfg['ZipDump']
1052 $cfg['ZipDump'] = true;
1055 * Allow for the use of gzip compression (requires zlib)
1057 * @global boolean $cfg['GZipDump']
1059 $cfg['GZipDump'] = true;
1062 * Allow for the use of bzip2 compression (requires bz2 extension)
1064 * @global boolean $cfg['BZipDump']
1066 $cfg['BZipDump'] = true;
1069 * Will compress gzip/bzip2 exports on the fly without the need for much memory.
1070 * If you encounter problems with created gzip/bzip2 files disable this feature.
1072 * @global boolean $cfg['CompressOnFly']
1074 $cfg['CompressOnFly'] = true;
1077 /*******************************************************************************
1078 * Tabs display settings
1082 * Use graphically less intense menu tabs
1084 * @global boolean $cfg['LightTabs']
1086 $cfg['LightTabs'] = false;
1089 * Use icons instead of text for the table display of a database (true|false|'both')
1091 * @global boolean $cfg['PropertiesIconic']
1093 $cfg['PropertiesIconic'] = 'both';
1096 * How many columns should be used for table display of a database?
1097 * (a value larger than 1 results in some information being hidden)
1099 * @global integer $cfg['PropertiesNumColumns']
1101 $cfg['PropertiesNumColumns'] = 1;
1104 * Possible values:
1105 * 'main.php' = the welcome page
1106 * (recommended for multiuser setups)
1107 * 'server_databases.php' = list of databases
1108 * 'server_status.php' = runtime information
1109 * 'server_variables.php' = MySQL server variables
1110 * 'server_privileges.php' = user management
1111 * 'server_processlist.php' = process list
1113 * @global string $cfg['DefaultTabServer']
1115 $cfg['DefaultTabServer'] = 'main.php';
1118 * Possible values:
1119 * 'db_structure.php' = tables list
1120 * 'db_sql.php' = SQL form
1121 * 'db_search.php' = search query
1122 * 'db_operations.php' = operations on database
1124 * @global string $cfg['DefaultTabDatabase']
1126 $cfg['DefaultTabDatabase'] = 'db_structure.php';
1129 * Possible values:
1130 * 'tbl_structure.php' = fields list
1131 * 'tbl_sql.php' = SQL form
1132 * 'tbl_select.php' = search page
1133 * 'tbl_change.php' = insert row page
1134 * 'sql.php' = browse page
1136 * @global string $cfg['DefaultTabTable']
1138 $cfg['DefaultTabTable'] = 'sql.php';
1140 /*******************************************************************************
1141 * Export defaults
1143 $cfg['Export'] = array();
1146 * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xls/xml/yaml
1148 * @global string $cfg['Export']['format']
1150 $cfg['Export']['format'] = 'sql';
1153 * quick/custom/custom-no-form
1155 * @global string $cfg['Export']['format']
1157 $cfg['Export']['method'] = 'quick';
1160 * none/zip/gzip/bzip2
1162 * @global string $cfg['Export']['compression']
1164 $cfg['Export']['compression'] = 'none';
1169 * @global boolean $cfg['Export']['asfile']
1171 $cfg['Export']['asfile'] = true;
1176 * @global string $cfg['Export']['charset']
1178 $cfg['Export']['charset'] = '';
1183 * @global boolean $cfg['Export']['onserver']
1185 $cfg['Export']['onserver'] = false;
1190 * @global boolean $cfg['Export']['onserver_overwrite']
1192 $cfg['Export']['onserver_overwrite'] = false;
1197 * @global boolean $cfg['Export']['quick_export_onserver']
1199 $cfg['Export']['quick_export_onserver'] = false;
1204 * @global boolean $cfg['Export']['quick_export_onserver_overwrite']
1206 $cfg['Export']['quick_export_onserver_overwrite'] = false;
1211 * @global boolean $cfg['Export']['remember_file_template']
1213 $cfg['Export']['remember_file_template'] = true;
1218 * @global string $cfg['Export']['file_template_table']
1220 $cfg['Export']['file_template_table'] = '@TABLE@';
1225 * @global string $cfg['Export']['file_template_database']
1227 $cfg['Export']['file_template_database'] = '@DATABASE@';
1232 * @global string $cfg['Export']['file_template_server']
1234 $cfg['Export']['file_template_server'] = '@SERVER@';
1239 * @global string $cfg['Export']['codegen_structure_or_data']
1241 $cfg['Export']['codegen_structure_or_data'] = 'data';
1246 * @global $cfg['Export']['codegen_format']
1248 $cfg['Export']['codegen_format'] = 0;
1253 * @global boolean $cfg['Export']['ods_columns']
1255 $cfg['Export']['ods_columns'] = false;
1260 * @global string $cfg['Export']['ods_null']
1262 $cfg['Export']['ods_null'] = 'NULL';
1267 * @global string $cfg['Export']['odt_structure_or_data']
1269 $cfg['Export']['odt_structure_or_data'] = 'structure_and_data';
1274 * @global boolean $cfg['Export']['odt_columns']
1276 $cfg['Export']['odt_columns'] = true;
1281 * @global boolean $cfg['Export']['odt_relation']
1283 $cfg['Export']['odt_relation'] = true;
1288 * @global boolean $cfg['Export']['odt_comments']
1290 $cfg['Export']['odt_comments'] = true;
1295 * @global boolean $cfg['Export']['odt_mime']
1297 $cfg['Export']['odt_mime'] = true;
1302 * @global string $cfg['Export']['odt_null']
1304 $cfg['Export']['odt_null'] = 'NULL';
1309 * @global boolean $cfg['Export']['htmlword_structure_or_data']
1311 $cfg['Export']['htmlword_structure_or_data'] = 'structure_and_data';
1316 * @global boolean $cfg['Export']['htmlword_columns']
1318 $cfg['Export']['htmlword_columns'] = false;
1323 * @global string $cfg['Export']['htmlword_null']
1325 $cfg['Export']['htmlword_null'] = 'NULL';
1330 * @global string $cfg['Export']['texytext_structure_or_data']
1332 $cfg['Export']['texytext_structure_or_data'] = 'structure_and_data';
1337 * @global boolean $cfg['Export']['texytext_columns']
1339 $cfg['Export']['texytext_columns'] = false;
1344 * @global string $cfg['Export']['texytext_null']
1346 $cfg['Export']['texytext_null'] = 'NULL';
1351 * @global boolean $cfg['Export']['xls_columns']
1353 $cfg['Export']['xls_columns'] = false;
1358 * @global string $cfg['Export']['xls_structure_or_data']
1360 $cfg['Export']['xls_structure_or_data'] = 'data';
1365 * @global string $cfg['Export']['xls_null']
1367 $cfg['Export']['xls_null'] = 'NULL';
1372 * @global boolean $cfg['Export']['xlsx_columns']
1374 $cfg['Export']['xlsx_columns'] = false;
1379 * @global string $cfg['Export']['xlsx_structure_or_data']
1381 $cfg['Export']['xlsx_structure_or_data'] = 'data';
1386 * @global string $cfg['Export']['xlsx_null']
1388 $cfg['Export']['xlsx_null'] = 'NULL';
1393 * @global boolean $cfg['Export']['csv_columns']
1395 $cfg['Export']['csv_columns'] = false;
1400 * @global string $cfg['Export']['csv_structure_or_data']
1402 $cfg['Export']['csv_structure_or_data'] = 'data';
1407 * @global string $cfg['Export']['csv_null']
1409 $cfg['Export']['csv_null'] = 'NULL';
1414 * @global string $cfg['Export']['csv_separator']
1416 $cfg['Export']['csv_separator'] = ',';
1421 * @global string $cfg['Export']['csv_enclosed']
1423 $cfg['Export']['csv_enclosed'] = '"';
1428 * @global string $cfg['Export']['csv_escaped']
1430 $cfg['Export']['csv_escaped'] = '\\';
1435 * @global string $cfg['Export']['csv_terminated']
1437 $cfg['Export']['csv_terminated'] = 'AUTO';
1442 * @global string $cfg['Export']['csv_removeCRLF']
1444 $cfg['Export']['csv_removeCRLF'] = false;
1449 * @global boolean $cfg['Export']['excel_columns']
1451 $cfg['Export']['excel_columns'] = false;
1456 * @global string $cfg['Export']['excel_null']
1458 $cfg['Export']['excel_null'] = 'NULL';
1461 * win/mac
1463 * @global string $cfg['Export']['excel_edition']
1465 $cfg['Export']['excel_edition'] = 'win';
1470 * @global string $cfg['Export']['excel_removeCRLF']
1472 $cfg['Export']['excel_removeCRLF'] = false;
1477 * @global string $cfg['Export']['excel_structure_or_data']
1479 $cfg['Export']['excel_structure_or_data'] = 'data';
1484 * @global string $cfg['Export']['latex_structure_or_data']
1486 $cfg['Export']['latex_structure_or_data'] = 'structure_and_data';
1491 * @global boolean $cfg['Export']['latex_columns']
1493 $cfg['Export']['latex_columns'] = true;
1498 * @global boolean $cfg['Export']['latex_relation']
1500 $cfg['Export']['latex_relation'] = true;
1505 * @global boolean $cfg['Export']['latex_comments']
1507 $cfg['Export']['latex_comments'] = true;
1512 * @global boolean $cfg['Export']['latex_mime']
1514 $cfg['Export']['latex_mime'] = true;
1519 * @global string $cfg['Export']['latex_null']
1521 $cfg['Export']['latex_null'] = '\textit{NULL}';
1526 * @global boolean $cfg['Export']['latex_caption']
1528 $cfg['Export']['latex_caption'] = true;
1533 * @global string $cfg['Export']['latex_structure_caption']
1535 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1540 * @global string $cfg['Export']['latex_structure_continued_caption']
1542 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
1547 * @global string $cfg['Export']['latex_data_caption']
1549 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1554 * @global string $cfg['Export']['latex_data_continued_caption']
1556 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1561 * @global string $cfg['Export']['latex_data_label']
1563 $cfg['Export']['latex_data_label'] = 'tab:@TABLE@-data';
1568 * @global string $cfg['Export']['latex_structure_label']
1570 $cfg['Export']['latex_structure_label'] = 'tab:@TABLE@-structure';
1575 * @global string $cfg['Export']['mediawiki_structure_or_data']
1577 $cfg['Export']['mediawiki_structure_or_data'] = 'data';
1582 * @global string $cfg['Export']['ods_structure_or_data']
1584 $cfg['Export']['ods_structure_or_data'] = 'data';
1589 * @global string $cfg['Export']['pdf_structure_or_data']
1591 $cfg['Export']['pdf_structure_or_data'] = 'data';
1596 * @global string $cfg['Export']['php_array_structure_or_data']
1598 $cfg['Export']['php_array_structure_or_data'] = 'data';
1603 * @global string $cfg['Export']['json_structure_or_data']
1605 $cfg['Export']['json_structure_or_data'] = 'data';
1610 * @global string $cfg['Export']['sql_structure_or_data']
1612 $cfg['Export']['sql_structure_or_data'] = 'structure_and_data';
1617 * @global string $cfg['Export']['sql_compatibility']
1619 $cfg['Export']['sql_compatibility'] = 'NONE';
1622 * Whether to include comments in SQL export.
1624 * @global string $cfg['Export']['sql_include_comments']
1626 $cfg['Export']['sql_include_comments'] = true;
1631 * @global boolean $cfg['Export']['sql_disable_fk']
1633 $cfg['Export']['sql_disable_fk'] = false;
1638 * @global boolean $cfg['Export']['sql_use_transaction']
1640 $cfg['Export']['sql_use_transaction'] = false;
1645 * @global boolean $cfg['Export']['sql_drop_database']
1647 $cfg['Export']['sql_drop_database'] = false;
1652 * @global boolean $cfg['Export']['sql_drop_table']
1654 $cfg['Export']['sql_drop_table'] = false;
1659 * true by default for correct behavior when dealing with exporting
1660 * of VIEWs and the stand-in table
1661 * @global boolean $cfg['Export']['sql_if_not_exists']
1663 $cfg['Export']['sql_if_not_exists'] = true;
1668 * @global boolean $cfg['Export']['sql_procedure_function']
1670 $cfg['Export']['sql_procedure_function'] = true;
1675 * @global boolean $cfg['Export']['sql_auto_increment']
1677 $cfg['Export']['sql_auto_increment'] = true;
1682 * @global boolean $cfg['Export']['sql_backquotes']
1684 $cfg['Export']['sql_backquotes'] = true;
1689 * @global boolean $cfg['Export']['sql_dates']
1691 $cfg['Export']['sql_dates'] = false;
1696 * @global boolean $cfg['Export']['sql_relation']
1698 $cfg['Export']['sql_relation'] = false;
1703 * @global boolean $cfg['Export']['sql_delayed']
1705 $cfg['Export']['sql_delayed'] = false;
1710 * @global boolean $cfg['Export']['sql_ignore']
1712 $cfg['Export']['sql_ignore'] = false;
1715 * Export time in UTC.
1717 * @global boolean $cfg['Export']['sql_utc_time']
1719 $cfg['Export']['sql_utc_time'] = true;
1724 * @global boolean $cfg['Export']['sql_hex_for_blob']
1726 $cfg['Export']['sql_hex_for_blob'] = true;
1729 * insert/update/replace
1731 * @global string $cfg['Export']['sql_type']
1733 $cfg['Export']['sql_type'] = 'INSERT';
1738 * @global integer $cfg['Export']['sql_max_query_size']
1740 $cfg['Export']['sql_max_query_size'] = 50000;
1745 * @global boolean $cfg['Export']['sql_comments']
1747 $cfg['Export']['sql_comments'] = false;
1752 * @global boolean $cfg['Export']['sql_mime']
1754 $cfg['Export']['sql_mime'] = false;
1757 * \n is replaced by new line
1759 * @global string $cfg['Export']['sql_header_comment']
1761 $cfg['Export']['sql_header_comment'] = '';
1766 * @global boolean $cfg['Export']['sql_create_table_statements']
1768 $cfg['Export']['sql_create_table_statements'] = true;
1771 * Whether to use complete inserts, extended inserts, both, or neither
1773 * @global string $cfg['Export']['sql_insert_syntax']
1775 $cfg['Export']['sql_insert_syntax'] = 'both';
1780 * @global string $cfg['Export']['pdf_report_title']
1782 $cfg['Export']['pdf_report_title'] = '';
1787 *@global string $cfg['Export']['xml_structure_or_data']
1789 $cfg['Export']['xml_structure_or_data'] = 'data';
1792 * Export schema for each structure
1794 * @global string $cfg['Export']['xml_export_struc']
1796 $cfg['Export']['xml_export_struc'] = true;
1799 * Export functions
1801 * @global string $cfg['Export']['xml_export_functions']
1803 $cfg['Export']['xml_export_functions'] = true;
1806 * Export procedures
1808 * @global string $cfg['Export']['xml_export_procedures']
1810 $cfg['Export']['xml_export_procedures'] = true;
1813 * Export schema for each table
1815 * @global string $cfg['Export']['xml_export_tables']
1817 $cfg['Export']['xml_export_tables'] = true;
1820 * Export triggers
1822 * @global string $cfg['Export']['xml_export_triggers']
1824 $cfg['Export']['xml_export_triggers'] = true;
1827 * Export views
1829 * @global string $cfg['Export']['xml_export_views']
1831 $cfg['Export']['xml_export_views'] = true;
1834 * Export contents data
1836 * @global string $cfg['Export']['xml_export_contents']
1838 $cfg['Export']['xml_export_contents'] = true;
1843 * @global string $cfg['Export']['yaml_structure_or_data']
1845 $cfg['Export']['yaml_structure_or_data'] = 'data';
1847 /*******************************************************************************
1848 * Import defaults
1850 $cfg['Import'] = array();
1855 * @global string $cfg['Import']['format']
1857 $cfg['Import']['format'] = 'sql';
1860 * Default charset for import.
1862 * @global string $cfg['Import']['charset']
1864 $cfg['Import']['charset'] = '';
1869 * @global boolean $cfg['Import']['allow_interrupt']
1871 $cfg['Import']['allow_interrupt'] = true;
1876 * @global integer $cfg['Import']['skip_queries']
1878 $cfg['Import']['skip_queries'] = 0;
1883 * @global string $cfg['Import']['sql_compatibility']
1885 $cfg['Import']['sql_compatibility'] = 'NONE';
1890 * @global string $cfg['Import']['sql_no_auto_value_on_zero']
1892 $cfg['Import']['sql_no_auto_value_on_zero'] = true;
1897 * @global boolean $cfg['Import']['csv_replace']
1899 $cfg['Import']['csv_replace'] = false;
1904 * @global boolean $cfg['Import']['csv_ignore']
1906 $cfg['Import']['csv_ignore'] = false;
1911 * @global string $cfg['Import']['csv_terminated']
1913 $cfg['Import']['csv_terminated'] = ',';
1918 * @global string $cfg['Import']['csv_enclosed']
1920 $cfg['Import']['csv_enclosed'] = '"';
1925 * @global string $cfg['Import']['csv_escaped']
1927 $cfg['Import']['csv_escaped'] = '\\';
1932 * @global string $cfg['Import']['csv_new_line']
1934 $cfg['Import']['csv_new_line'] = 'auto';
1939 * @global string $cfg['Import']['csv_columns']
1941 $cfg['Import']['csv_columns'] = '';
1946 * @global string $cfg['Import']['csv_col_names']
1948 $cfg['Import']['csv_col_names'] = false;
1953 * @global boolean $cfg['Import']['ldi_replace']
1955 $cfg['Import']['ldi_replace'] = false;
1960 * @global boolean $cfg['Import']['ldi_ignore']
1962 $cfg['Import']['ldi_ignore'] = false;
1967 * @global string $cfg['Import']['ldi_terminated']
1969 $cfg['Import']['ldi_terminated'] = ';';
1974 * @global string $cfg['Import']['ldi_enclosed']
1976 $cfg['Import']['ldi_enclosed'] = '"';
1981 * @global string $cfg['Import']['ldi_escaped']
1983 $cfg['Import']['ldi_escaped'] = '\\';
1988 * @global string $cfg['Import']['ldi_new_line']
1990 $cfg['Import']['ldi_new_line'] = 'auto';
1995 * @global string $cfg['Import']['ldi_columns']
1997 $cfg['Import']['ldi_columns'] = '';
2000 * 'auto' for auto-detection, true or false for forcing
2002 * @global string $cfg['Import']['ldi_local_option']
2004 $cfg['Import']['ldi_local_option'] = 'auto';
2009 * @global string $cfg['Import']['ods_col_names']
2011 $cfg['Import']['ods_col_names'] = false;
2016 * @global string $cfg['Import']['ods_empty_rows']
2018 $cfg['Import']['ods_empty_rows'] = true;
2023 * @global string $cfg['Import']['ods_recognize_percentages']
2025 $cfg['Import']['ods_recognize_percentages'] = true;
2030 * @global string $cfg['Import']['ods_recognize_currency']
2032 $cfg['Import']['ods_recognize_currency'] = true;
2037 * @global string $cfg['Import']['xml_col_names']
2039 $cfg['Import']['xls_col_names'] = false;
2044 * @global string $cfg['Import']['xml_empty_rows']
2046 $cfg['Import']['xls_empty_rows'] = true;
2051 * @global string $cfg['Import']['xlsx_col_names']
2053 $cfg['Import']['xlsx_col_names'] = false;
2056 * Link to the official MySQL documentation.
2057 * Be sure to include no trailing slash on the path.
2058 * See http://dev.mysql.com/doc/ for more information
2059 * about MySQL manuals and their types.
2061 * @global string $cfg['MySQLManualBase']
2063 $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
2066 * Type of MySQL documentation:
2067 * viewable - "viewable online", current one used on MySQL website
2068 * searchable - "Searchable, with user comments"
2069 * chapters - "HTML, one page per chapter"
2070 * chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
2071 * big - "HTML, all on one page"
2072 * old - old style used in phpMyAdmin 2.3.0 and sooner
2073 * none - do not show documentation links
2075 * @global string $cfg['MySQLManualType']
2077 $cfg['MySQLManualType'] = 'viewable';
2080 /*******************************************************************************
2081 * PDF options
2087 * @global array $cfg['PDFPageSizes']
2089 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
2094 * @global string $cfg['PDFDefaultPageSize']
2096 $cfg['PDFDefaultPageSize'] = 'A4';
2099 /*******************************************************************************
2100 * Language and character set conversion settings
2104 * Default language to use, if not browser-defined or user-defined
2106 * @global string $cfg['DefaultLang']
2108 $cfg['DefaultLang'] = 'en';
2111 * Default connection collation
2113 * @global string $cfg['DefaultConnectionCollation']
2115 $cfg['DefaultConnectionCollation'] = 'utf8_general_ci';
2118 * Force: always use this language
2119 * $cfg['Lang'] = 'en';
2121 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
2122 * English only
2124 * @global string $cfg['FilterLanguages']
2126 $cfg['FilterLanguages'] = '';
2129 * You can select here which functions will be used for character set conversion.
2130 * Possible values are:
2131 * auto - automatically use available one (first is tested iconv, then
2132 * recode)
2133 * iconv - use iconv or libiconv functions
2134 * recode - use recode_string function
2135 * none - disable encoding conversion
2137 * @global string $cfg['RecodingEngine']
2139 $cfg['RecodingEngine'] = 'auto';
2142 * Specify some parameters for iconv used in character set conversion. See iconv
2143 * documentation for details:
2144 * http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
2146 * @global string $cfg['IconvExtraParams']
2148 $cfg['IconvExtraParams'] = '//TRANSLIT';
2151 * Available character sets for MySQL conversion. currently contains all which could
2152 * be found in lang/* files and few more.
2153 * Character sets will be shown in same order as here listed, so if you frequently
2154 * use some of these move them to the top.
2156 * @global array $cfg['AvailableCharsets']
2158 $cfg['AvailableCharsets'] = array(
2159 'iso-8859-1',
2160 'iso-8859-2',
2161 'iso-8859-3',
2162 'iso-8859-4',
2163 'iso-8859-5',
2164 'iso-8859-6',
2165 'iso-8859-7',
2166 'iso-8859-8',
2167 'iso-8859-9',
2168 'iso-8859-10',
2169 'iso-8859-11',
2170 'iso-8859-12',
2171 'iso-8859-13',
2172 'iso-8859-14',
2173 'iso-8859-15',
2174 'windows-1250',
2175 'windows-1251',
2176 'windows-1252',
2177 'windows-1256',
2178 'windows-1257',
2179 'koi8-r',
2180 'big5',
2181 'gb2312',
2182 'utf-16',
2183 'utf-8',
2184 'utf-7',
2185 'x-user-defined',
2186 'euc-jp',
2187 'ks_c_5601-1987',
2188 'tis-620',
2189 'SHIFT_JIS'
2193 /*******************************************************************************
2194 * Customization & design
2196 * The graphical settings are now located in themes/theme-name/layout.inc.php
2200 * enable the left panel pointer
2201 * (used when LeftFrameLight is false)
2202 * see also LeftPointerColor
2203 * in layout.inc.php
2205 * @global boolean $cfg['LeftPointerEnable']
2207 $cfg['LeftPointerEnable'] = true;
2210 * enable the browse pointer
2211 * see also BrowsePointerColor
2212 * in layout.inc.php
2214 * @global boolean $cfg['BrowsePointerEnable']
2216 $cfg['BrowsePointerEnable'] = true;
2219 * enable the browse marker
2220 * see also BrowseMarkerColor
2221 * in layout.inc.php
2223 * @global boolean $cfg['BrowseMarkerEnable']
2225 $cfg['BrowseMarkerEnable'] = true;
2228 * textarea size (columns) in edit mode
2229 * (this value will be emphasized (*2) for SQL
2230 * query textareas and (*1.25) for query window)
2232 * @global integer $cfg['TextareaCols']
2234 $cfg['TextareaCols'] = 40;
2237 * textarea size (rows) in edit mode
2239 * @global integer $cfg['TextareaRows']
2241 $cfg['TextareaRows'] = 15;
2244 * double size of textarea size for LONGTEXT columns
2246 * @global boolean $cfg['LongtextDoubleTextarea']
2248 $cfg['LongtextDoubleTextarea'] = true;
2251 * auto-select when clicking in the textarea of the query-box
2253 * @global boolean $cfg['TextareaAutoSelect']
2255 $cfg['TextareaAutoSelect'] = false;
2258 * textarea size (columns) for CHAR/VARCHAR
2260 * @global integer $cfg['CharTextareaCols']
2262 $cfg['CharTextareaCols'] = 40;
2265 * textarea size (rows) for CHAR/VARCHAR
2267 * @global integer $cfg['CharTextareaRows']
2269 $cfg['CharTextareaRows'] = 2;
2272 * Max field data length in browse mode for all non-numeric fields
2274 * @global integer $cfg['LimitChars']
2276 $cfg['LimitChars'] = 50;
2279 * Where to show the edit/copy/delete links in browse mode
2280 * Possible values are 'left', 'right', 'both' and 'none';
2281 * which will be interpreted as 'top', 'bottom', 'both' and 'none'
2282 * respectively for vertical display mode
2284 * @global string $cfg['RowActionLinks']
2286 $cfg['RowActionLinks'] = 'left';
2289 * default display direction (horizontal|vertical|horizontalflipped)
2291 * @global string $cfg['DefaultDisplay']
2293 $cfg['DefaultDisplay'] = 'horizontal';
2296 * remember the last way a table sorted
2298 * @global string $cfg['RememberSorting']
2300 $cfg['RememberSorting'] = true;
2303 * default display direction for altering/creating columns (tbl_properties)
2304 * (horizontal|vertical|<number>)
2305 * number indicates maximum number for which vertical model is used
2307 * @global integer $cfg['DefaultPropDisplay']
2309 $cfg['DefaultPropDisplay'] = 3;
2312 * table-header rotation via faking or CSS? (css|fake|auto)
2313 * NOTE: CSS only works in IE browsers!
2315 * @global string $cfg['HeaderFlipType']
2317 $cfg['HeaderFlipType'] = 'auto';
2320 * shows stored relation-comments in 'browse' mode.
2322 * @global boolean $cfg['ShowBrowseComments']
2324 $cfg['ShowBrowseComments'] = true;
2327 * shows stored relation-comments in 'table property' mode.
2329 * @global boolean $cfg['ShowPropertyComments']
2331 $cfg['ShowPropertyComments']= true;
2334 * save edited cell(s) in browse-mode at once.
2336 $cfg['SaveCellsAtOnce'] = false;
2339 * shows table display direction.
2341 $cfg['ShowDisplayDirection'] = false;
2344 * repeat header names every X cells? (0 = deactivate)
2346 * @global integer $cfg['RepeatCells']
2348 $cfg['RepeatCells'] = 100;
2351 * Set to true if Edit link should open the query to edit in the query window
2352 * (assuming JavaScript is enabled), and to false if we should edit in the right panel
2354 * @global boolean $cfg['EditInWindow']
2356 $cfg['EditInWindow'] = true;
2359 * Width of Query window
2361 * @global integer $cfg['QueryWindowWidth']
2363 $cfg['QueryWindowWidth'] = 550;
2366 * Height of Query window
2368 * @global integer $cfg['QueryWindowHeight']
2370 $cfg['QueryWindowHeight'] = 310;
2373 * Set to true if you want DB-based query history.If false, this utilizes
2374 * JS-routines to display query history (lost by window close)
2376 * @global boolean $cfg['QueryHistoryDB']
2378 $cfg['QueryHistoryDB'] = false;
2381 * which tab to display in the querywindow on startup
2382 * (sql|files|history|full)
2384 * @global string $cfg['QueryWindowDefTab']
2386 $cfg['QueryWindowDefTab'] = 'sql';
2389 * When using DB-based query history, how many entries should be kept?
2391 * @global integer $cfg['QueryHistoryMax']
2393 $cfg['QueryHistoryMax'] = 25;
2396 * Use MIME-Types (stored in column comments table) for
2398 * @global boolean $cfg['BrowseMIME']
2400 $cfg['BrowseMIME'] = true;
2403 * When approximate count < this, PMA will get exact count for table rows.
2405 * @global integer $cfg['MaxExactCount']
2407 $cfg['MaxExactCount'] = 20000;
2410 * Zero means that no row count is done for views; see the doc
2412 * @global integer $cfg['MaxExactCountViews']
2414 $cfg['MaxExactCountViews'] = 0;
2417 * Sort table and database in natural order
2419 * @global boolean $cfg['NaturalOrder']
2421 $cfg['NaturalOrder'] = true;
2424 * Initial state for sliders
2425 * (open | closed)
2427 * @global string $cfg['InitialSlidersState']
2429 $cfg['InitialSlidersState'] = 'closed';
2432 * User preferences: disallow these settings
2433 * For possible setting names look in libraries/config/user_preferences.forms.php
2435 * @global array $cfg['UserprefsDisallow']
2437 $cfg['UserprefsDisallow'] = array();
2440 * User preferences: enable the Developer tab
2442 $cfg['UserprefsDeveloperTab'] = false;
2444 /*******************************************************************************
2445 * Window title settings
2449 * title of browser window when a table is selected
2451 * @global string $cfg['TitleTable']
2453 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2456 * title of browser window when a database is selected
2458 * @global string $cfg['TitleDatabase']
2460 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2463 * title of browser window when a server is selected
2465 * @global string $cfg['TitleServer']
2467 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2470 * title of browser window when nothing is selected
2471 * @global string $cfg['TitleDefault']
2473 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2476 * show some icons for warning, error and information messages (true|false)?
2478 * @global boolean $cfg['ErrorIconic']
2480 $cfg['ErrorIconic'] = true;
2483 * show icons in list on main page and on menu tabs (true|false)?
2485 * @global boolean $cfg['MainPageIconic']
2487 $cfg['MainPageIconic'] = true;
2490 * show help button instead of Documentation text (true|false)?
2492 * @global boolean $cfg['ReplaceHelpImg']
2494 $cfg['ReplaceHelpImg'] = true;
2497 /*******************************************************************************
2498 * theme manager
2502 * using themes manager please set up here the path to 'themes' else leave empty
2504 * @global string $cfg['ThemePath']
2506 $cfg['ThemePath'] = './themes';
2509 * if you want to use selectable themes and if ThemesPath not empty
2510 * set it to true, else set it to false (default is false);
2512 * @global boolean $cfg['ThemeManager']
2514 $cfg['ThemeManager'] = true;
2517 * set up default theme, if ThemePath not empty you can set up here an valid
2518 * path to themes or 'original' for the original pma-theme
2520 * @global string $cfg['ThemeDefault']
2522 $cfg['ThemeDefault'] = 'pmahomme';
2525 * allow different theme for each configured server
2527 * @global boolean $cfg['ThemePerServer']
2529 $cfg['ThemePerServer'] = false;
2532 /*******************************************************************************
2537 * Default query for table
2539 * @global string $cfg['DefaultQueryTable']
2541 $cfg['DefaultQueryTable'] = 'SELECT * FROM @TABLE@ WHERE 1';
2544 * Default query for database
2546 * @global string $cfg['DefaultQueryDatabase']
2548 $cfg['DefaultQueryDatabase'] = '';
2551 /*******************************************************************************
2552 * SQL Query box settings
2553 * These are the links display in all of the SQL Query boxes
2555 * @global array $cfg['SQLQuery']
2557 $cfg['SQLQuery'] = array();
2560 * Edit link to change a query
2562 * @global boolean $cfg['SQLQuery']['Edit']
2564 $cfg['SQLQuery']['Edit'] = true;
2567 * EXPLAIN on SELECT queries
2569 * @global boolean $cfg['SQLQuery']['Explain']
2571 $cfg['SQLQuery']['Explain'] = true;
2574 * Wrap a query in PHP
2576 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2578 $cfg['SQLQuery']['ShowAsPHP'] = true;
2581 * Validate a query (see $cfg['SQLValidator'] as well)
2583 * @global boolean $cfg['SQLQuery']['Validate']
2585 $cfg['SQLQuery']['Validate'] = false;
2588 * Refresh the results page
2590 * @global boolean $cfg['SQLQuery']['Refresh']
2592 $cfg['SQLQuery']['Refresh'] = true;
2595 /*******************************************************************************
2596 * Web server upload/save/import directories
2600 * Directory for uploaded files that can be executed by phpMyAdmin.
2601 * For example './upload'. Leave empty for no upload directory support.
2602 * Use %u for username inclusion.
2604 * @global string $cfg['UploadDir']
2606 $cfg['UploadDir'] = '';
2609 * Directory where phpMyAdmin can save exported data on server.
2610 * For example './save'. Leave empty for no save directory support.
2611 * Use %u for username inclusion.
2613 * @global string $cfg['SaveDir']
2615 $cfg['SaveDir'] = '';
2618 * Directory where phpMyAdmin can save temporary files.
2619 * This is needed for MS Excel export, see documentation how to enable that.
2621 * @global string $cfg['TempDir']
2623 $cfg['TempDir'] = '';
2627 * Misc. settings
2631 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2632 * which is the only safe way to determine GD version.
2634 * @global string $cfg['GD2Available']
2636 $cfg['GD2Available'] = 'auto';
2639 * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
2641 * @global array $cfg['TrustedProxies']
2643 $cfg['TrustedProxies'] = array();
2646 * We normally check the permissions on the configuration file to ensure
2647 * it's not world writable. However, phpMyAdmin could be installed on
2648 * a NTFS filesystem mounted on a non-Windows server, in which case the
2649 * permissions seems wrong but in fact cannot be detected. In this case
2650 * a sysadmin would set the following to false.
2652 $cfg['CheckConfigurationPermissions'] = true;
2655 * Limit for length of URL in links. When length would be above this limit, it
2656 * is replaced by form with button.
2657 * This is required as some web servers (IIS) have problems with long URLs.
2658 * The recommended limit is 2000
2659 * (see http://www.boutell.com/newfaq/misc/urllength.html) but we put
2660 * 1000 to accommodate Suhosin, see bug #3358750.
2662 $cfg['LinkLengthLimit'] = 1000;
2665 * Disable the table maintenance mass operations, like optimizing or
2666 * repairing the selected tables of a database. An accidental execution
2667 * of such a maintenance task can enormously slow down a bigger database.
2669 $cfg['DisableMultiTableMaintenance'] = false;
2671 /*******************************************************************************
2672 * SQL Parser Settings
2674 * @global array $cfg['SQP']
2676 $cfg['SQP'] = array();
2679 * Pretty-printing style to use on queries (html, text, none)
2681 * @global string $cfg['SQP']['fmtType']
2683 $cfg['SQP']['fmtType'] = 'html';
2686 * Amount to indent each level (floats are valid)
2688 * @global integer $cfg['SQP']['fmtInd']
2690 $cfg['SQP']['fmtInd'] = '1';
2693 * Units for indenting each level (CSS Types - {em, px, pt})
2695 * @global string $cfg['SQP']['fmtIndUnit']
2697 $cfg['SQP']['fmtIndUnit'] = 'em';
2700 /*******************************************************************************
2701 * If you wish to use the SQL Validator service, you should be aware of the
2702 * following:
2703 * All SQL statements are stored anonymously for statistical purposes.
2704 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
2705 * All rights reserved.
2707 * @global array $cfg['SQLValidator']
2709 $cfg['SQLValidator'] = array();
2712 * Make the SQL Validator available
2714 * @global boolean $cfg['SQLValidator']['use']
2716 $cfg['SQLValidator']['use'] = false;
2719 * If you have a custom username, specify it here (defaults to anonymous)
2721 * @global string $cfg['SQLValidator']['username']
2723 $cfg['SQLValidator']['username'] = '';
2726 * Password for username
2728 * @global string $cfg['SQLValidator']['password']
2730 $cfg['SQLValidator']['password'] = '';
2733 /*******************************************************************************
2734 * Developers ONLY!
2736 * @global array $cfg['DBG']
2738 $cfg['DBG'] = array();
2741 * Output executed queries and their execution times
2743 * @global boolean $cfg['DBG']['sql']
2745 $cfg['DBG']['sql'] = false;
2748 /*******************************************************************************
2749 * MySQL settings
2753 * Column types;
2754 * VARCHAR, TINYINT, TEXT and DATE are listed first, based on estimated popularity
2756 * This variable is filled in data_*.inc.php
2758 * @global array $cfg['ColumnTypes']
2760 $cfg['ColumnTypes'] = array();
2763 * Attributes
2765 * This variable is filled in data_*.inc.php
2767 * @global array $cfg['AttributeTypes']
2769 $cfg['AttributeTypes'] = array();
2772 if ($cfg['ShowFunctionFields']) {
2774 * Available functions
2776 * This variable is filled in data_*.inc.php
2778 * @global array $cfg['Functions']
2780 $cfg['Functions'] = array();
2783 * Which column types will be mapped to which Group?
2785 * This variable is filled in data_*.inc.php
2787 * @global array $cfg['RestrictColumnTypes']
2789 $cfg['RestrictColumnTypes'] = array();
2792 * Map above defined groups to any function
2794 * This variable is filled in data_*.inc.php
2796 * @global array $cfg['RestrictFunctions']
2798 $cfg['RestrictFunctions'] = array();
2801 * Default functions for above defined groups
2803 * @global array $cfg['DefaultFunctions']
2805 $cfg['DefaultFunctions'] = array(
2806 'FUNC_CHAR' => '',
2807 'FUNC_DATE' => '',
2808 'FUNC_NUMBER' => '',
2809 'first_timestamp' => 'NOW',
2810 'pk_char36' => 'UUID',
2812 } // end if
2815 * Search operators
2817 * @global array $cfg['NumOperators']
2819 $cfg['NumOperators'] = array(
2820 '=',
2821 '>',
2822 '>=',
2823 '<',
2824 '<=',
2825 '!=',
2826 'LIKE',
2827 'NOT LIKE',
2828 'IN (...)',
2829 'NOT IN (...)',
2830 'BETWEEN',
2831 'NOT BETWEEN',
2835 * Search operators
2837 * @global array $cfg['TextOperators']
2839 $cfg['TextOperators'] = array(
2840 'LIKE',
2841 'LIKE %...%',
2842 'NOT LIKE',
2843 '=',
2844 '!=',
2845 'REGEXP',
2846 'REGEXP ^...$',
2847 'NOT REGEXP',
2848 "= ''",
2849 "!= ''",
2850 'IN (...)',
2851 'NOT IN (...)',
2852 'BETWEEN',
2853 'NOT BETWEEN',
2857 * Search operators
2859 * @global array $cfg['EnumOperators']
2861 $cfg['EnumOperators'] = array(
2862 '=',
2863 '!=',
2867 * Search operators
2869 * @global array $cfg['SetOperators']
2871 $cfg['SetOperators'] = array(
2872 'IN',
2873 'NOT IN',
2877 * Search operators
2879 * @global array $cfg['NullOperators']
2881 $cfg['NullOperators'] = array(
2882 'IS NULL',
2883 'IS NOT NULL',
2887 * Search operators
2889 * @global array $cfg['UnaryOperators']
2891 $cfg['UnaryOperators'] = array(
2892 'IS NULL' => 1,
2893 'IS NOT NULL' => 1,
2894 "= ''" => 1,
2895 "!= ''" => 1
2899 * Max rows retreived for zoom search
2901 $cfg['maxRowPlotLimit'] = 500;