This should be checked in common, not in dbi library
[phpmyadmin.git] / libraries / config.default.php
blobedf0264361708fd4ded20eb70c65aee66ee670c8
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 (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 * 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 * set to false if you know that your pma_* tables are up to date.
382 * This prevents compatibility checks and thereby increases performance.
384 * @global boolean $cfg['Servers'][$i]['verbose_check']
386 $cfg['Servers'][$i]['verbose_check'] = true;
389 * whether to allow root login
391 * @global boolean $cfg['Servers'][$i]['AllowRoot']
393 $cfg['Servers'][$i]['AllowRoot'] = true;
396 * whether to allow login of any user without a password
398 * @global boolean $cfg['Servers'][$i]['AllowNoPassword']
400 $cfg['Servers'][$i]['AllowNoPassword'] = false;
403 * Host authentication order, leave blank to not use
405 * @global string $cfg['Servers'][$i]['AllowDeny']['order']
407 $cfg['Servers'][$i]['AllowDeny']['order'] = '';
410 * Host authentication rules, leave blank for defaults
412 * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
414 $cfg['Servers'][$i]['AllowDeny']['rules'] = array();
417 * Disable use of INFORMATION_SCHEMA
419 * @see http://sf.net/support/tracker.php?aid=1849494
420 * @see http://bugs.mysql.com/19588
421 * @global boolean $cfg['Servers'][$i]['DisableIS']
423 $cfg['Servers'][$i]['DisableIS'] = true;
426 * SQL command to fetch available databases
428 * by default most user will be fine with SHOW DATABASES,
429 * for servers with a huge amount of databases it is possible to
430 * define a command which executes faster but with less information
432 * especially when accessing database servers from ISPs changing this command
433 * can result in a great speed improvement
435 * false will disable fetching databases from the server, only databases in
436 * $cfg['Servers'][$i]['only_db'] will be displayed
438 * #user# will be replaced by current user
440 * examples:
441 * 'SHOW DATABASES'
442 * "SHOW DATABASES LIKE '#user#\_%'"
443 * 'SELECT DISTINCT TABLE_SCHEMA FROM information_schema.SCHEMA_PRIVILEGES'
444 * 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA'
445 * false
447 * @global array $cfg['Servers'][$i]['ShowDatabasesCommand']
449 $cfg['Servers'][$i]['ShowDatabasesCommand'] = 'SHOW DATABASES';
452 * Whether to count tables when showing database list
454 * @global array $cfg['Servers'][$i]['CountTables']
456 $cfg['Servers'][$i]['CountTables'] = false;
459 * Whether the tracking mechanism creates versions for tables and views automatically.
461 * @global bool $cfg['Servers'][$i]['tracking_version_auto_create']
464 $cfg['Servers'][$i]['tracking_version_auto_create'] = false;
467 * Defines the list of statements the auto-creation uses for new versions.
469 * @global string $cfg['Servers'][$i]['tracking_default_statements']
472 $cfg['Servers'][$i]['tracking_default_statements'] = 'CREATE TABLE,ALTER TABLE,DROP TABLE,RENAME TABLE,' .
473 'CREATE INDEX,DROP INDEX,' .
474 'INSERT,UPDATE,DELETE,TRUNCATE,REPLACE,' .
475 'CREATE VIEW,ALTER VIEW,DROP VIEW,' .
476 'CREATE DATABASE,ALTER DATABASE,DROP DATABASE';
479 * Whether a DROP VIEW IF EXISTS statement will be added as first line to the log when creating a view.
481 * @global bool $cfg['Servers'][$i]['tracking_add_drop_view']
484 $cfg['Servers'][$i]['tracking_add_drop_view'] = true;
487 * Whether a DROP TABLE IF EXISTS statement will be added as first line to the log when creating a table.
489 * @global bool $cfg['Servers'][$i]['tracking_add_drop_table']
492 $cfg['Servers'][$i]['tracking_add_drop_table'] = true;
495 * Whether a DROP DATABASE IF EXISTS statement will be added as first line to the log when creating a database.
497 * @global bool $cfg['Servers'][$i]['tracking_add_drop_database']
500 $cfg['Servers'][$i]['tracking_add_drop_database'] = true;
503 * Default server (0 = no default server)
505 * If you have more than one server configured, you can set $cfg['ServerDefault']
506 * to any one of them to auto-connect to that server when phpMyAdmin is started,
507 * or set it to 0 to be given a list of servers without logging in
508 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
509 * set to that server.
511 * @global integer $cfg['ServerDefault']
513 $cfg['ServerDefault'] = 1;
516 * Other core phpMyAdmin settings
519 * whether Ajax behavior is active
521 * @global boolean $cfg['AjaxEnable']
523 $cfg['AjaxEnable'] = true;
526 * whether version check is active
528 * @global boolean $cfg['VersionCheck']
530 $cfg['VersionCheck'] = VERSION_CHECK_DEFAULT;
533 * maximum number of db's displayed in left frame and database list
535 * @global integer $cfg['MaxDbList']
537 $cfg['MaxDbList'] = 100;
540 * maximum number of tables displayed in table list
542 * @global integer $cfg['MaxTableList']
544 $cfg['MaxTableList'] = 250;
547 * maximum number of characters when a SQL query is displayed
549 * @global integer $cfg['MaxCharactersInDisplayedSQL']
551 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
554 * use GZIP output buffering if possible (true|false|'auto')
556 * @global string $cfg['OBGzip']
558 $cfg['OBGzip'] = 'auto';
561 * use persistent connections to MySQL database
563 * @global boolean $cfg['PersistentConnections']
565 $cfg['PersistentConnections'] = false;
568 * whether to force using HTTPS
570 * @global boolean $cfg['ForceSSL']
572 $cfg['ForceSSL'] = false;
575 * maximum execution time in seconds (0 for no limit)
577 * @global integer $cfg['ExecTimeLimit']
579 $cfg['ExecTimeLimit'] = 300;
582 * Path for storing session data (session_save_path PHP parameter).
584 * @global integer $cfg['SessionSavePath']
586 $cfg['SessionSavePath'] = '';
589 * maximum allocated bytes ('0' for no limit)
590 * this is a string because '16M' is a valid value; we must put here
591 * a string as the default value so that /setup accepts strings
593 * @global string $cfg['MemoryLimit']
595 $cfg['MemoryLimit'] = '0';
598 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
600 * @global boolean $cfg['SkipLockedTables']
602 $cfg['SkipLockedTables'] = false;
605 * show SQL queries as run
607 * @global boolean $cfg['ShowSQL']
609 $cfg['ShowSQL'] = true;
612 * show a 'Drop database' link to normal users
614 * @global boolean $cfg['AllowUserDropDatabase']
616 $cfg['AllowUserDropDatabase'] = false;
619 * confirm some commands that can result in loss of data
620 * (see "need_confirm" in the parser)
622 * @global boolean $cfg['Confirm']
624 $cfg['Confirm'] = true;
627 * recall previous login in cookie authentication mode or not
629 * @global boolean $cfg['LoginCookieRecall']
631 $cfg['LoginCookieRecall'] = true;
634 * validity of cookie login (in seconds; 1440 matches php.ini's
635 * session.gc_maxlifetime)
637 * @global integer $cfg['LoginCookieValidity']
639 $cfg['LoginCookieValidity'] = 1440;
642 * how long login cookie should be stored (in seconds)
644 * @global integer $cfg['LoginCookieStore']
646 $cfg['LoginCookieStore'] = 0;
649 * whether to delete all login cookies on logout
651 * @global boolean $cfg['LoginCookieDeleteAll']
653 $cfg['LoginCookieDeleteAll'] = true;
656 * whether to enable the "database search" feature or not
658 * @global boolean $cfg['UseDbSearch']
660 $cfg['UseDbSearch'] = true;
663 * if set to true, PMA continues computing multiple-statement queries
664 * even if one of the queries failed
666 * @global boolean $cfg['IgnoreMultiSubmitErrors']
668 $cfg['IgnoreMultiSubmitErrors'] = false;
671 * if set to true, PMA will show the affected rows of EACH statement on
672 * multiple-statement queries. See the libraries/import.php file for
673 * hard coded defaults on how many queries a statement may contain!
675 * @global boolean $cfg['VerboseMultiSubmit']
677 $cfg['VerboseMultiSubmit'] = true;
680 * allow login to any user entered server in cookie based authentication
682 * @global boolean $cfg['AllowArbitraryServer']
684 $cfg['AllowArbitraryServer'] = false;
687 /*******************************************************************************
688 * Error handler configuration
690 * this configures phpMyAdmin's own error handler, it is used to avoid information
691 * disclosure, gather errors for logging, reporting and displaying
693 * @global array $cfg['Error_Handler']
695 $cfg['Error_Handler'] = array();
698 * whether to display errors or not
700 * this does not affect errors of type E_USER_*
702 * @global boolean $cfg['Error_Handler']['display']
704 $cfg['Error_Handler']['display'] = false;
707 * (NOT IMPLEMENTED YET)
708 * where to log errors, false or empty to disable
710 * <code>
711 * // EXAMPLE log to std PHP error log
712 * $cfg['Error_Handler']['log'] = array(0);
713 * // EXAMPLE mail errors
714 * $cfg['Error_Handler']['log'] = array(1, 'admin@example.org');
715 * // EXAMPLE append to specific file
716 * $cfg['Error_Handler']['log'] = array(3, '/var/log/phpmyadmin_error.log');
717 * </code>
719 * @see http://php.net/error_log
720 * @global string $cfg['Error_Handler']['log']
722 //$cfg['Error_Handler']['log'] = false;
725 * gather all errors in session to be displayed on a error reporting page
726 * for viewing and/or sending to phpMyAdmin developer team
728 * @global boolean $cfg['Error_Handler']['gather']
730 $cfg['Error_Handler']['gather'] = false;
733 /*******************************************************************************
734 * Left frame setup
738 * use a select-based menu and display only the current tables in the left frame.
740 * @global boolean $cfg['LeftFrameLight']
742 $cfg['LeftFrameLight'] = true;
745 * turn the select-based light menu into a tree
747 * @global boolean $cfg['LeftFrameDBTree']
749 $cfg['LeftFrameDBTree'] = true;
752 * the separator to sub-tree the select-based light menu tree
754 * @global string $cfg['LeftFrameDBSeparator']
756 $cfg['LeftFrameDBSeparator'] = '_';
759 * Which string will be used to generate table prefixes
760 * to split/nest tables into multiple categories
762 * @global string $cfg['LeftFrameTableSeparator']
764 $cfg['LeftFrameTableSeparator']= '__';
767 * How many sublevels should be displayed when splitting up tables by the above Separator
769 * @global integer $cfg['LeftFrameTableLevel']
771 $cfg['LeftFrameTableLevel'] = 1;
774 * display table comment as tooltip in left frame
776 * @global boolean $cfg['ShowTooltip']
778 $cfg['ShowTooltip'] = true;
781 * if ShowToolTip is enabled, this defines that table/db comments
783 * @global boolean $cfg['ShowTooltipAliasDB']
785 $cfg['ShowTooltipAliasDB'] = false;
788 * are shown (in the left menu and db_structure) instead of table/db names.
789 * Setting ShowTooltipAliasTB to 'nested' will only use the Aliases for nested
790 * descriptors, not the table itself.
792 * @global boolean $cfg['ShowTooltipAliasTB']
794 $cfg['ShowTooltipAliasTB'] = false;
797 * display logo at top of left frame
799 * @global boolean $cfg['LeftDisplayLogo']
801 $cfg['LeftDisplayLogo'] = true;
804 * where should logo link point to (can also contain an external URL)
806 * @global string $cfg['LeftLogoLink']
808 $cfg['LeftLogoLink'] = 'main.php';
811 * whether to open the linked page in the main window ('main') or
812 * in a new window ('new')
814 * @global string $cfg['LeftLogoLinkWindow']
816 $cfg['LeftLogoLinkWindow'] = 'main';
819 * number of recently used tables displayed in the navigation frame
821 * @global integer $cfg['LeftRecentTable']
823 $cfg['LeftRecentTable'] = 10;
826 * display a JavaScript table filter in the left frame
827 * when more then x tables are present
829 * @global boolean $cfg['LeftDisplayTableFilterMinimum']
831 $cfg['LeftDisplayTableFilterMinimum'] = 30;
834 * display server choice at top of left frame
836 * @global boolean $cfg['LeftDisplayServers']
838 $cfg['LeftDisplayServers'] = false;
841 * server choice as links
843 * @global boolean $cfg['DisplayServersList']
845 $cfg['DisplayServersList'] = false;
848 * database choice in light as links
850 * @global boolean $cfg['DisplayDatabasesList']
852 $cfg['DisplayDatabasesList'] = 'auto';
855 * target of the navigation panel quick access icon
857 * Possible values:
858 * 'tbl_structure.php' = fields list
859 * 'tbl_sql.php' = SQL form
860 * 'tbl_select.php' = search page
861 * 'tbl_change.php' = insert row page
862 * 'sql.php' = browse page
864 * @global string $cfg['LeftDefaultTabTable']
866 $cfg['LeftDefaultTabTable'] = 'tbl_structure.php';
869 /*******************************************************************************
870 * In the main frame, at startup...
874 * allow to display statistics and space usage in the pages about database
875 * details and table properties
877 * @global boolean $cfg['ShowStats']
879 $cfg['ShowStats'] = true;
882 * show PHP info link
884 * @global boolean $cfg['ShowPhpInfo']
886 $cfg['ShowPhpInfo'] = false;
889 * show MySQL server and web server information
891 * @global boolean $cfg['ShowServerInfo']
893 $cfg['ShowServerInfo'] = true;
896 * show change password link
898 * @global boolean $cfg['ShowChgPassword']
900 $cfg['ShowChgPassword'] = true;
903 * show create database form
905 * @global boolean $cfg['ShowCreateDb']
907 $cfg['ShowCreateDb'] = true;
910 * suggest a new DB name if possible (false = keep empty)
912 * @global boolean $cfg['SuggestDBName']
914 $cfg['SuggestDBName'] = true;
917 /*******************************************************************************
918 * In browse mode...
922 * Use icons instead of text for the navigation bar buttons
923 * and on right panel top menu (server db table) (true|false|'both')
925 * @global string $cfg['NavigationBarIconic']
927 $cfg['NavigationBarIconic'] = true;
930 * Defines whether a user should be displayed a "show all (records)"
931 * button in browse mode or not.
933 * @global boolean $cfg['ShowAll']
935 $cfg['ShowAll'] = false;
938 * Number of rows displayed when browsing a result set. If the result
939 * set contains more rows, "Previous" and "Next".
941 * @global integer $cfg['MaxRows']
943 $cfg['MaxRows'] = 30;
946 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
947 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
948 * ascending order else-)
950 * @global string $cfg['Order']
952 $cfg['Order'] = 'SMART';
955 * default for 'Show binary contents as HEX'
957 * @global string $cfg['DisplayBinaryAsHex']
959 $cfg['DisplayBinaryAsHex'] = true;
962 /*******************************************************************************
963 * In edit mode...
967 * disallow editing of binary fields
968 * valid values are:
969 * false allow editing
970 * 'blob' allow editing except for BLOB fields
971 * 'all' disallow editing
973 * @global string $cfg['ProtectBinary']
975 $cfg['ProtectBinary'] = 'blob';
978 * Display the function fields in edit/insert mode
980 * @global boolean $cfg['ShowFunctionFields']
982 $cfg['ShowFunctionFields'] = true;
985 * Display the type fields in edit/insert mode
987 * @global boolean $cfg['ShowFieldTypesInDataEditView']
989 $cfg['ShowFieldTypesInDataEditView'] = true;
992 * Which editor should be used for CHAR/VARCHAR fields:
993 * input - allows limiting of input length
994 * textarea - allows newlines in fields
996 * @global string $cfg['CharEditing']
998 $cfg['CharEditing'] = 'input';
1001 * How many rows can be inserted at one time
1003 * @global integer $cfg['InsertRows']
1005 $cfg['InsertRows'] = 2;
1008 * Sort order for items in a foreign-key drop-down list.
1009 * 'content' is the referenced data, 'id' is the key value.
1011 * @global array $cfg['ForeignKeyDropdownOrder']
1013 $cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
1016 * A drop-down list will be used if fewer items are present
1018 * @global integer $cfg['ForeignKeyMaxLimit']
1020 $cfg['ForeignKeyMaxLimit'] = 100;
1023 /*******************************************************************************
1024 * For the export features...
1028 * Allow for the use of zip compression (requires zip support to be enabled)
1030 * @global boolean $cfg['ZipDump']
1032 $cfg['ZipDump'] = true;
1035 * Allow for the use of gzip compression (requires zlib)
1037 * @global boolean $cfg['GZipDump']
1039 $cfg['GZipDump'] = true;
1042 * Allow for the use of bzip2 compression (requires bz2 extension)
1044 * @global boolean $cfg['BZipDump']
1046 $cfg['BZipDump'] = true;
1049 * Will compress gzip/bzip2 exports on the fly without the need for much memory.
1050 * If you encounter problems with created gzip/bzip2 files disable this feature.
1052 * @global boolean $cfg['CompressOnFly']
1054 $cfg['CompressOnFly'] = true;
1057 /*******************************************************************************
1058 * Tabs display settings
1062 * Use graphically less intense menu tabs
1064 * @global boolean $cfg['LightTabs']
1066 $cfg['LightTabs'] = false;
1069 * Use icons instead of text for the table display of a database (true|false|'both')
1071 * @global boolean $cfg['PropertiesIconic']
1073 $cfg['PropertiesIconic'] = 'both';
1076 * How many columns should be used for table display of a database?
1077 * (a value larger than 1 results in some information being hidden)
1079 * @global integer $cfg['PropertiesNumColumns']
1081 $cfg['PropertiesNumColumns'] = 1;
1084 * Possible values:
1085 * 'main.php' = the welcome page
1086 * (recommended for multiuser setups)
1087 * 'server_databases.php' = list of databases
1088 * 'server_status.php' = runtime information
1089 * 'server_variables.php' = MySQL server variables
1090 * 'server_privileges.php' = user management
1091 * 'server_processlist.php' = process list
1093 * @global string $cfg['DefaultTabServer']
1095 $cfg['DefaultTabServer'] = 'main.php';
1098 * Possible values:
1099 * 'db_structure.php' = tables list
1100 * 'db_sql.php' = SQL form
1101 * 'db_search.php' = search query
1102 * 'db_operations.php' = operations on database
1104 * @global string $cfg['DefaultTabDatabase']
1106 $cfg['DefaultTabDatabase'] = 'db_structure.php';
1109 * Possible values:
1110 * 'tbl_structure.php' = fields list
1111 * 'tbl_sql.php' = SQL form
1112 * 'tbl_select.php' = search page
1113 * 'tbl_change.php' = insert row page
1114 * 'sql.php' = browse page
1116 * @global string $cfg['DefaultTabTable']
1118 $cfg['DefaultTabTable'] = 'sql.php';
1121 /*******************************************************************************
1122 * Export defaults
1124 $cfg['Export'] = array();
1127 * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xls/xml/yaml
1129 * @global string $cfg['Export']['format']
1131 $cfg['Export']['format'] = 'sql';
1134 * quick/custom/custom-no-form
1136 * @global string $cfg['Export']['format']
1138 $cfg['Export']['method'] = 'quick';
1141 * none/zip/gzip/bzip2
1143 * @global string $cfg['Export']['compression']
1145 $cfg['Export']['compression'] = 'none';
1150 * @global boolean $cfg['Export']['asfile']
1152 $cfg['Export']['asfile'] = true;
1157 * @global string $cfg['Export']['charset']
1159 $cfg['Export']['charset'] = '';
1164 * @global boolean $cfg['Export']['onserver']
1166 $cfg['Export']['onserver'] = false;
1171 * @global boolean $cfg['Export']['onserver_overwrite']
1173 $cfg['Export']['onserver_overwrite'] = false;
1178 * @global boolean $cfg['Export']['quick_export_onserver']
1180 $cfg['Export']['quick_export_onserver'] = false;
1185 * @global boolean $cfg['Export']['quick_export_onserver_overwrite']
1187 $cfg['Export']['quick_export_onserver_overwrite'] = false;
1192 * @global boolean $cfg['Export']['remember_file_template']
1194 $cfg['Export']['remember_file_template'] = true;
1199 * @global string $cfg['Export']['file_template_table']
1201 $cfg['Export']['file_template_table'] = '@TABLE@';
1206 * @global string $cfg['Export']['file_template_database']
1208 $cfg['Export']['file_template_database'] = '@DATABASE@';
1213 * @global string $cfg['Export']['file_template_server']
1215 $cfg['Export']['file_template_server'] = '@SERVER@';
1220 * @global string $cfg['Export']['codegen_structure_or_data']
1222 $cfg['Export']['codegen_structure_or_data'] = 'data';
1227 * @global $cfg['Export']['codegen_format']
1229 $cfg['Export']['codegen_format'] = 0;
1234 * @global boolean $cfg['Export']['ods_columns']
1236 $cfg['Export']['ods_columns'] = false;
1241 * @global string $cfg['Export']['ods_null']
1243 $cfg['Export']['ods_null'] = 'NULL';
1248 * @global string $cfg['Export']['odt_structure_or_data']
1250 $cfg['Export']['odt_structure_or_data'] = 'structure_and_data';
1255 * @global boolean $cfg['Export']['odt_columns']
1257 $cfg['Export']['odt_columns'] = true;
1262 * @global boolean $cfg['Export']['odt_relation']
1264 $cfg['Export']['odt_relation'] = true;
1269 * @global boolean $cfg['Export']['odt_comments']
1271 $cfg['Export']['odt_comments'] = true;
1276 * @global boolean $cfg['Export']['odt_mime']
1278 $cfg['Export']['odt_mime'] = true;
1283 * @global string $cfg['Export']['odt_null']
1285 $cfg['Export']['odt_null'] = 'NULL';
1290 * @global boolean $cfg['Export']['htmlword_structure_or_data']
1292 $cfg['Export']['htmlword_structure_or_data'] = 'structure_and_data';
1297 * @global boolean $cfg['Export']['htmlword_columns']
1299 $cfg['Export']['htmlword_columns'] = false;
1304 * @global string $cfg['Export']['htmlword_null']
1306 $cfg['Export']['htmlword_null'] = 'NULL';
1311 * @global string $cfg['Export']['texytext_structure_or_data']
1313 $cfg['Export']['texytext_structure_or_data'] = 'structure_and_data';
1318 * @global boolean $cfg['Export']['texytext_columns']
1320 $cfg['Export']['texytext_columns'] = false;
1325 * @global string $cfg['Export']['texytext_null']
1327 $cfg['Export']['texytext_null'] = 'NULL';
1332 * @global boolean $cfg['Export']['xls_columns']
1334 $cfg['Export']['xls_columns'] = false;
1339 * @global string $cfg['Export']['xls_structure_or_data']
1341 $cfg['Export']['xls_structure_or_data'] = 'data';
1346 * @global string $cfg['Export']['xls_null']
1348 $cfg['Export']['xls_null'] = 'NULL';
1353 * @global boolean $cfg['Export']['xlsx_columns']
1355 $cfg['Export']['xlsx_columns'] = false;
1360 * @global string $cfg['Export']['xlsx_structure_or_data']
1362 $cfg['Export']['xlsx_structure_or_data'] = 'data';
1367 * @global string $cfg['Export']['xlsx_null']
1369 $cfg['Export']['xlsx_null'] = 'NULL';
1374 * @global boolean $cfg['Export']['csv_columns']
1376 $cfg['Export']['csv_columns'] = false;
1381 * @global string $cfg['Export']['csv_structure_or_data']
1383 $cfg['Export']['csv_structure_or_data'] = 'data';
1388 * @global string $cfg['Export']['csv_null']
1390 $cfg['Export']['csv_null'] = 'NULL';
1395 * @global string $cfg['Export']['csv_separator']
1397 $cfg['Export']['csv_separator'] = ',';
1402 * @global string $cfg['Export']['csv_enclosed']
1404 $cfg['Export']['csv_enclosed'] = '"';
1409 * @global string $cfg['Export']['csv_escaped']
1411 $cfg['Export']['csv_escaped'] = '\\';
1416 * @global string $cfg['Export']['csv_terminated']
1418 $cfg['Export']['csv_terminated'] = 'AUTO';
1423 * @global string $cfg['Export']['csv_removeCRLF']
1425 $cfg['Export']['csv_removeCRLF'] = false;
1430 * @global boolean $cfg['Export']['excel_columns']
1432 $cfg['Export']['excel_columns'] = false;
1437 * @global string $cfg['Export']['excel_null']
1439 $cfg['Export']['excel_null'] = 'NULL';
1442 * win/mac
1444 * @global string $cfg['Export']['excel_edition']
1446 $cfg['Export']['excel_edition'] = 'win';
1451 * @global string $cfg['Export']['excel_removeCRLF']
1453 $cfg['Export']['excel_removeCRLF'] = false;
1458 * @global string $cfg['Export']['excel_structure_or_data']
1460 $cfg['Export']['excel_structure_or_data'] = 'data';
1465 * @global string $cfg['Export']['latex_structure_or_data']
1467 $cfg['Export']['latex_structure_or_data'] = 'structure_and_data';
1472 * @global boolean $cfg['Export']['latex_columns']
1474 $cfg['Export']['latex_columns'] = true;
1479 * @global boolean $cfg['Export']['latex_relation']
1481 $cfg['Export']['latex_relation'] = true;
1486 * @global boolean $cfg['Export']['latex_comments']
1488 $cfg['Export']['latex_comments'] = true;
1493 * @global boolean $cfg['Export']['latex_mime']
1495 $cfg['Export']['latex_mime'] = true;
1500 * @global string $cfg['Export']['latex_null']
1502 $cfg['Export']['latex_null'] = '\textit{NULL}';
1507 * @global boolean $cfg['Export']['latex_caption']
1509 $cfg['Export']['latex_caption'] = true;
1514 * @global string $cfg['Export']['latex_structure_caption']
1516 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1521 * @global string $cfg['Export']['latex_structure_continued_caption']
1523 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
1528 * @global string $cfg['Export']['latex_data_caption']
1530 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1535 * @global string $cfg['Export']['latex_data_continued_caption']
1537 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1542 * @global string $cfg['Export']['latex_data_label']
1544 $cfg['Export']['latex_data_label'] = 'tab:@TABLE@-data';
1549 * @global string $cfg['Export']['latex_structure_label']
1551 $cfg['Export']['latex_structure_label'] = 'tab:@TABLE@-structure';
1556 * @global string $cfg['Export']['mediawiki_structure_or_data']
1558 $cfg['Export']['mediawiki_structure_or_data'] = 'data';
1563 * @global string $cfg['Export']['ods_structure_or_data']
1565 $cfg['Export']['ods_structure_or_data'] = 'data';
1570 * @global string $cfg['Export']['pdf_structure_or_data']
1572 $cfg['Export']['pdf_structure_or_data'] = 'data';
1577 * @global string $cfg['Export']['php_array_structure_or_data']
1579 $cfg['Export']['php_array_structure_or_data'] = 'data';
1584 * @global string $cfg['Export']['json_structure_or_data']
1586 $cfg['Export']['json_structure_or_data'] = 'data';
1591 * @global string $cfg['Export']['sql_structure_or_data']
1593 $cfg['Export']['sql_structure_or_data'] = 'structure_and_data';
1598 * @global string $cfg['Export']['sql_compatibility']
1600 $cfg['Export']['sql_compatibility'] = 'NONE';
1603 * Whether to include comments in SQL export.
1605 * @global string $cfg['Export']['sql_include_comments']
1607 $cfg['Export']['sql_include_comments'] = true;
1612 * @global boolean $cfg['Export']['sql_disable_fk']
1614 $cfg['Export']['sql_disable_fk'] = false;
1619 * @global boolean $cfg['Export']['sql_use_transaction']
1621 $cfg['Export']['sql_use_transaction'] = false;
1626 * @global boolean $cfg['Export']['sql_drop_database']
1628 $cfg['Export']['sql_drop_database'] = false;
1633 * @global boolean $cfg['Export']['sql_drop_table']
1635 $cfg['Export']['sql_drop_table'] = false;
1640 * true by default for correct behavior when dealing with exporting
1641 * of VIEWs and the stand-in table
1642 * @global boolean $cfg['Export']['sql_if_not_exists']
1644 $cfg['Export']['sql_if_not_exists'] = true;
1649 * @global boolean $cfg['Export']['sql_procedure_function']
1651 $cfg['Export']['sql_procedure_function'] = true;
1656 * @global boolean $cfg['Export']['sql_auto_increment']
1658 $cfg['Export']['sql_auto_increment'] = true;
1663 * @global boolean $cfg['Export']['sql_backquotes']
1665 $cfg['Export']['sql_backquotes'] = true;
1670 * @global boolean $cfg['Export']['sql_dates']
1672 $cfg['Export']['sql_dates'] = false;
1677 * @global boolean $cfg['Export']['sql_relation']
1679 $cfg['Export']['sql_relation'] = false;
1684 * @global boolean $cfg['Export']['sql_delayed']
1686 $cfg['Export']['sql_delayed'] = false;
1691 * @global boolean $cfg['Export']['sql_ignore']
1693 $cfg['Export']['sql_ignore'] = false;
1696 * Export time in UTC.
1698 * @global boolean $cfg['Export']['sql_utc_time']
1700 $cfg['Export']['sql_utc_time'] = true;
1705 * @global boolean $cfg['Export']['sql_hex_for_blob']
1707 $cfg['Export']['sql_hex_for_blob'] = true;
1710 * insert/update/replace
1712 * @global string $cfg['Export']['sql_type']
1714 $cfg['Export']['sql_type'] = 'INSERT';
1719 * @global integer $cfg['Export']['sql_max_query_size']
1721 $cfg['Export']['sql_max_query_size'] = 50000;
1726 * @global boolean $cfg['Export']['sql_comments']
1728 $cfg['Export']['sql_comments'] = false;
1733 * @global boolean $cfg['Export']['sql_mime']
1735 $cfg['Export']['sql_mime'] = false;
1738 * \n is replaced by new line
1740 * @global string $cfg['Export']['sql_header_comment']
1742 $cfg['Export']['sql_header_comment'] = '';
1747 * @global boolean $cfg['Export']['sql_create_table_statements']
1749 $cfg['Export']['sql_create_table_statements'] = true;
1752 * Whether to use complete inserts, extended inserts, both, or neither
1754 * @global string $cfg['Export']['sql_insert_syntax']
1756 $cfg['Export']['sql_insert_syntax'] = 'both';
1761 * @global string $cfg['Export']['pdf_report_title']
1763 $cfg['Export']['pdf_report_title'] = '';
1768 *@global string $cfg['Export']['xml_structure_or_data']
1770 $cfg['Export']['xml_structure_or_data'] = 'data';
1773 * Export schema for each structure
1775 * @global string $cfg['Export']['xml_export_struc']
1777 $cfg['Export']['xml_export_struc'] = true;
1780 * Export functions
1782 * @global string $cfg['Export']['xml_export_functions']
1784 $cfg['Export']['xml_export_functions'] = true;
1787 * Export procedures
1789 * @global string $cfg['Export']['xml_export_procedures']
1791 $cfg['Export']['xml_export_procedures'] = true;
1794 * Export schema for each table
1796 * @global string $cfg['Export']['xml_export_tables']
1798 $cfg['Export']['xml_export_tables'] = true;
1801 * Export triggers
1803 * @global string $cfg['Export']['xml_export_triggers']
1805 $cfg['Export']['xml_export_triggers'] = true;
1808 * Export views
1810 * @global string $cfg['Export']['xml_export_views']
1812 $cfg['Export']['xml_export_views'] = true;
1815 * Export contents data
1817 * @global string $cfg['Export']['xml_export_contents']
1819 $cfg['Export']['xml_export_contents'] = true;
1824 * @global string $cfg['Export']['yaml_structure_or_data']
1826 $cfg['Export']['yaml_structure_or_data'] = 'data';
1829 /*******************************************************************************
1830 * Import defaults
1832 $cfg['Import'] = array();
1837 * @global string $cfg['Import']['format']
1839 $cfg['Import']['format'] = 'sql';
1842 * Default charset for import.
1844 * @global string $cfg['Import']['charset']
1846 $cfg['Import']['charset'] = '';
1851 * @global boolean $cfg['Import']['allow_interrupt']
1853 $cfg['Import']['allow_interrupt'] = true;
1858 * @global integer $cfg['Import']['skip_queries']
1860 $cfg['Import']['skip_queries'] = 0;
1865 * @global string $cfg['Import']['sql_compatibility']
1867 $cfg['Import']['sql_compatibility'] = 'NONE';
1872 * @global string $cfg['Import']['sql_no_auto_value_on_zero']
1874 $cfg['Import']['sql_no_auto_value_on_zero'] = true;
1879 * @global boolean $cfg['Import']['csv_replace']
1881 $cfg['Import']['csv_replace'] = false;
1886 * @global boolean $cfg['Import']['csv_ignore']
1888 $cfg['Import']['csv_ignore'] = false;
1893 * @global string $cfg['Import']['csv_terminated']
1895 $cfg['Import']['csv_terminated'] = ',';
1900 * @global string $cfg['Import']['csv_enclosed']
1902 $cfg['Import']['csv_enclosed'] = '"';
1907 * @global string $cfg['Import']['csv_escaped']
1909 $cfg['Import']['csv_escaped'] = '\\';
1914 * @global string $cfg['Import']['csv_new_line']
1916 $cfg['Import']['csv_new_line'] = 'auto';
1921 * @global string $cfg['Import']['csv_columns']
1923 $cfg['Import']['csv_columns'] = '';
1928 * @global string $cfg['Import']['csv_col_names']
1930 $cfg['Import']['csv_col_names'] = false;
1935 * @global boolean $cfg['Import']['ldi_replace']
1937 $cfg['Import']['ldi_replace'] = false;
1942 * @global boolean $cfg['Import']['ldi_ignore']
1944 $cfg['Import']['ldi_ignore'] = false;
1949 * @global string $cfg['Import']['ldi_terminated']
1951 $cfg['Import']['ldi_terminated'] = ';';
1956 * @global string $cfg['Import']['ldi_enclosed']
1958 $cfg['Import']['ldi_enclosed'] = '"';
1963 * @global string $cfg['Import']['ldi_escaped']
1965 $cfg['Import']['ldi_escaped'] = '\\';
1970 * @global string $cfg['Import']['ldi_new_line']
1972 $cfg['Import']['ldi_new_line'] = 'auto';
1977 * @global string $cfg['Import']['ldi_columns']
1979 $cfg['Import']['ldi_columns'] = '';
1982 * 'auto' for auto-detection, true or false for forcing
1984 * @global string $cfg['Import']['ldi_local_option']
1986 $cfg['Import']['ldi_local_option'] = 'auto';
1991 * @global string $cfg['Import']['ods_col_names']
1993 $cfg['Import']['ods_col_names'] = false;
1998 * @global string $cfg['Import']['ods_empty_rows']
2000 $cfg['Import']['ods_empty_rows'] = true;
2005 * @global string $cfg['Import']['ods_recognize_percentages']
2007 $cfg['Import']['ods_recognize_percentages'] = true;
2012 * @global string $cfg['Import']['ods_recognize_currency']
2014 $cfg['Import']['ods_recognize_currency'] = true;
2019 * @global string $cfg['Import']['xml_col_names']
2021 $cfg['Import']['xls_col_names'] = false;
2026 * @global string $cfg['Import']['xml_empty_rows']
2028 $cfg['Import']['xls_empty_rows'] = true;
2033 * @global string $cfg['Import']['xlsx_col_names']
2035 $cfg['Import']['xlsx_col_names'] = false;
2038 * Link to the official MySQL documentation.
2039 * Be sure to include no trailing slash on the path.
2040 * See http://dev.mysql.com/doc/ for more information
2041 * about MySQL manuals and their types.
2043 * @global string $cfg['MySQLManualBase']
2045 $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
2048 * Type of MySQL documentation:
2049 * viewable - "viewable online", current one used on MySQL website
2050 * searchable - "Searchable, with user comments"
2051 * chapters - "HTML, one page per chapter"
2052 * chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
2053 * big - "HTML, all on one page"
2054 * old - old style used in phpMyAdmin 2.3.0 and sooner
2055 * none - do not show documentation links
2057 * @global string $cfg['MySQLManualType']
2059 $cfg['MySQLManualType'] = 'viewable';
2062 /*******************************************************************************
2063 * PDF options
2069 * @global array $cfg['PDFPageSizes']
2071 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
2076 * @global string $cfg['PDFDefaultPageSize']
2078 $cfg['PDFDefaultPageSize'] = 'A4';
2081 /*******************************************************************************
2082 * Language and character set conversion settings
2086 * Default language to use, if not browser-defined or user-defined
2088 * @global string $cfg['DefaultLang']
2090 $cfg['DefaultLang'] = 'en';
2093 * Default connection collation
2095 * @global string $cfg['DefaultConnectionCollation']
2097 $cfg['DefaultConnectionCollation'] = 'utf8_general_ci';
2100 * Force: always use this language
2101 * $cfg['Lang'] = 'en';
2103 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
2104 * English only
2106 * @global string $cfg['FilterLanguages']
2108 $cfg['FilterLanguages'] = '';
2111 * You can select here which functions will be used for character set conversion.
2112 * Possible values are:
2113 * auto - automatically use available one (first is tested iconv, then
2114 * recode)
2115 * iconv - use iconv or libiconv functions
2116 * recode - use recode_string function
2117 * none - disable encoding conversion
2119 * @global string $cfg['RecodingEngine']
2121 $cfg['RecodingEngine'] = 'auto';
2124 * Specify some parameters for iconv used in character set conversion. See iconv
2125 * documentation for details:
2126 * http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
2128 * @global string $cfg['IconvExtraParams']
2130 $cfg['IconvExtraParams'] = '//TRANSLIT';
2133 * Available character sets for MySQL conversion. currently contains all which could
2134 * be found in lang/* files and few more.
2135 * Character sets will be shown in same order as here listed, so if you frequently
2136 * use some of these move them to the top.
2138 * @global array $cfg['AvailableCharsets']
2140 $cfg['AvailableCharsets'] = array(
2141 'iso-8859-1',
2142 'iso-8859-2',
2143 'iso-8859-3',
2144 'iso-8859-4',
2145 'iso-8859-5',
2146 'iso-8859-6',
2147 'iso-8859-7',
2148 'iso-8859-8',
2149 'iso-8859-9',
2150 'iso-8859-10',
2151 'iso-8859-11',
2152 'iso-8859-12',
2153 'iso-8859-13',
2154 'iso-8859-14',
2155 'iso-8859-15',
2156 'windows-1250',
2157 'windows-1251',
2158 'windows-1252',
2159 'windows-1256',
2160 'windows-1257',
2161 'koi8-r',
2162 'big5',
2163 'gb2312',
2164 'utf-16',
2165 'utf-8',
2166 'utf-7',
2167 'x-user-defined',
2168 'euc-jp',
2169 'ks_c_5601-1987',
2170 'tis-620',
2171 'SHIFT_JIS'
2175 /*******************************************************************************
2176 * Customization & design
2178 * The graphical settings are now located in themes/theme-name/layout.inc.php
2182 * enable the left panel pointer
2183 * (used when LeftFrameLight is false)
2184 * see also LeftPointerColor
2185 * in layout.inc.php
2187 * @global boolean $cfg['LeftPointerEnable']
2189 $cfg['LeftPointerEnable'] = true;
2192 * enable the browse pointer
2193 * see also BrowsePointerColor
2194 * in layout.inc.php
2196 * @global boolean $cfg['BrowsePointerEnable']
2198 $cfg['BrowsePointerEnable'] = true;
2201 * enable the browse marker
2202 * see also BrowseMarkerColor
2203 * in layout.inc.php
2205 * @global boolean $cfg['BrowseMarkerEnable']
2207 $cfg['BrowseMarkerEnable'] = true;
2210 * textarea size (columns) in edit mode
2211 * (this value will be emphasized (*2) for SQL
2212 * query textareas and (*1.25) for query window)
2214 * @global integer $cfg['TextareaCols']
2216 $cfg['TextareaCols'] = 40;
2219 * textarea size (rows) in edit mode
2221 * @global integer $cfg['TextareaRows']
2223 $cfg['TextareaRows'] = 15;
2226 * double size of textarea size for LONGTEXT columns
2228 * @global boolean $cfg['LongtextDoubleTextarea']
2230 $cfg['LongtextDoubleTextarea'] = true;
2233 * auto-select when clicking in the textarea of the query-box
2235 * @global boolean $cfg['TextareaAutoSelect']
2237 $cfg['TextareaAutoSelect'] = false;
2240 * textarea size (columns) for CHAR/VARCHAR
2242 * @global integer $cfg['CharTextareaCols']
2244 $cfg['CharTextareaCols'] = 40;
2247 * textarea size (rows) for CHAR/VARCHAR
2249 * @global integer $cfg['CharTextareaRows']
2251 $cfg['CharTextareaRows'] = 2;
2254 * Max field data length in browse mode for all non-numeric fields
2256 * @global integer $cfg['LimitChars']
2258 $cfg['LimitChars'] = 50;
2261 * Where to show the edit/inline_edit/delete links in browse mode
2262 * Possible values are 'left', 'right', 'both' and 'none';
2263 * which will be interpreted as 'top', 'bottom', 'both' and 'none'
2264 * respectively for vertical display mode
2266 * @global string $cfg['RowActionLinks']
2268 $cfg['RowActionLinks'] = 'left';
2271 * default display direction (horizontal|vertical|horizontalflipped)
2273 * @global string $cfg['DefaultDisplay']
2275 $cfg['DefaultDisplay'] = 'horizontal';
2278 * remember the last way a table sorted
2280 * @global string $cfg['RememberSorting']
2282 $cfg['RememberSorting'] = true;
2285 * default display direction for altering/creating columns (tbl_properties)
2286 * (horizontal|vertical|<number>)
2287 * number indicates maximum number for which vertical model is used
2289 * @global integer $cfg['DefaultPropDisplay']
2291 $cfg['DefaultPropDisplay'] = 3;
2294 * table-header rotation via faking or CSS? (css|fake|auto)
2295 * NOTE: CSS only works in IE browsers!
2297 * @global string $cfg['HeaderFlipType']
2299 $cfg['HeaderFlipType'] = 'auto';
2302 * shows stored relation-comments in 'browse' mode.
2304 * @global boolean $cfg['ShowBrowseComments']
2306 $cfg['ShowBrowseComments'] = true;
2309 * shows stored relation-comments in 'table property' mode.
2311 * @global boolean $cfg['ShowPropertyComments']
2313 $cfg['ShowPropertyComments']= true;
2316 * shows table display direction.
2318 $cfg['ShowDisplayDirection'] = false;
2321 * repeat header names every X cells? (0 = deactivate)
2323 * @global integer $cfg['RepeatCells']
2325 $cfg['RepeatCells'] = 100;
2328 * Set to true if Edit link should open the query to edit in the query window
2329 * (assuming JavaScript is enabled), and to false if we should edit in the right panel
2331 * @global boolean $cfg['EditInWindow']
2333 $cfg['EditInWindow'] = true;
2336 * Width of Query window
2338 * @global integer $cfg['QueryWindowWidth']
2340 $cfg['QueryWindowWidth'] = 550;
2343 * Height of Query window
2345 * @global integer $cfg['QueryWindowHeight']
2347 $cfg['QueryWindowHeight'] = 310;
2350 * Set to true if you want DB-based query history.If false, this utilizes
2351 * JS-routines to display query history (lost by window close)
2353 * @global boolean $cfg['QueryHistoryDB']
2355 $cfg['QueryHistoryDB'] = false;
2358 * which tab to display in the querywindow on startup
2359 * (sql|files|history|full)
2361 * @global string $cfg['QueryWindowDefTab']
2363 $cfg['QueryWindowDefTab'] = 'sql';
2366 * When using DB-based query history, how many entries should be kept?
2368 * @global integer $cfg['QueryHistoryMax']
2370 $cfg['QueryHistoryMax'] = 25;
2373 * Use MIME-Types (stored in column comments table) for
2375 * @global boolean $cfg['BrowseMIME']
2377 $cfg['BrowseMIME'] = true;
2380 * When approximate count < this, PMA will get exact count for table rows.
2382 * @global integer $cfg['MaxExactCount']
2384 $cfg['MaxExactCount'] = 20000;
2387 * Zero means that no row count is done for views; see the doc
2389 * @global integer $cfg['MaxExactCountViews']
2391 $cfg['MaxExactCountViews'] = 0;
2394 * Sort table and database in natural order
2396 * @global boolean $cfg['NaturalOrder']
2398 $cfg['NaturalOrder'] = true;
2401 * Initial state for sliders
2402 * (open | closed)
2404 * @global string $cfg['InitialSlidersState']
2406 $cfg['InitialSlidersState'] = 'closed';
2409 * User preferences: disallow these settings
2410 * For possible setting names look in libraries/config/user_preferences.forms.php
2412 * @global array $cfg['UserprefsDisallow']
2414 $cfg['UserprefsDisallow'] = array();
2417 * User preferences: enable the Developer tab
2419 $cfg['UserprefsDeveloperTab'] = false;
2422 /*******************************************************************************
2423 * Window title settings
2427 * title of browser window when a table is selected
2429 * @global string $cfg['TitleTable']
2431 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2434 * title of browser window when a database is selected
2436 * @global string $cfg['TitleDatabase']
2438 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2441 * title of browser window when a server is selected
2443 * @global string $cfg['TitleServer']
2445 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2448 * title of browser window when nothing is selected
2449 * @global string $cfg['TitleDefault']
2451 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2454 * show some icons for warning, error and information messages (true|false)?
2456 * @global boolean $cfg['ErrorIconic']
2458 $cfg['ErrorIconic'] = true;
2461 * show icons in list on main page and on menu tabs (true|false)?
2463 * @global boolean $cfg['MainPageIconic']
2465 $cfg['MainPageIconic'] = true;
2468 * show help button instead of Documentation text (true|false)?
2470 * @global boolean $cfg['ReplaceHelpImg']
2472 $cfg['ReplaceHelpImg'] = true;
2475 /*******************************************************************************
2476 * theme manager
2480 * using themes manager please set up here the path to 'themes' else leave empty
2482 * @global string $cfg['ThemePath']
2484 $cfg['ThemePath'] = './themes';
2487 * if you want to use selectable themes and if ThemesPath not empty
2488 * set it to true, else set it to false (default is false);
2490 * @global boolean $cfg['ThemeManager']
2492 $cfg['ThemeManager'] = true;
2495 * set up default theme, if ThemePath not empty you can set up here an valid
2496 * path to themes or 'original' for the original pma-theme
2498 * @global string $cfg['ThemeDefault']
2500 $cfg['ThemeDefault'] = 'pmahomme';
2503 * allow different theme for each configured server
2505 * @global boolean $cfg['ThemePerServer']
2507 $cfg['ThemePerServer'] = false;
2510 /*******************************************************************************
2515 * Default query for table
2517 * @global string $cfg['DefaultQueryTable']
2519 $cfg['DefaultQueryTable'] = 'SELECT * FROM @TABLE@ WHERE 1';
2522 * Default query for database
2524 * @global string $cfg['DefaultQueryDatabase']
2526 $cfg['DefaultQueryDatabase'] = '';
2529 /*******************************************************************************
2530 * SQL Query box settings
2531 * These are the links display in all of the SQL Query boxes
2535 * @global array $cfg['SQLQuery']
2537 $cfg['SQLQuery'] = array();
2540 * Edit link to change a query
2542 * @global boolean $cfg['SQLQuery']['Edit']
2544 $cfg['SQLQuery']['Edit'] = true;
2547 * EXPLAIN on SELECT queries
2549 * @global boolean $cfg['SQLQuery']['Explain']
2551 $cfg['SQLQuery']['Explain'] = true;
2554 * Wrap a query in PHP
2556 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2558 $cfg['SQLQuery']['ShowAsPHP'] = true;
2561 * Validate a query (see $cfg['SQLValidator'] as well)
2563 * @global boolean $cfg['SQLQuery']['Validate']
2565 $cfg['SQLQuery']['Validate'] = false;
2568 * Refresh the results page
2570 * @global boolean $cfg['SQLQuery']['Refresh']
2572 $cfg['SQLQuery']['Refresh'] = true;
2575 /*******************************************************************************
2576 * Web server upload/save/import directories
2580 * Directory for uploaded files that can be executed by phpMyAdmin.
2581 * For example './upload'. Leave empty for no upload directory support.
2582 * Use %u for username inclusion.
2584 * @global string $cfg['UploadDir']
2586 $cfg['UploadDir'] = '';
2589 * Directory where phpMyAdmin can save exported data on server.
2590 * For example './save'. Leave empty for no save directory support.
2591 * Use %u for username inclusion.
2593 * @global string $cfg['SaveDir']
2595 $cfg['SaveDir'] = '';
2598 * Directory where phpMyAdmin can save temporary files.
2599 * This is needed for MS Excel export, see documentation how to enable that.
2601 * @global string $cfg['TempDir']
2603 $cfg['TempDir'] = '';
2606 /*******************************************************************************
2607 * Misc. settings
2611 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2612 * which is the only safe way to determine GD version.
2614 * @global string $cfg['GD2Available']
2616 $cfg['GD2Available'] = 'auto';
2619 * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
2621 * @global array $cfg['TrustedProxies']
2623 $cfg['TrustedProxies'] = array();
2626 * We normally check the permissions on the configuration file to ensure
2627 * it's not world writable. However, phpMyAdmin could be installed on
2628 * a NTFS filesystem mounted on a non-Windows server, in which case the
2629 * permissions seems wrong but in fact cannot be detected. In this case
2630 * a sysadmin would set the following to false.
2632 $cfg['CheckConfigurationPermissions'] = true;
2635 * Limit for length of URL in links. When length would be above this limit, it
2636 * is replaced by form with button.
2637 * This is required as some web servers (IIS) have problems with long URLs.
2638 * The recommended limit is 2000
2639 * (see http://www.boutell.com/newfaq/misc/urllength.html) but we put
2640 * 1000 to accommodate Suhosin, see bug #3358750.
2642 $cfg['LinkLengthLimit'] = 1000;
2645 * Disable the table maintenance mass operations, like optimizing or
2646 * repairing the selected tables of a database. An accidental execution
2647 * of such a maintenance task can enormously slow down a bigger database.
2649 $cfg['DisableMultiTableMaintenance'] = false;
2652 /*******************************************************************************
2653 * SQL Parser
2657 * SQL Parser Settings
2659 * @global array $cfg['SQP']
2661 $cfg['SQP'] = array();
2664 * Pretty-printing style to use on queries (html, text, none)
2666 * @global string $cfg['SQP']['fmtType']
2668 $cfg['SQP']['fmtType'] = 'html';
2671 * Amount to indent each level (floats are valid)
2673 * @global integer $cfg['SQP']['fmtInd']
2675 $cfg['SQP']['fmtInd'] = '1';
2678 * Units for indenting each level (CSS Types - {em, px, pt})
2680 * @global string $cfg['SQP']['fmtIndUnit']
2682 $cfg['SQP']['fmtIndUnit'] = 'em';
2685 /*******************************************************************************
2686 * SQL Validator
2690 * If you wish to use the SQL Validator service, you should be aware of the
2691 * following:
2692 * All SQL statements are stored anonymously for statistical purposes.
2693 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
2694 * All rights reserved.
2696 * @global array $cfg['SQLValidator']
2698 $cfg['SQLValidator'] = array();
2701 * Make the SQL Validator available
2703 * @global boolean $cfg['SQLValidator']['use']
2705 $cfg['SQLValidator']['use'] = false;
2708 * If you have a custom username, specify it here (defaults to anonymous)
2710 * @global string $cfg['SQLValidator']['username']
2712 $cfg['SQLValidator']['username'] = '';
2715 * Password for username
2717 * @global string $cfg['SQLValidator']['password']
2719 $cfg['SQLValidator']['password'] = '';
2722 /*******************************************************************************
2723 * Developers ONLY!
2727 * Debugging settings
2729 * @global array $cfg['DBG']
2731 $cfg['DBG'] = array();
2734 * Output executed queries and their execution times
2736 * @global boolean $cfg['DBG']['sql']
2738 $cfg['DBG']['sql'] = false;
2741 /*******************************************************************************
2742 * MySQL settings
2746 * Column types
2748 * Fill in this array to overwrite data from data_*.inc.php files
2750 * @global array $cfg['ColumnTypes']
2752 $cfg['ColumnTypes'] = array();
2755 * Attributes
2757 * Fill in this array to overwrite data from data_*.inc.php files
2759 * @global array $cfg['AttributeTypes']
2761 $cfg['AttributeTypes'] = array();
2763 if ($cfg['ShowFunctionFields']) {
2765 * Available functions
2767 * Fill in this array to overwrite data from data_*.inc.php files
2769 * @global array $cfg['Functions']
2771 $cfg['Functions'] = array();
2774 * Which column types will be mapped to which Group?
2776 * Fill in this array to overwrite data from data_*.inc.php files
2778 * @global array $cfg['RestrictColumnTypes']
2780 $cfg['RestrictColumnTypes'] = array();
2783 * Map above defined groups to any function
2785 * Fill in this array to overwrite data from data_*.inc.php files
2787 * @global array $cfg['RestrictFunctions']
2789 $cfg['RestrictFunctions'] = array();
2792 * Default functions for above defined groups
2794 * @global array $cfg['DefaultFunctions']
2796 $cfg['DefaultFunctions'] = array(
2797 'FUNC_CHAR' => '',
2798 'FUNC_DATE' => '',
2799 'FUNC_NUMBER' => '',
2800 'first_timestamp' => 'NOW',
2801 'pk_char36' => 'UUID',