Merge #16811 - Fix #16810 - Fix SQL query shown twice on drop
[phpmyadmin.git] / libraries / config.default.php
blobacfe09dd9f4528c90b4bd9be8064a59c361a3054
1 <?php
2 /**
3 * <code>
4 * N N OOO !! DDDD OOO N N OOO TTTTT EEEE DDDD I TTTTT !!
5 * NN N O O !! D D O O NN N O O T E D D I T !!
6 * N N N O O !! D D O O N N N O O T EEEE D D I T !!
7 * N NN O O D D O O N NN O O T E D D I T
8 * N N OOO !! DDDD OOO N N OOO T EEEE DDDD I T !!
9 * </code>
11 * DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
13 * phpMyAdmin default configuration, you can copy values from here to your
14 * config.inc.php
16 * All directives are explained in the documentation
19 declare(strict_types=1);
21 /**
22 * Your phpMyAdmin URL.
24 * Complete the variable below with the full URL ie
25 * https://example.com/path_to_your_phpMyAdmin_directory/
27 * It must contain characters that are valid for a URL, and the path is
28 * case sensitive on some Web servers, for example Unix-based servers.
30 * In most cases you can leave this variable empty, as the correct value
31 * will be detected automatically. However, we recommend that you do
32 * test to see that the auto-detection code works in your system. A good
33 * test is to browse a table, then edit a row and save it. There will be
34 * an error message if phpMyAdmin cannot auto-detect the correct value.
36 * @global string $cfg['PmaAbsoluteUri']
38 $cfg['PmaAbsoluteUri'] = '';
40 /**
41 * Configure authentication logging destination
43 * @global string $cfg['AuthLog']
45 $cfg['AuthLog'] = 'auto';
47 /**
48 * Whether to log successful authentication attempts
50 * @global boolean $cfg['AuthLogSuccess']
52 $cfg['AuthLogSuccess'] = false;
54 /**
55 * Disable the default warning that is displayed on the DB Details Structure page if
56 * any of the required Tables for the configuration storage could not be found
58 * @global boolean $cfg['PmaNoRelation_DisableWarning']
60 $cfg['PmaNoRelation_DisableWarning'] = false;
62 /**
63 * Disable the default warning that is displayed if Suhosin is detected
65 * @global boolean $cfg['SuhosinDisableWarning']
67 $cfg['SuhosinDisableWarning'] = false;
69 /**
70 * Disable the default warning that is displayed if session.gc_maxlifetime
71 * is less than `LoginCookieValidity`
73 * @global boolean $cfg['LoginCookieValidityDisableWarning']
75 $cfg['LoginCookieValidityDisableWarning'] = false;
77 /**
78 * Disable the default warning about MySQL reserved words in column names
80 * @global boolean $cfg['ReservedWordDisableWarning']
82 $cfg['ReservedWordDisableWarning'] = false;
84 /**
85 * Show warning about incomplete translations on certain threshold.
87 * @global boolean $cfg['TranslationWarningThreshold']
89 $cfg['TranslationWarningThreshold'] = 80;
91 /**
92 * Allows phpMyAdmin to be included from a other document in a frame;
93 * setting this to true is a potential security hole. Setting this to
94 * 'sameorigin' prevents phpMyAdmin to be included from another document
95 * in a frame, unless that document belongs to the same domain.
97 * @global boolean|string $cfg['AllowThirdPartyFraming']
99 $cfg['AllowThirdPartyFraming'] = false;
102 * The 'cookie' auth_type uses AES algorithm to encrypt the password. If
103 * at least one server configuration uses 'cookie' auth_type, enter here a
104 * pass phrase that will be used by AES. The maximum length seems to be 46
105 * characters.
107 * @global string $cfg['blowfish_secret']
109 $cfg['blowfish_secret'] = '';
112 /*******************************************************************************
113 * Server(s) configuration
115 * The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
116 * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
117 * to ''. If you want more than one server, just copy following section
118 * (including $i incrementation) several times. There is no need to define
119 * full server array, just define values you need to change.
121 * @global array $cfg['Servers']
123 $cfg['Servers'] = [];
125 $i = 1;
128 * MySQL hostname or IP address
130 * @global string $cfg['Servers'][$i]['host']
132 $cfg['Servers'][$i]['host'] = 'localhost';
135 * MySQL port - leave blank for default port
137 * @global string $cfg['Servers'][$i]['port']
139 $cfg['Servers'][$i]['port'] = '';
142 * Path to the socket - leave blank for default socket
144 * @global string $cfg['Servers'][$i]['socket']
146 $cfg['Servers'][$i]['socket'] = '';
149 * Use SSL for connecting to MySQL server?
151 * @global boolean $cfg['Servers'][$i]['ssl']
153 $cfg['Servers'][$i]['ssl'] = false;
156 * Path to the key file when using SSL for connecting to the MySQL server
158 * @global string $cfg['Servers'][$i]['ssl_key']
160 $cfg['Servers'][$i]['ssl_key'] = null;
163 * Path to the cert file when using SSL for connecting to the MySQL server
165 * @global string $cfg['Servers'][$i]['ssl_cert']
167 $cfg['Servers'][$i]['ssl_cert'] = null;
170 * Path to the CA file when using SSL for connecting to the MySQL server
172 * @global string $cfg['Servers'][$i]['ssl_ca']
174 $cfg['Servers'][$i]['ssl_ca'] = null;
177 * Directory containing trusted SSL CA certificates in PEM format
179 * @global string $cfg['Servers'][$i]['ssl_ca_path']
181 $cfg['Servers'][$i]['ssl_ca_path'] = null;
184 * List of allowable ciphers for SSL connections to the MySQL server
186 * @global string $cfg['Servers'][$i]['ssl_ciphers']
188 $cfg['Servers'][$i]['ssl_ciphers'] = null;
191 * MySQL 5.6 or later triggers the mysqlnd driver in PHP to validate the
192 * peer_name of the SSL certifcate
193 * For most self-signed certificates this is a problem. Setting this to false
194 * will disable the check and allow the connection (PHP 5.6.16 or later)
196 * @link https://bugs.php.net/68344
198 * @global string $cfg['Servers'][$i]['ssl_verify']
200 $cfg['Servers'][$i]['ssl_verify'] = true;
203 * Use compressed protocol for the MySQL connection
205 * @global boolean $cfg['Servers'][$i]['compress']
207 $cfg['Servers'][$i]['compress'] = false;
210 * MySQL control host. This permits to use a host different than the
211 * main host, for the phpMyAdmin configuration storage. If left empty,
212 * $cfg['Servers'][$i]['host'] is used instead.
214 * @global string $cfg['Servers'][$i]['controlhost']
216 $cfg['Servers'][$i]['controlhost'] = '';
219 * MySQL control port. This permits to use a port different than the
220 * main port, for the phpMyAdmin configuration storage. If left empty,
221 * $cfg['Servers'][$i]['port'] is used instead.
223 * @global string $cfg['Servers'][$i]['controlport']
225 $cfg['Servers'][$i]['controlport'] = '';
228 * MySQL control user settings (this user must have read-only
229 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
230 * used for all relational features (pmadb)
232 * @global string $cfg['Servers'][$i]['controluser']
234 $cfg['Servers'][$i]['controluser'] = '';
237 * MySQL control user settings (this user must have read-only
238 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
239 * used for all relational features (pmadb)
241 * @global string $cfg['Servers'][$i]['controlpass']
243 $cfg['Servers'][$i]['controlpass'] = '';
246 * Authentication method (valid choices: config, http, signon or cookie)
248 * @global string $cfg['Servers'][$i]['auth_type']
250 $cfg['Servers'][$i]['auth_type'] = 'cookie';
253 * HTTP Basic Auth Realm name to display (only used with 'HTTP' auth_type)
255 * @global string $cfg['Servers'][$i]['auth_http_realm']
257 $cfg['Servers'][$i]['auth_http_realm'] = '';
260 * MySQL user
262 * @global string $cfg['Servers'][$i]['user']
264 $cfg['Servers'][$i]['user'] = 'root';
267 * MySQL password (only needed with 'config' auth_type)
269 * @global string $cfg['Servers'][$i]['password']
271 $cfg['Servers'][$i]['password'] = '';
274 * Session to use for 'signon' authentication method
276 * @global string $cfg['Servers'][$i]['SignonSession']
278 $cfg['Servers'][$i]['SignonSession'] = '';
281 * Cookie params to match session to use for 'signon' authentication method
282 * It should be an associative array matching result of session_get_cookie_params() in other system
284 * @global array $cfg['Servers'][$i]['SignonCookieParams']
286 $cfg['Servers'][$i]['SignonCookieParams'] = [];
289 * PHP script to use for 'signon' authentication method
291 * @global string $cfg['Servers'][$i]['SignonScript']
293 $cfg['Servers'][$i]['SignonScript'] = '';
296 * URL where to redirect user to login for 'signon' authentication method
298 * @global string $cfg['Servers'][$i]['SignonURL']
300 $cfg['Servers'][$i]['SignonURL'] = '';
303 * URL where to redirect user after logout
305 * @global string $cfg['Servers'][$i]['LogoutURL']
307 $cfg['Servers'][$i]['LogoutURL'] = '';
310 * If set to a db-name, only this db is displayed in navigation panel
311 * It may also be an array of db-names
313 * @global string $cfg['Servers'][$i]['only_db']
315 $cfg['Servers'][$i]['only_db'] = '';
318 * Database name to be hidden from listings
320 * @global string $cfg['Servers'][$i]['hide_db']
322 $cfg['Servers'][$i]['hide_db'] = '';
325 * Verbose name for this host - leave blank to show the hostname
326 * (for HTTP authentication, all non-US-ASCII characters will be stripped)
328 * @global string $cfg['Servers'][$i]['verbose']
330 $cfg['Servers'][$i]['verbose'] = '';
333 * Database used for Relation, Bookmark and PDF Features
334 * (see sql/create_tables.sql)
335 * - leave blank for no support
336 * SUGGESTED: 'phpmyadmin'
338 * @global string $cfg['Servers'][$i]['pmadb']
340 $cfg['Servers'][$i]['pmadb'] = '';
343 * Bookmark table
344 * - leave blank for no bookmark support
345 * SUGGESTED: 'pma__bookmark'
347 * @global string $cfg['Servers'][$i]['bookmarktable']
349 $cfg['Servers'][$i]['bookmarktable'] = '';
352 * table to describe the relation between links (see doc)
353 * - leave blank for no relation-links support
354 * SUGGESTED: 'pma__relation'
356 * @global string $cfg['Servers'][$i]['relation']
358 $cfg['Servers'][$i]['relation'] = '';
361 * table to describe the display fields
362 * - leave blank for no display fields support
363 * SUGGESTED: 'pma__table_info'
365 * @global string $cfg['Servers'][$i]['table_info']
367 $cfg['Servers'][$i]['table_info'] = '';
370 * table to describe the tables position for the designer and PDF schema
371 * - leave blank for no PDF schema support
372 * SUGGESTED: 'pma__table_coords'
374 * @global string $cfg['Servers'][$i]['table_coords']
376 $cfg['Servers'][$i]['table_coords'] = '';
379 * table to describe pages of relationpdf
380 * - leave blank if you don't want to use this
381 * SUGGESTED: 'pma__pdf_pages'
383 * @global string $cfg['Servers'][$i]['pdf_pages']
385 $cfg['Servers'][$i]['pdf_pages'] = '';
388 * table to store column information
389 * - leave blank for no column comments/mime types
390 * SUGGESTED: 'pma__column_info'
392 * @global string $cfg['Servers'][$i]['column_info']
394 $cfg['Servers'][$i]['column_info'] = '';
397 * table to store SQL history
398 * - leave blank for no SQL query history
399 * SUGGESTED: 'pma__history'
401 * @global string $cfg['Servers'][$i]['history']
403 $cfg['Servers'][$i]['history'] = '';
406 * table to store recently used tables
407 * - leave blank for no "persistent" recently used tables
408 * SUGGESTED: 'pma__recent'
410 $cfg['Servers'][$i]['recent'] = '';
413 * table to store favorite tables
414 * - leave blank for no favorite tables
415 * SUGGESTED: 'pma__favorite'
417 $cfg['Servers'][$i]['favorite'] = '';
420 * table to store UI preferences for tables
421 * - leave blank for no "persistent" UI preferences
422 * SUGGESTED: 'pma__table_uiprefs'
424 $cfg['Servers'][$i]['table_uiprefs'] = '';
427 * table to store SQL tracking
428 * - leave blank for no SQL tracking
429 * SUGGESTED: 'pma__tracking'
431 * @global string $cfg['Servers'][$i]['tracking']
433 $cfg['Servers'][$i]['tracking'] = '';
436 * table to store user preferences
437 * - leave blank to disable server storage
438 * SUGGESTED: 'pma__userconfig'
440 * @global string $cfg['Servers'][$i]['userconfig']
442 $cfg['Servers'][$i]['userconfig'] = '';
445 * table to store users and their assignment to user groups
446 * - leave blank to disable configurable menus feature
447 * SUGGESTED: 'pma__users'
449 * @global string $cfg['Servers'][$i]['users']
451 $cfg['Servers'][$i]['users'] = '';
454 * table to store allowed menu items for each user group
455 * - leave blank to disable configurable menus feature
456 * SUGGESTED: 'pma__usergroups'
458 * @global string $cfg['Servers'][$i]['usergroups']
460 $cfg['Servers'][$i]['usergroups'] = '';
463 * table to store information about item hidden from navigation tree
464 * - leave blank to disable hide/show navigation items feature
465 * SUGGESTED: 'pma__navigationhiding'
467 * @global string $cfg['Servers'][$i]['navigationhiding']
469 $cfg['Servers'][$i]['navigationhiding'] = '';
472 * table to store information about saved searches from query-by-example on a db
473 * - leave blank to disable saved searches feature
474 * SUGGESTED: 'pma__savedsearches'
476 * @global string $cfg['Servers'][$i]['savedsearches']
478 $cfg['Servers'][$i]['savedsearches'] = '';
481 * table to store central list of columns per database
482 * - leave blank to disable central list of columns feature
483 * SUGGESTED: 'pma__central_columns'
485 * @global string $cfg['Servers'][$i]['central_columns']
487 $cfg['Servers'][$i]['central_columns'] = '';
490 * table to store designer settings
491 * - leave blank to disable the storage of designer settings
492 * SUGGESTED: 'pma__designer_settings'
494 * @global string $cfg['Servers'][$i]['designer_settings']
496 $cfg['Servers'][$i]['designer_settings'] = '';
499 * table to store export templates
500 * - leave blank to disable saved searches feature
501 * SUGGESTED: 'pma__export_templates'
503 * @global string $cfg['Servers'][$i]['export_templates']
505 $cfg['Servers'][$i]['export_templates'] = '';
508 * Maximum number of records saved in $cfg['Servers'][$i]['table_uiprefs'] table.
510 * In case where tables in databases is modified (e.g. dropped or renamed),
511 * table_uiprefs may contains invalid data (referring to tables which are not
512 * exist anymore).
513 * This configuration make sure that we only keep N (N = MaxTableUiprefs)
514 * newest record in table_uiprefs and automatically delete older records.
516 * @global integer $cfg['Servers'][$i]['userconfig'] = '';
518 $cfg['Servers'][$i]['MaxTableUiprefs'] = 100;
521 * Sets the time zone used by phpMyAdmin. Possible values are explained at
522 * https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html
524 * @global string $cfg['Servers'][$i]['SessionTimeZone'] = ''
526 $cfg['Servers'][$i]['SessionTimeZone'] = '';
529 * whether to allow root login
531 * @global boolean $cfg['Servers'][$i]['AllowRoot']
533 $cfg['Servers'][$i]['AllowRoot'] = true;
536 * whether to allow login of any user without a password
538 * @global boolean $cfg['Servers'][$i]['AllowNoPassword']
540 $cfg['Servers'][$i]['AllowNoPassword'] = false;
543 * Host authentication order, leave blank to not use
545 * @global string $cfg['Servers'][$i]['AllowDeny']['order']
547 $cfg['Servers'][$i]['AllowDeny']['order'] = '';
550 * Host authentication rules, leave blank for defaults
552 * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
554 $cfg['Servers'][$i]['AllowDeny']['rules'] = [];
557 * Disable use of INFORMATION_SCHEMA.
559 * @see https://github.com/phpmyadmin/phpmyadmin/issues/8970
560 * @see https://bugs.mysql.com/19588
562 * @global boolean $cfg['Servers'][$i]['DisableIS']
564 $cfg['Servers'][$i]['DisableIS'] = false;
567 * Whether the tracking mechanism creates
568 * versions for tables and views automatically.
570 * @global bool $cfg['Servers'][$i]['tracking_version_auto_create']
572 $cfg['Servers'][$i]['tracking_version_auto_create'] = false;
575 * Defines the list of statements
576 * the auto-creation uses for new versions.
578 * @global string $cfg['Servers'][$i]['tracking_default_statements']
580 $cfg['Servers'][$i]['tracking_default_statements']
581 = 'CREATE TABLE,ALTER TABLE,DROP TABLE,RENAME TABLE,CREATE INDEX,' .
582 'DROP INDEX,INSERT,UPDATE,DELETE,TRUNCATE,REPLACE,CREATE VIEW,' .
583 'ALTER VIEW,DROP VIEW,CREATE DATABASE,ALTER DATABASE,DROP DATABASE';
586 * Whether a DROP VIEW IF EXISTS statement will be added
587 * as first line to the log when creating a view.
589 * @global bool $cfg['Servers'][$i]['tracking_add_drop_view']
591 $cfg['Servers'][$i]['tracking_add_drop_view'] = true;
594 * Whether a DROP TABLE IF EXISTS statement will be added
595 * as first line to the log when creating a table.
597 * @global bool $cfg['Servers'][$i]['tracking_add_drop_table']
599 $cfg['Servers'][$i]['tracking_add_drop_table'] = true;
602 * Whether a DROP DATABASE IF EXISTS statement will be added
603 * as first line to the log when creating a database.
605 * @global bool $cfg['Servers'][$i]['tracking_add_drop_database']
607 $cfg['Servers'][$i]['tracking_add_drop_database'] = true;
610 * Default server (0 = no default server)
612 * If you have more than one server configured, you can set $cfg['ServerDefault']
613 * to any one of them to auto-connect to that server when phpMyAdmin is started,
614 * or set it to 0 to be given a list of servers without logging in
615 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
616 * set to that server.
618 * @global integer $cfg['ServerDefault']
620 $cfg['ServerDefault'] = 1;
623 * Other core phpMyAdmin settings
627 * whether version check is active
629 * @global boolean $cfg['VersionCheck']
631 if (defined('VERSION_CHECK_DEFAULT')) {
632 $cfg['VersionCheck'] = VERSION_CHECK_DEFAULT;
633 } else {
634 $cfg['VersionCheck'] = true;
638 * The url of the proxy to be used when retrieving the information about
639 * the latest version of phpMyAdmin or error reporting. You need this if
640 * the server where phpMyAdmin is installed does not have direct access to
641 * the internet.
642 * The format is: "hostname:portnumber"
644 * @global string $cfg['ProxyUrl']
646 $cfg['ProxyUrl'] = '';
649 * The username for authenticating with the proxy. By default, no
650 * authentication is performed. If a username is supplied, Basic
651 * Authentication will be performed. No other types of authentication
652 * are currently supported.
654 * @global string $cfg['ProxyUser']
656 $cfg['ProxyUser'] = '';
659 * The password for authenticating with the proxy.
661 * @global string $cfg['ProxyPass']
663 $cfg['ProxyPass'] = '';
666 * maximum number of db's displayed in database list
668 * @global integer $cfg['MaxDbList']
670 $cfg['MaxDbList'] = 100;
673 * maximum number of tables displayed in table list
675 * @global integer $cfg['MaxTableList']
677 $cfg['MaxTableList'] = 250;
680 * whether to show hint or not
682 * @global boolean $cfg['ShowHint']
684 $cfg['ShowHint'] = true;
687 * maximum number of characters when a SQL query is displayed
689 * @global integer $cfg['MaxCharactersInDisplayedSQL']
691 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
694 * use GZIP output buffering if possible (true|false|'auto')
696 * @global string $cfg['OBGzip']
698 $cfg['OBGzip'] = 'auto';
701 * use persistent connections to MySQL database
703 * @global boolean $cfg['PersistentConnections']
705 $cfg['PersistentConnections'] = false;
708 * maximum execution time in seconds (0 for no limit)
710 * @global integer $cfg['ExecTimeLimit']
712 $cfg['ExecTimeLimit'] = 300;
715 * Path for storing session data (session_save_path PHP parameter).
717 * @global integer $cfg['SessionSavePath']
719 $cfg['SessionSavePath'] = '';
722 * Hosts or IPs to consider safe when checking if SSL is used or not
724 * @global array $cfg['MysqlSslWarningSafeHosts']
726 $cfg['MysqlSslWarningSafeHosts'] = ['127.0.0.1', 'localhost'];
729 * maximum allocated bytes ('-1' for no limit, '0' for no change)
730 * this is a string because '16M' is a valid value; we must put here
731 * a string as the default value so that /setup accepts strings
733 * @global string $cfg['MemoryLimit']
735 $cfg['MemoryLimit'] = '-1';
738 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
740 * @global boolean $cfg['SkipLockedTables']
742 $cfg['SkipLockedTables'] = false;
745 * show SQL queries as run
747 * @global boolean $cfg['ShowSQL']
749 $cfg['ShowSQL'] = true;
752 * retain SQL input on Ajax execute
754 * @global boolean $cfg['RetainQueryEditor']
756 $cfg['RetainQueryBox'] = false;
759 * use CodeMirror syntax highlighting for editing SQL
761 * @global boolean $cfg['CodemirrorEnable']
763 $cfg['CodemirrorEnable'] = true;
766 * use the parser to find any errors in the query before executing
768 * @global boolean $cfg['LintEnable']
770 $cfg['LintEnable'] = true;
773 * show a 'Drop database' link to normal users
775 * @global boolean $cfg['AllowUserDropDatabase']
777 $cfg['AllowUserDropDatabase'] = false;
780 * confirm some commands that can result in loss of data
782 * @global boolean $cfg['Confirm']
784 $cfg['Confirm'] = true;
787 * sets SameSite attribute of the Set-Cookie HTTP response header
789 * @global boolean $cfg['CookieSameSite']
791 $cfg['CookieSameSite'] = 'Strict';
794 * recall previous login in cookie authentication mode or not
796 * @global boolean $cfg['LoginCookieRecall']
798 $cfg['LoginCookieRecall'] = true;
801 * validity of cookie login (in seconds; 1440 matches php.ini's
802 * session.gc_maxlifetime)
804 * @global integer $cfg['LoginCookieValidity']
806 $cfg['LoginCookieValidity'] = 1440;
809 * how long login cookie should be stored (in seconds)
811 * @global integer $cfg['LoginCookieStore']
813 $cfg['LoginCookieStore'] = 0;
816 * whether to delete all login cookies on logout
818 * @global boolean $cfg['LoginCookieDeleteAll']
820 $cfg['LoginCookieDeleteAll'] = true;
823 * whether to enable the "database search" feature or not
825 * @global boolean $cfg['UseDbSearch']
827 $cfg['UseDbSearch'] = true;
830 * if set to true, PMA continues computing multiple-statement queries
831 * even if one of the queries failed
833 * @global boolean $cfg['IgnoreMultiSubmitErrors']
835 $cfg['IgnoreMultiSubmitErrors'] = false;
838 * allow login to any user entered server in cookie based authentication
840 * @global boolean $cfg['AllowArbitraryServer']
842 $cfg['AllowArbitraryServer'] = false;
845 * restrict by IP (with regular expression) the MySQL servers the user can enter
846 * when $cfg['AllowArbitraryServer'] = true
848 * @global string $cfg['ArbitraryServerRegexp']
850 $cfg['ArbitraryServerRegexp'] = '';
853 * To enable reCaptcha v2 checkbox mode if necessary
855 * @global string $cfg['CaptchaMethod']
857 $cfg['CaptchaMethod'] = 'invisible';
860 * URL for the reCaptcha v2 compatible API to use
862 * @global string $cfg['CaptchaApi']
864 $cfg['CaptchaApi'] = 'https://www.google.com/recaptcha/api.js';
867 * Content-Security-Policy snippet for the reCaptcha v2 compatible API
869 * @global string $cfg['CaptchaCsp']
871 $cfg['CaptchaCsp'] = 'https://apis.google.com https://www.google.com/recaptcha/'
872 . ' https://www.gstatic.com/recaptcha/ https://ssl.gstatic.com/';
875 * reCaptcha API's request parameter name
877 * @global string $cfg['CaptchaRequestParam']
879 $cfg['CaptchaRequestParam'] = 'g-recaptcha';
882 * reCaptcha API's response parameter name
884 * @global string $cfg['CaptchaResponseParam']
886 $cfg['CaptchaResponseParam'] = 'g-recaptcha-response';
889 * if reCaptcha is enabled it needs public key to connect with the service
891 * @global string $cfg['CaptchaLoginPublicKey']
893 $cfg['CaptchaLoginPublicKey'] = '';
896 * if reCaptcha is enabled it needs private key to connect with the service
898 * @global string $cfg['CaptchaLoginPrivateKey']
900 $cfg['CaptchaLoginPrivateKey'] = '';
903 * if reCaptcha is enabled may need an URL for site verify
905 * @global string $cfg['CaptchaSiteVerifyURL']
907 $cfg['CaptchaSiteVerifyURL'] = '';
910 * Enable drag and drop import
912 * @see feature request : https://github.com/phpmyadmin/phpmyadmin/issues/13155
914 * @global bool $cfg['enable_drag_drop_import']
916 $cfg['enable_drag_drop_import'] = true;
918 /*******************************************************************************
919 * Navigation panel setup
923 * In the navigation panel, replaces the database tree with a selector
925 * @global boolean $cfg['ShowDatabasesNavigationAsTree']
927 $cfg['ShowDatabasesNavigationAsTree'] = true;
930 * maximum number of first level databases displayed in navigation panel
932 * @global integer $cfg['FirstLevelNavigationItems']
934 $cfg['FirstLevelNavigationItems'] = 100;
937 * maximum number of items displayed in navigation panel
939 * @global integer $cfg['MaxNavigationItems']
941 $cfg['MaxNavigationItems'] = 50;
944 * turn the select-based light menu into a tree
946 * @global boolean $cfg['NavigationTreeEnableGrouping']
948 $cfg['NavigationTreeEnableGrouping'] = true;
951 * the separator to sub-tree the select-based light menu tree
953 * @global string $cfg['NavigationTreeDbSeparator']
955 $cfg['NavigationTreeDbSeparator'] = '_';
958 * Which string will be used to generate table prefixes
959 * to split/nest tables into multiple categories
961 * @global string $cfg['NavigationTreeTableSeparator']
963 $cfg['NavigationTreeTableSeparator'] = '__';
966 * How many sublevels should be displayed when splitting up tables
967 * by the above Separator
969 * @global integer $cfg['NavigationTreeTableLevel']
971 $cfg['NavigationTreeTableLevel'] = 1;
974 * link with main panel by highlighting the current db/table
976 * @global boolean $cfg['NavigationLinkWithMainPanel']
978 $cfg['NavigationLinkWithMainPanel'] = true;
981 * display logo at top of navigation panel
983 * @global boolean $cfg['NavigationDisplayLogo']
985 $cfg['NavigationDisplayLogo'] = true;
988 * where should logo link point to (can also contain an external URL)
990 * @global string $cfg['NavigationLogoLink']
992 $cfg['NavigationLogoLink'] = 'index.php';
995 * whether to open the linked page in the main window ('main') or
996 * in a new window ('new')
998 * @global string $cfg['NavigationLogoLinkWindow']
1000 $cfg['NavigationLogoLinkWindow'] = 'main';
1003 * number of recently used tables displayed in the navigation panel
1005 * @global integer $cfg['NumRecentTables']
1007 $cfg['NumRecentTables'] = 10;
1010 * number of favorite tables displayed in the navigation panel
1012 * @global integer $cfg['NumFavoriteTables']
1014 $cfg['NumFavoriteTables'] = 10;
1017 * display a JavaScript table filter in the navigation panel
1018 * when more then x tables are present
1020 * @global boolean $cfg['NavigationTreeDisplayItemFilterMinimum']
1022 $cfg['NavigationTreeDisplayItemFilterMinimum'] = 30;
1025 * display server choice at top of navigation panel
1027 * @global boolean $cfg['NavigationDisplayServers']
1029 $cfg['NavigationDisplayServers'] = true;
1032 * server choice as links
1034 * @global boolean $cfg['DisplayServersList']
1036 $cfg['DisplayServersList'] = false;
1039 * display a JavaScript database filter in the navigation panel
1040 * when more then x databases are present
1042 * @global boolean $cfg['NavigationTreeDisplayDbFilterMinimum']
1044 $cfg['NavigationTreeDisplayDbFilterMinimum'] = 30;
1047 * target of the navigation panel quick access icon
1049 * Possible values:
1050 * 'structure' = fields list
1051 * 'sql' = SQL form
1052 * 'search' = search page
1053 * 'insert' = insert row page
1054 * 'browse' = browse page
1056 * @global string $cfg['NavigationTreeDefaultTabTable']
1058 $cfg['NavigationTreeDefaultTabTable'] = 'structure';
1061 * target of the navigation panel quick second access icon
1063 * Possible values:
1064 * 'structure' = fields list
1065 * 'sql' = SQL form
1066 * 'search' = search page
1067 * 'insert' = insert row page
1068 * 'browse' = browse page
1069 * '' = no link
1071 * @global string $cfg['NavigationTreeDefaultTabTable2']
1073 $cfg['NavigationTreeDefaultTabTable2'] = '';
1076 * Enables the possibility of navigation tree expansion
1078 * @global boolean $cfg['NavigationTreeEnableExpansion']
1080 $cfg['NavigationTreeEnableExpansion'] = true;
1083 * Show tables in navigation panel
1085 * @global boolean $cfg['NavigationTreeShowTables']
1087 $cfg['NavigationTreeShowTables'] = true;
1090 * Show views in navigation panel
1092 * @global boolean $cfg['NavigationTreeShowViews']
1094 $cfg['NavigationTreeShowViews'] = true;
1097 * Show functions in navigation panel
1099 * @global boolean $cfg['NavigationTreeShowFunctions']
1101 $cfg['NavigationTreeShowFunctions'] = true;
1104 * Show procedures in navigation panel
1106 * @global boolean $cfg['NavigationTreeShowProcedures']
1108 $cfg['NavigationTreeShowProcedures'] = true;
1111 * Show events in navigation panel
1113 * @global boolean $cfg['NavigationTreeShowEvents']
1115 $cfg['NavigationTreeShowEvents'] = true;
1118 * Width of navigation panel
1120 * @global integer $cfg['NavigationWidth']
1122 $cfg['NavigationWidth'] = 240;
1125 * Automatically expands single database in navigation panel
1127 * @global boolean $cfg['NavigationAutoexpandSingleDb']
1129 $cfg['NavigationTreeAutoexpandSingleDb'] = true;
1131 /*******************************************************************************
1132 * In the main panel, at startup...
1136 * allow to display statistics and space usage in the pages about database
1137 * details and table properties
1139 * @global boolean $cfg['ShowStats']
1141 $cfg['ShowStats'] = true;
1144 * show PHP info link
1146 * @global boolean $cfg['ShowPhpInfo']
1148 $cfg['ShowPhpInfo'] = false;
1151 * show MySQL server and web server information
1153 * @global boolean $cfg['ShowServerInfo']
1155 $cfg['ShowServerInfo'] = true;
1158 * show change password link
1160 * @global boolean $cfg['ShowChgPassword']
1162 $cfg['ShowChgPassword'] = true;
1165 * show create database form
1167 * @global boolean $cfg['ShowCreateDb']
1169 $cfg['ShowCreateDb'] = true;
1172 /*******************************************************************************
1173 * Database structure
1176 /** show charset column in database structure (true|false)?
1178 * @global boolean $cfg['ShowDbStructureCharset']
1180 $cfg['ShowDbStructureCharset'] = false;
1183 * show comment column in database structure (true|false)?
1185 * @global boolean $cfg['ShowDbStructureComment']
1187 $cfg['ShowDbStructureComment'] = false;
1190 * show creation timestamp column in database structure (true|false)?
1192 * @global boolean $cfg['ShowDbStructureCreation']
1194 $cfg['ShowDbStructureCreation'] = false;
1197 * show last update timestamp column in database structure (true|false)?
1199 * @global boolean $cfg['ShowDbStructureLastUpdate']
1201 $cfg['ShowDbStructureLastUpdate'] = false;
1204 * show last check timestamp column in database structure (true|false)?
1206 * @global boolean $cfg['ShowDbStructureLastCheck']
1208 $cfg['ShowDbStructureLastCheck'] = false;
1211 * allow hide action columns to drop down menu in database structure (true|false)?
1213 * @global boolean $cfg['HideStructureActions']
1215 $cfg['HideStructureActions'] = true;
1218 * Show column comments in table structure view (true|false)?
1220 * @global boolean $cfg['ShowColumnComments']
1222 $cfg['ShowColumnComments'] = true;
1225 /*******************************************************************************
1226 * In browse mode...
1230 * Use icons instead of text for the navigation bar buttons (table browse)
1231 * ('text'|'icons'|'both')
1233 * @global string $cfg['TableNavigationLinksMode']
1235 $cfg['TableNavigationLinksMode'] = 'icons';
1238 * Defines whether a user should be displayed a "show all (records)"
1239 * button in browse mode or not.
1241 * @global boolean $cfg['ShowAll']
1243 $cfg['ShowAll'] = false;
1246 * Number of rows displayed when browsing a result set. If the result
1247 * set contains more rows, "Previous" and "Next".
1248 * Possible values: 25,50,100,250,500
1250 * @global integer $cfg['MaxRows']
1252 $cfg['MaxRows'] = 25;
1255 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
1256 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
1257 * ascending order else-)
1259 * @global string $cfg['Order']
1261 $cfg['Order'] = 'SMART';
1264 * grid editing: save edited cell(s) in browse-mode at once
1266 * @global boolean $cfg['SaveCellsAtOnce']
1268 $cfg['SaveCellsAtOnce'] = false;
1271 * grid editing: which action triggers it, or completely disable the feature
1273 * Possible values:
1274 * 'click'
1275 * 'double-click'
1276 * 'disabled'
1278 * @global string $cfg['GridEditing']
1280 $cfg['GridEditing'] = 'double-click';
1283 * Options > Relational display
1285 * Possible values:
1286 * 'K' for key value
1287 * 'D' for display column
1289 * @global string $cfg['RelationalDisplay']
1291 $cfg['RelationalDisplay'] = 'K';
1294 /*******************************************************************************
1295 * In edit mode...
1299 * disallow editing of binary fields
1300 * valid values are:
1301 * false allow editing
1302 * 'blob' allow editing except for BLOB fields
1303 * 'noblob' disallow editing except for BLOB fields
1304 * 'all' disallow editing
1306 * @global string $cfg['ProtectBinary']
1308 $cfg['ProtectBinary'] = 'blob';
1311 * Display the function fields in edit/insert mode
1313 * @global boolean $cfg['ShowFunctionFields']
1315 $cfg['ShowFunctionFields'] = true;
1318 * Display the type fields in edit/insert mode
1320 * @global boolean $cfg['ShowFieldTypesInDataEditView']
1322 $cfg['ShowFieldTypesInDataEditView'] = true;
1325 * Which editor should be used for CHAR/VARCHAR fields:
1326 * input - allows limiting of input length
1327 * textarea - allows newlines in fields
1329 * @global string $cfg['CharEditing']
1331 $cfg['CharEditing'] = 'input';
1334 * The minimum size for character input fields
1336 * @global integer $cfg['MinSizeForInputField']
1338 $cfg['MinSizeForInputField'] = 4;
1341 * The maximum size for character input fields
1343 * @global integer $cfg['MinSizeForInputField']
1345 $cfg['MaxSizeForInputField'] = 60;
1348 * How many rows can be inserted at one time
1350 * @global integer $cfg['InsertRows']
1352 $cfg['InsertRows'] = 2;
1355 * Sort order for items in a foreign-key drop-down list.
1356 * 'content' is the referenced data, 'id' is the key value.
1358 * @global array $cfg['ForeignKeyDropdownOrder']
1360 $cfg['ForeignKeyDropdownOrder'] = [
1361 'content-id',
1362 'id-content',
1366 * A drop-down list will be used if fewer items are present
1368 * @global integer $cfg['ForeignKeyMaxLimit']
1370 $cfg['ForeignKeyMaxLimit'] = 100;
1373 * Whether to disable foreign key checks while importing
1375 * @global boolean $cfg['DefaultForeignKeyChecks']
1377 $cfg['DefaultForeignKeyChecks'] = 'default';
1379 /*******************************************************************************
1380 * For the export features...
1384 * Allow for the use of zip compression (requires zip support to be enabled)
1386 * @global boolean $cfg['ZipDump']
1388 $cfg['ZipDump'] = true;
1391 * Allow for the use of gzip compression (requires zlib)
1393 * @global boolean $cfg['GZipDump']
1395 $cfg['GZipDump'] = true;
1398 * Allow for the use of bzip2 decompression (requires bz2 extension)
1400 * @global boolean $cfg['BZipDump']
1402 $cfg['BZipDump'] = true;
1405 * Will compress gzip exports on the fly without the need for much memory.
1406 * If you encounter problems with created gzip files disable this feature.
1408 * @global boolean $cfg['CompressOnFly']
1410 $cfg['CompressOnFly'] = true;
1413 /*******************************************************************************
1414 * Tabs display settings
1418 * How to display the menu tabs ('icons'|'text'|'both')
1420 * @global boolean $cfg['TabsMode']
1422 $cfg['TabsMode'] = 'both';
1425 * How to display various action links ('icons'|'text'|'both')
1427 * @global boolean $cfg['ActionLinksMode']
1429 $cfg['ActionLinksMode'] = 'both';
1432 * How many columns should be used for table display of a database?
1433 * (a value larger than 1 results in some information being hidden)
1435 * @global integer $cfg['PropertiesNumColumns']
1437 $cfg['PropertiesNumColumns'] = 1;
1440 * Possible values:
1441 * 'welcome' = the welcome page
1442 * (recommended for multiuser setups)
1443 * 'databases' = list of databases
1444 * 'status' = runtime information
1445 * 'variables' = MySQL server variables
1446 * 'privileges' = user management
1448 * @global string $cfg['DefaultTabServer']
1450 $cfg['DefaultTabServer'] = 'welcome';
1453 * Possible values:
1454 * 'structure' = tables list
1455 * 'sql' = SQL form
1456 * 'search' = search query
1457 * 'operations' = operations on database
1459 * @global string $cfg['DefaultTabDatabase']
1461 $cfg['DefaultTabDatabase'] = 'structure';
1464 * Possible values:
1465 * 'structure' = fields list
1466 * 'sql' = SQL form
1467 * 'search' = search page
1468 * 'insert' = insert row page
1469 * 'browse' = browse page
1471 * @global string $cfg['DefaultTabTable']
1473 $cfg['DefaultTabTable'] = 'browse';
1476 * Whether to display image or text or both image and text in table row
1477 * action segment. Value can be either of ``image``, ``text`` or ``both``.
1479 $cfg['RowActionType'] = 'both';
1481 /*******************************************************************************
1482 * Export defaults
1484 $cfg['Export'] = [];
1487 * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xml/yaml
1489 * @global string $cfg['Export']['format']
1491 $cfg['Export']['format'] = 'sql';
1494 * quick/custom/custom-no-form
1496 * @global string $cfg['Export']['format']
1498 $cfg['Export']['method'] = 'quick';
1501 * none/zip/gzip
1503 * @global string $cfg['Export']['compression']
1505 $cfg['Export']['compression'] = 'none';
1508 * Whether to LOCK TABLES before exporting
1510 * @global boolean $cfg['Export']['lock_tables']
1512 $cfg['Export']['lock_tables'] = false;
1515 * Whether to export databases/tables as separate files
1517 * @global boolean $cfg['Export']['as_separate_files']
1519 $cfg['Export']['as_separate_files'] = false;
1522 * @global boolean $cfg['Export']['asfile']
1524 $cfg['Export']['asfile'] = true;
1527 * @global string $cfg['Export']['charset']
1529 $cfg['Export']['charset'] = '';
1532 * @global boolean $cfg['Export']['onserver']
1534 $cfg['Export']['onserver'] = false;
1537 * @global boolean $cfg['Export']['onserver_overwrite']
1539 $cfg['Export']['onserver_overwrite'] = false;
1542 * @global boolean $cfg['Export']['quick_export_onserver']
1544 $cfg['Export']['quick_export_onserver'] = false;
1547 * @global boolean $cfg['Export']['quick_export_onserver_overwrite']
1549 $cfg['Export']['quick_export_onserver_overwrite'] = false;
1552 * @global boolean $cfg['Export']['remember_file_template']
1554 $cfg['Export']['remember_file_template'] = true;
1557 * @global string $cfg['Export']['file_template_table']
1559 $cfg['Export']['file_template_table'] = '@TABLE@';
1562 * @global string $cfg['Export']['file_template_database']
1564 $cfg['Export']['file_template_database'] = '@DATABASE@';
1567 * @global string $cfg['Export']['file_template_server']
1569 $cfg['Export']['file_template_server'] = '@SERVER@';
1572 * @global string $cfg['Export']['codegen_structure_or_data']
1574 $cfg['Export']['codegen_structure_or_data'] = 'data';
1577 * @global $cfg['Export']['codegen_format']
1579 $cfg['Export']['codegen_format'] = 0;
1582 * @global boolean $cfg['Export']['ods_columns']
1584 $cfg['Export']['ods_columns'] = false;
1587 * @global string $cfg['Export']['ods_null']
1589 $cfg['Export']['ods_null'] = 'NULL';
1592 * @global string $cfg['Export']['odt_structure_or_data']
1594 $cfg['Export']['odt_structure_or_data'] = 'structure_and_data';
1597 * @global boolean $cfg['Export']['odt_columns']
1599 $cfg['Export']['odt_columns'] = true;
1602 * @global boolean $cfg['Export']['odt_relation']
1604 $cfg['Export']['odt_relation'] = true;
1607 * @global boolean $cfg['Export']['odt_comments']
1609 $cfg['Export']['odt_comments'] = true;
1612 * @global boolean $cfg['Export']['odt_mime']
1614 $cfg['Export']['odt_mime'] = true;
1617 * @global string $cfg['Export']['odt_null']
1619 $cfg['Export']['odt_null'] = 'NULL';
1622 * @global boolean $cfg['Export']['htmlword_structure_or_data']
1624 $cfg['Export']['htmlword_structure_or_data'] = 'structure_and_data';
1627 * @global boolean $cfg['Export']['htmlword_columns']
1629 $cfg['Export']['htmlword_columns'] = false;
1632 * @global string $cfg['Export']['htmlword_null']
1634 $cfg['Export']['htmlword_null'] = 'NULL';
1637 * @global string $cfg['Export']['texytext_structure_or_data']
1639 $cfg['Export']['texytext_structure_or_data'] = 'structure_and_data';
1642 * @global boolean $cfg['Export']['texytext_columns']
1644 $cfg['Export']['texytext_columns'] = false;
1647 * @global string $cfg['Export']['texytext_null']
1649 $cfg['Export']['texytext_null'] = 'NULL';
1652 * @global boolean $cfg['Export']['csv_columns']
1654 $cfg['Export']['csv_columns'] = false;
1657 * @global string $cfg['Export']['csv_structure_or_data']
1659 $cfg['Export']['csv_structure_or_data'] = 'data';
1662 * @global string $cfg['Export']['csv_null']
1664 $cfg['Export']['csv_null'] = 'NULL';
1667 * @global string $cfg['Export']['csv_separator']
1669 $cfg['Export']['csv_separator'] = ',';
1672 * @global string $cfg['Export']['csv_enclosed']
1674 $cfg['Export']['csv_enclosed'] = '"';
1677 * @global string $cfg['Export']['csv_escaped']
1679 $cfg['Export']['csv_escaped'] = '"';
1682 * @global string $cfg['Export']['csv_terminated']
1684 $cfg['Export']['csv_terminated'] = 'AUTO';
1687 * @global string $cfg['Export']['csv_removeCRLF']
1689 $cfg['Export']['csv_removeCRLF'] = false;
1692 * @global boolean $cfg['Export']['excel_columns']
1694 $cfg['Export']['excel_columns'] = true;
1697 * @global string $cfg['Export']['excel_null']
1699 $cfg['Export']['excel_null'] = 'NULL';
1702 * win/mac
1704 * @global string $cfg['Export']['excel_edition']
1706 $cfg['Export']['excel_edition'] = 'win';
1709 * @global string $cfg['Export']['excel_removeCRLF']
1711 $cfg['Export']['excel_removeCRLF'] = false;
1714 * @global string $cfg['Export']['excel_structure_or_data']
1716 $cfg['Export']['excel_structure_or_data'] = 'data';
1719 * @global string $cfg['Export']['latex_structure_or_data']
1721 $cfg['Export']['latex_structure_or_data'] = 'structure_and_data';
1724 * @global boolean $cfg['Export']['latex_columns']
1726 $cfg['Export']['latex_columns'] = true;
1729 * @global boolean $cfg['Export']['latex_relation']
1731 $cfg['Export']['latex_relation'] = true;
1734 * @global boolean $cfg['Export']['latex_comments']
1736 $cfg['Export']['latex_comments'] = true;
1739 * @global boolean $cfg['Export']['latex_mime']
1741 $cfg['Export']['latex_mime'] = true;
1744 * @global string $cfg['Export']['latex_null']
1746 $cfg['Export']['latex_null'] = '\textit{NULL}';
1749 * @global boolean $cfg['Export']['latex_caption']
1751 $cfg['Export']['latex_caption'] = true;
1754 * @global string $cfg['Export']['latex_structure_caption']
1756 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1759 * @global string $cfg['Export']['latex_structure_continued_caption']
1761 $cfg['Export']['latex_structure_continued_caption']
1762 = 'strLatexStructure strLatexContinued';
1765 * @global string $cfg['Export']['latex_data_caption']
1767 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1770 * @global string $cfg['Export']['latex_data_continued_caption']
1772 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1775 * @global string $cfg['Export']['latex_data_label']
1777 $cfg['Export']['latex_data_label'] = 'tab:@TABLE@-data';
1780 * @global string $cfg['Export']['latex_structure_label']
1782 $cfg['Export']['latex_structure_label'] = 'tab:@TABLE@-structure';
1785 * @global string $cfg['Export']['mediawiki_structure_or_data']
1787 $cfg['Export']['mediawiki_structure_or_data'] = 'data';
1790 * @global boolean $cfg['Export']['mediawiki_caption']
1792 $cfg['Export']['mediawiki_caption'] = true;
1795 * @global boolean $cfg['Export']['mediawiki_headers']
1797 $cfg['Export']['mediawiki_headers'] = true;
1800 * @global string $cfg['Export']['ods_structure_or_data']
1802 $cfg['Export']['ods_structure_or_data'] = 'data';
1805 * @global string $cfg['Export']['pdf_structure_or_data']
1807 $cfg['Export']['pdf_structure_or_data'] = 'data';
1810 * @global string $cfg['Export']['phparray_structure_or_data']
1812 $cfg['Export']['phparray_structure_or_data'] = 'data';
1815 * @global string $cfg['Export']['json_structure_or_data']
1817 $cfg['Export']['json_structure_or_data'] = 'data';
1820 * Export functions
1822 * @global string $cfg['Export']['json_pretty_print']
1824 $cfg['Export']['json_pretty_print'] = false;
1827 * Export functions
1829 * @global string $cfg['Export']['json_unicode']
1831 $cfg['Export']['json_unicode'] = true;
1834 * @global string $cfg['Export']['sql_structure_or_data']
1836 $cfg['Export']['sql_structure_or_data'] = 'structure_and_data';
1839 * @global string $cfg['Export']['sql_compatibility']
1841 $cfg['Export']['sql_compatibility'] = 'NONE';
1844 * Whether to include comments in SQL export.
1846 * @global string $cfg['Export']['sql_include_comments']
1848 $cfg['Export']['sql_include_comments'] = true;
1851 * @global boolean $cfg['Export']['sql_disable_fk']
1853 $cfg['Export']['sql_disable_fk'] = false;
1856 * @global boolean $cfg['Export']['sql_views_as_tables']
1858 $cfg['Export']['sql_views_as_tables'] = false;
1861 * @global boolean $cfg['Export']['sql_metadata']
1863 $cfg['Export']['sql_metadata'] = false;
1866 * @global boolean $cfg['Export']['sql_use_transaction']
1868 $cfg['Export']['sql_use_transaction'] = true;
1871 * @global boolean $cfg['Export']['sql_create_database']
1873 $cfg['Export']['sql_create_database'] = false;
1876 * @global boolean $cfg['Export']['sql_drop_database']
1878 $cfg['Export']['sql_drop_database'] = false;
1881 * @global boolean $cfg['Export']['sql_drop_table']
1883 $cfg['Export']['sql_drop_table'] = false;
1886 * true by default for correct behavior when dealing with exporting
1887 * of VIEWs and the stand-in table
1889 * @global boolean $cfg['Export']['sql_if_not_exists']
1891 $cfg['Export']['sql_if_not_exists'] = false;
1894 * @global boolean $cfg['Export']['sql_view_current_user']
1896 $cfg['Export']['sql_view_current_user'] = false;
1899 * @global boolean $cfg['Export']['sql_or_replace']
1901 $cfg['Export']['sql_or_replace_view'] = false;
1904 * @global boolean $cfg['Export']['sql_procedure_function']
1906 $cfg['Export']['sql_procedure_function'] = true;
1909 * @global boolean $cfg['Export']['sql_create_table']
1911 $cfg['Export']['sql_create_table'] = true;
1914 * @global boolean $cfg['Export']['sql_create_view']
1916 $cfg['Export']['sql_create_view'] = true;
1919 * @global boolean $cfg['Export']['sql_create_trigger']
1921 $cfg['Export']['sql_create_trigger'] = true;
1924 * @global boolean $cfg['Export']['sql_auto_increment']
1926 $cfg['Export']['sql_auto_increment'] = true;
1929 * @global boolean $cfg['Export']['sql_backquotes']
1931 $cfg['Export']['sql_backquotes'] = true;
1934 * @global boolean $cfg['Export']['sql_dates']
1936 $cfg['Export']['sql_dates'] = false;
1939 * @global boolean $cfg['Export']['sql_relation']
1941 $cfg['Export']['sql_relation'] = false;
1944 * @global boolean $cfg['Export']['sql_truncate']
1946 $cfg['Export']['sql_truncate'] = false;
1949 * @global boolean $cfg['Export']['sql_delayed']
1951 $cfg['Export']['sql_delayed'] = false;
1954 * @global boolean $cfg['Export']['sql_ignore']
1956 $cfg['Export']['sql_ignore'] = false;
1959 * Export time in UTC.
1961 * @global boolean $cfg['Export']['sql_utc_time']
1963 $cfg['Export']['sql_utc_time'] = true;
1966 * @global boolean $cfg['Export']['sql_hex_for_binary']
1968 $cfg['Export']['sql_hex_for_binary'] = true;
1971 * insert/update/replace
1973 * @global string $cfg['Export']['sql_type']
1975 $cfg['Export']['sql_type'] = 'INSERT';
1978 * @global integer $cfg['Export']['sql_max_query_size']
1980 $cfg['Export']['sql_max_query_size'] = 50000;
1983 * @global boolean $cfg['Export']['sql_mime']
1985 $cfg['Export']['sql_mime'] = false;
1988 * \n is replaced by new line
1990 * @global string $cfg['Export']['sql_header_comment']
1992 $cfg['Export']['sql_header_comment'] = '';
1995 * Whether to use complete inserts, extended inserts, both, or neither
1997 * @global string $cfg['Export']['sql_insert_syntax']
1999 $cfg['Export']['sql_insert_syntax'] = 'both';
2002 * @global string $cfg['Export']['pdf_report_title']
2004 $cfg['Export']['pdf_report_title'] = '';
2007 * @global string $cfg['Export']['xml_structure_or_data']
2009 $cfg['Export']['xml_structure_or_data'] = 'data';
2012 * Export schema for each structure
2014 * @global string $cfg['Export']['xml_export_struc']
2016 $cfg['Export']['xml_export_struc'] = true;
2019 * Export events
2021 * @global string $cfg['Export']['xml_export_events']
2023 $cfg['Export']['xml_export_events'] = true;
2026 * Export functions
2028 * @global string $cfg['Export']['xml_export_functions']
2030 $cfg['Export']['xml_export_functions'] = true;
2033 * Export procedures
2035 * @global string $cfg['Export']['xml_export_procedures']
2037 $cfg['Export']['xml_export_procedures'] = true;
2040 * Export schema for each table
2042 * @global string $cfg['Export']['xml_export_tables']
2044 $cfg['Export']['xml_export_tables'] = true;
2047 * Export triggers
2049 * @global string $cfg['Export']['xml_export_triggers']
2051 $cfg['Export']['xml_export_triggers'] = true;
2054 * Export views
2056 * @global string $cfg['Export']['xml_export_views']
2058 $cfg['Export']['xml_export_views'] = true;
2061 * Export contents data
2063 * @global string $cfg['Export']['xml_export_contents']
2065 $cfg['Export']['xml_export_contents'] = true;
2068 * @global string $cfg['Export']['yaml_structure_or_data']
2070 $cfg['Export']['yaml_structure_or_data'] = 'data';
2072 /*******************************************************************************
2073 * Import defaults
2075 $cfg['Import'] = [];
2078 * @global string $cfg['Import']['format']
2080 $cfg['Import']['format'] = 'sql';
2083 * Default charset for import.
2085 * @global string $cfg['Import']['charset']
2087 $cfg['Import']['charset'] = '';
2090 * @global boolean $cfg['Import']['allow_interrupt']
2092 $cfg['Import']['allow_interrupt'] = true;
2095 * @global integer $cfg['Import']['skip_queries']
2097 $cfg['Import']['skip_queries'] = 0;
2100 * @global string $cfg['Import']['sql_compatibility']
2102 $cfg['Import']['sql_compatibility'] = 'NONE';
2105 * @global string $cfg['Import']['sql_no_auto_value_on_zero']
2107 $cfg['Import']['sql_no_auto_value_on_zero'] = true;
2110 * @global string $cfg['Import']['sql_read_as_multibytes']
2112 $cfg['Import']['sql_read_as_multibytes'] = false;
2115 * @global boolean $cfg['Import']['csv_replace']
2117 $cfg['Import']['csv_replace'] = false;
2120 * @global boolean $cfg['Import']['csv_ignore']
2122 $cfg['Import']['csv_ignore'] = false;
2125 * @global string $cfg['Import']['csv_terminated']
2127 $cfg['Import']['csv_terminated'] = ',';
2130 * @global string $cfg['Import']['csv_enclosed']
2132 $cfg['Import']['csv_enclosed'] = '"';
2135 * @global string $cfg['Import']['csv_escaped']
2137 $cfg['Import']['csv_escaped'] = '"';
2140 * @global string $cfg['Import']['csv_new_line']
2142 $cfg['Import']['csv_new_line'] = 'auto';
2145 * @global string $cfg['Import']['csv_columns']
2147 $cfg['Import']['csv_columns'] = '';
2150 * @global string $cfg['Import']['csv_col_names']
2152 $cfg['Import']['csv_col_names'] = false;
2155 * @global boolean $cfg['Import']['ldi_replace']
2157 $cfg['Import']['ldi_replace'] = false;
2160 * @global boolean $cfg['Import']['ldi_ignore']
2162 $cfg['Import']['ldi_ignore'] = false;
2165 * @global string $cfg['Import']['ldi_terminated']
2167 $cfg['Import']['ldi_terminated'] = ';';
2170 * @global string $cfg['Import']['ldi_enclosed']
2172 $cfg['Import']['ldi_enclosed'] = '"';
2175 * @global string $cfg['Import']['ldi_escaped']
2177 $cfg['Import']['ldi_escaped'] = '\\';
2180 * @global string $cfg['Import']['ldi_new_line']
2182 $cfg['Import']['ldi_new_line'] = 'auto';
2185 * @global string $cfg['Import']['ldi_columns']
2187 $cfg['Import']['ldi_columns'] = '';
2190 * 'auto' for auto-detection, true or false for forcing
2192 * @global string $cfg['Import']['ldi_local_option']
2194 $cfg['Import']['ldi_local_option'] = 'auto';
2197 * @global string $cfg['Import']['ods_col_names']
2199 $cfg['Import']['ods_col_names'] = false;
2202 * @global string $cfg['Import']['ods_empty_rows']
2204 $cfg['Import']['ods_empty_rows'] = true;
2207 * @global string $cfg['Import']['ods_recognize_percentages']
2209 $cfg['Import']['ods_recognize_percentages'] = true;
2212 * @global string $cfg['Import']['ods_recognize_currency']
2214 $cfg['Import']['ods_recognize_currency'] = true;
2216 /*******************************************************************************
2217 * Schema export defaults
2219 $cfg['Schema'] = [];
2222 * pdf/eps/dia/svg
2224 * @global string $cfg['Schema']['format']
2226 $cfg['Schema']['format'] = 'pdf';
2229 * @global string $cfg['Schema']['pdf_show_color']
2231 $cfg['Schema']['pdf_show_color'] = true;
2234 * @global string $cfg['Schema']['pdf_show_keys']
2236 $cfg['Schema']['pdf_show_keys'] = false;
2239 * @global string $cfg['Schema']['pdf_all_tables_same_width']
2241 $cfg['Schema']['pdf_all_tables_same_width'] = false;
2244 * L/P
2246 * @global string $cfg['Schema']['pdf_orientation']
2248 $cfg['Schema']['pdf_orientation'] = 'L';
2251 * @global string $cfg['Schema']['pdf_paper']
2253 $cfg['Schema']['pdf_paper'] = 'A4';
2256 * @global string $cfg['Schema']['pdf_show_grid']
2258 $cfg['Schema']['pdf_show_grid'] = false;
2261 * @global string $cfg['Schema']['pdf_with_doc']
2263 $cfg['Schema']['pdf_with_doc'] = true;
2266 * @global string $cfg['Schema']['pdf_table_order']
2268 $cfg['Schema']['pdf_table_order'] = '';
2271 * @global string $cfg['Schema']['dia_show_color']
2273 $cfg['Schema']['dia_show_color'] = true;
2276 * @global string $cfg['Schema']['dia_show_keys']
2278 $cfg['Schema']['dia_show_keys'] = false;
2281 * L/P
2283 * @global string $cfg['Schema']['dia_orientation']
2285 $cfg['Schema']['dia_orientation'] = 'L';
2288 * @global string $cfg['Schema']['dia_paper']
2290 $cfg['Schema']['dia_paper'] = 'A4';
2293 * @global string $cfg['Schema']['eps_show_color']
2295 $cfg['Schema']['eps_show_color'] = true;
2298 * @global string $cfg['Schema']['eps_show_keys']
2300 $cfg['Schema']['eps_show_keys'] = false;
2303 * @global string $cfg['Schema']['eps_all_tables_same_width']
2305 $cfg['Schema']['eps_all_tables_same_width'] = false;
2308 * L/P
2310 * @global string $cfg['Schema']['eps_orientation']
2312 $cfg['Schema']['eps_orientation'] = 'L';
2315 * @global string $cfg['Schema']['svg_show_color']
2317 $cfg['Schema']['svg_show_color'] = true;
2320 * @global string $cfg['Schema']['svg_show_keys']
2322 $cfg['Schema']['svg_show_keys'] = false;
2325 * @global string $cfg['Schema']['svg_all_tables_same_width']
2327 $cfg['Schema']['svg_all_tables_same_width'] = false;
2329 /*******************************************************************************
2330 * PDF options
2334 * @global array $cfg['PDFPageSizes']
2336 $cfg['PDFPageSizes'] = [
2337 'A3',
2338 'A4',
2339 'A5',
2340 'letter',
2341 'legal',
2345 * @global string $cfg['PDFDefaultPageSize']
2347 $cfg['PDFDefaultPageSize'] = 'A4';
2350 /*******************************************************************************
2351 * Language and character set conversion settings
2355 * Default language to use, if not browser-defined or user-defined
2357 * @global string $cfg['DefaultLang']
2359 $cfg['DefaultLang'] = 'en';
2362 * Default connection collation
2364 * @global string $cfg['DefaultConnectionCollation']
2366 $cfg['DefaultConnectionCollation'] = 'utf8mb4_unicode_ci';
2369 * Force: always use this language, e.g. 'en'
2371 * @global string $cfg['Lang']
2373 $cfg['Lang'] = '';
2376 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
2377 * English only
2379 * @global string $cfg['FilterLanguages']
2381 $cfg['FilterLanguages'] = '';
2384 * You can select here which functions will be used for character set conversion.
2385 * Possible values are:
2386 * auto - automatically use available one (first is tested iconv, then
2387 * recode)
2388 * iconv - use iconv or libiconv functions
2389 * recode - use recode_string function
2390 * mb - use mbstring extension
2391 * none - disable encoding conversion
2393 * @global string $cfg['RecodingEngine']
2395 $cfg['RecodingEngine'] = 'auto';
2398 * Specify some parameters for iconv used in character set conversion. See iconv
2399 * documentation for details:
2400 * https://www.gnu.org/savannah-checkouts/gnu/libiconv/documentation/libiconv-1.15/iconv_open.3.html
2402 * @global string $cfg['IconvExtraParams']
2404 $cfg['IconvExtraParams'] = '//TRANSLIT';
2407 * Available character sets for MySQL conversion. currently contains all which could
2408 * be found in lang/* files and few more.
2409 * Character sets will be shown in same order as here listed, so if you frequently
2410 * use some of these move them to the top.
2412 * @global array $cfg['AvailableCharsets']
2414 $cfg['AvailableCharsets'] = [
2415 'iso-8859-1',
2416 'iso-8859-2',
2417 'iso-8859-3',
2418 'iso-8859-4',
2419 'iso-8859-5',
2420 'iso-8859-6',
2421 'iso-8859-7',
2422 'iso-8859-8',
2423 'iso-8859-9',
2424 'iso-8859-10',
2425 'iso-8859-11',
2426 'iso-8859-12',
2427 'iso-8859-13',
2428 'iso-8859-14',
2429 'iso-8859-15',
2430 'windows-1250',
2431 'windows-1251',
2432 'windows-1252',
2433 'windows-1256',
2434 'windows-1257',
2435 'koi8-r',
2436 'big5',
2437 'gb2312',
2438 'utf-16',
2439 'utf-8',
2440 'utf-7',
2441 'x-user-defined',
2442 'euc-jp',
2443 'ks_c_5601-1987',
2444 'tis-620',
2445 'SHIFT_JIS',
2446 'SJIS',
2447 'SJIS-win',
2451 /*******************************************************************************
2452 * Customization & design
2454 * The graphical settings are now located in themes/theme-name/scss/_variables.scss
2458 * enable the left panel pointer
2460 * @global boolean $cfg['NavigationTreePointerEnable']
2462 $cfg['NavigationTreePointerEnable'] = true;
2465 * enable the browse pointer
2467 * @global boolean $cfg['BrowsePointerEnable']
2469 $cfg['BrowsePointerEnable'] = true;
2472 * enable the browse marker
2474 * @global boolean $cfg['BrowseMarkerEnable']
2476 $cfg['BrowseMarkerEnable'] = true;
2479 * textarea size (columns) in edit mode
2480 * (this value will be emphasized (*2) for SQL
2481 * query textareas and (*1.25) for query window)
2483 * @global integer $cfg['TextareaCols']
2485 $cfg['TextareaCols'] = 40;
2488 * textarea size (rows) in edit mode
2490 * @global integer $cfg['TextareaRows']
2492 $cfg['TextareaRows'] = 15;
2495 * double size of textarea size for LONGTEXT columns
2497 * @global boolean $cfg['LongtextDoubleTextarea']
2499 $cfg['LongtextDoubleTextarea'] = true;
2502 * auto-select when clicking in the textarea of the query-box
2504 * @global boolean $cfg['TextareaAutoSelect']
2506 $cfg['TextareaAutoSelect'] = false;
2509 * textarea size (columns) for CHAR/VARCHAR
2511 * @global integer $cfg['CharTextareaCols']
2513 $cfg['CharTextareaCols'] = 40;
2516 * textarea size (rows) for CHAR/VARCHAR
2518 * @global integer $cfg['CharTextareaRows']
2520 $cfg['CharTextareaRows'] = 2;
2523 * Max field data length in browse mode for all non-numeric fields
2525 * @global integer $cfg['LimitChars']
2527 $cfg['LimitChars'] = 50;
2530 * Where to show the edit/copy/delete links in browse mode
2531 * Possible values are 'left', 'right', 'both' and 'none'.
2533 * @global string $cfg['RowActionLinks']
2535 $cfg['RowActionLinks'] = 'left';
2538 * Whether to show row links (Edit, Copy, Delete) and checkboxes for
2539 * multiple row operations even when the selection does not have a unique key.
2541 * @global boolean $cfg['RowActionLinksWithoutUnique']
2543 $cfg['RowActionLinksWithoutUnique'] = false;
2546 * Default sort order by primary key.
2548 * @global string $cfg['TablePrimaryKeyOrder']
2550 $cfg['TablePrimaryKeyOrder'] = 'NONE';
2553 * remember the last way a table sorted
2555 * @global string $cfg['RememberSorting']
2557 $cfg['RememberSorting'] = true;
2560 * shows column comments in 'browse' mode.
2562 * @global boolean $cfg['ShowBrowseComments']
2564 $cfg['ShowBrowseComments'] = true;
2567 * shows column comments in 'table property' mode.
2569 * @global boolean $cfg['ShowPropertyComments']
2571 $cfg['ShowPropertyComments'] = true;
2574 * repeat header names every X cells? (0 = deactivate)
2576 * @global integer $cfg['RepeatCells']
2578 $cfg['RepeatCells'] = 100;
2581 * Set to true if you want DB-based query history.If false, this utilizes
2582 * JS-routines to display query history (lost by window close)
2584 * @global boolean $cfg['QueryHistoryDB']
2586 $cfg['QueryHistoryDB'] = false;
2589 * When using DB-based query history, how many entries should be kept?
2591 * @global integer $cfg['QueryHistoryMax']
2593 $cfg['QueryHistoryMax'] = 25;
2596 * Use MIME-Types (stored in column comments table) for
2598 * @global boolean $cfg['BrowseMIME']
2600 $cfg['BrowseMIME'] = true;
2603 * When approximate count < this, PMA will get exact count for table rows.
2605 * @global integer $cfg['MaxExactCount']
2607 $cfg['MaxExactCount'] = 50000;
2610 * Zero means that no row count is done for views; see the doc
2612 * @global integer $cfg['MaxExactCountViews']
2614 $cfg['MaxExactCountViews'] = 0;
2617 * Sort table and database in natural order
2619 * @global boolean $cfg['NaturalOrder']
2621 $cfg['NaturalOrder'] = true;
2624 * Initial state for sliders
2625 * (open | closed | disabled)
2627 * @global string $cfg['InitialSlidersState']
2629 $cfg['InitialSlidersState'] = 'closed';
2632 * User preferences: disallow these settings
2633 * For possible setting names look in libraries/config/user_preferences.forms.php
2635 * @global array $cfg['UserprefsDisallow']
2637 $cfg['UserprefsDisallow'] = [];
2640 * User preferences: enable the Developer tab
2642 $cfg['UserprefsDeveloperTab'] = false;
2644 /*******************************************************************************
2645 * Window title settings
2649 * title of browser window when a table is selected
2651 * @global string $cfg['TitleTable']
2653 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2656 * title of browser window when a database is selected
2658 * @global string $cfg['TitleDatabase']
2660 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2663 * title of browser window when a server is selected
2665 * @global string $cfg['TitleServer']
2667 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2670 * title of browser window when nothing is selected
2672 * @global string $cfg['TitleDefault']
2674 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2677 /*******************************************************************************
2678 * theme manager
2682 * if you want to use selectable themes and if ThemesPath not empty
2683 * set it to true, else set it to false (default is false);
2685 * @global boolean $cfg['ThemeManager']
2687 $cfg['ThemeManager'] = true;
2690 * set up default theme, you can set up here an valid
2691 * path to themes or 'original' for the original pma-theme
2693 * @global string $cfg['ThemeDefault']
2695 $cfg['ThemeDefault'] = 'pmahomme';
2698 * allow different theme for each configured server
2700 * @global boolean $cfg['ThemePerServer']
2702 $cfg['ThemePerServer'] = false;
2706 * Default query for table
2708 * @global string $cfg['DefaultQueryTable']
2710 $cfg['DefaultQueryTable'] = 'SELECT * FROM @TABLE@ WHERE 1';
2713 * Default query for database
2715 * @global string $cfg['DefaultQueryDatabase']
2717 $cfg['DefaultQueryDatabase'] = '';
2720 /*******************************************************************************
2721 * SQL Query box settings
2722 * These are the links display in all of the SQL Query boxes
2724 * @global array $cfg['SQLQuery']
2726 $cfg['SQLQuery'] = [];
2729 * Display an "Edit" link on the results page to change a query
2731 * @global boolean $cfg['SQLQuery']['Edit']
2733 $cfg['SQLQuery']['Edit'] = true;
2736 * Display an "Explain SQL" link on the results page
2738 * @global boolean $cfg['SQLQuery']['Explain']
2740 $cfg['SQLQuery']['Explain'] = true;
2743 * Display a "Create PHP code" link on the results page to wrap a query in PHP
2745 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2747 $cfg['SQLQuery']['ShowAsPHP'] = true;
2750 * Display a "Refresh" link on the results page
2752 * @global boolean $cfg['SQLQuery']['Refresh']
2754 $cfg['SQLQuery']['Refresh'] = true;
2757 * Enables autoComplete for table & column names in SQL queries
2759 * default = 'true'
2761 $cfg['EnableAutocompleteForTablesAndColumns'] = true;
2764 /*******************************************************************************
2765 * Web server upload/save/import directories
2769 * Directory for uploaded files that can be executed by phpMyAdmin.
2770 * For example './upload'. Leave empty for no upload directory support.
2771 * Use %u for username inclusion.
2773 * @global string $cfg['UploadDir']
2775 $cfg['UploadDir'] = '';
2778 * Directory where phpMyAdmin can save exported data on server.
2779 * For example './save'. Leave empty for no save directory support.
2780 * Use %u for username inclusion.
2782 * @global string $cfg['SaveDir']
2784 $cfg['SaveDir'] = '';
2787 * Directory where phpMyAdmin can save temporary files.
2789 * @global string $cfg['TempDir']
2791 if (defined('TEMP_DIR')) {
2792 $cfg['TempDir'] = TEMP_DIR;
2793 } else {
2794 $cfg['TempDir'] = ROOT_PATH . 'tmp' . DIRECTORY_SEPARATOR;
2799 * Misc. settings
2803 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2804 * which is the only safe way to determine GD version.
2806 * @global string $cfg['GD2Available']
2808 $cfg['GD2Available'] = 'auto';
2811 * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
2813 * @global array $cfg['TrustedProxies']
2815 $cfg['TrustedProxies'] = [];
2818 * We normally check the permissions on the configuration file to ensure
2819 * it's not world writable. However, phpMyAdmin could be installed on
2820 * a NTFS filesystem mounted on a non-Windows server, in which case the
2821 * permissions seems wrong but in fact cannot be detected. In this case
2822 * a sysadmin would set the following to false.
2824 $cfg['CheckConfigurationPermissions'] = true;
2827 * Limit for length of URL in links. When length would be above this limit, it
2828 * is replaced by form with button.
2829 * This is required as some web servers (IIS) have problems with long URLs.
2830 * The recommended limit is 2000
2831 * (see https://www.boutell.com/newfaq/misc/urllength.html) but we put
2832 * 1000 to accommodate Suhosin, see bug #3358750.
2834 $cfg['LinkLengthLimit'] = 1000;
2837 * Additional string to allow in CSP headers.
2839 $cfg['CSPAllow'] = '';
2842 * Disable the table maintenance mass operations, like optimizing or
2843 * repairing the selected tables of a database. An accidental execution
2844 * of such a maintenance task can enormously slow down a bigger database.
2846 $cfg['DisableMultiTableMaintenance'] = false;
2849 * Whether or not to query the user before sending the error report to
2850 * the phpMyAdmin team when a JavaScript error occurs
2852 * Available options
2853 * (ask | always | never)
2855 * @global string $cfg['SendErrorReports']
2857 $cfg['SendErrorReports'] = 'ask';
2860 * Whether Enter or Ctrl+Enter executes queries in the console.
2862 * @global boolean $cfg['ConsoleEnterExecutes']
2864 $cfg['ConsoleEnterExecutes'] = false;
2867 * Zero Configuration mode.
2869 * @global boolean $cfg['ZeroConf']
2871 $cfg['ZeroConf'] = true;
2873 /*******************************************************************************
2874 * Developers ONLY!
2876 * @global array $cfg['DBG']
2878 $cfg['DBG'] = [];
2881 * Output executed queries and their execution times
2883 * @global boolean $cfg['DBG']['sql']
2885 $cfg['DBG']['sql'] = false;
2888 * Log executed queries and their execution times to syslog
2890 * @global boolean $cfg['DBG']['sqllog']
2892 $cfg['DBG']['sqllog'] = false;
2895 * Enable to let server present itself as demo server.
2897 * @global boolean $cfg['DBG']['demo']
2899 $cfg['DBG']['demo'] = false;
2902 * Enable Simple two-factor authentication
2904 * @global boolean $cfg['DBG']['simple2fa']
2906 $cfg['DBG']['simple2fa'] = false;
2909 * Sets the working environment
2911 * This only needs to be changed when you are developing phpMyAdmin itself.
2912 * The development mode may display debug information in some places.
2914 * Possible values are 'production' or 'development'
2916 $cfg['environment'] = 'production';
2918 /*******************************************************************************
2919 * MySQL settings
2923 * Default functions for above defined groups
2925 * @global array $cfg['DefaultFunctions']
2927 $cfg['DefaultFunctions'] = [
2928 'FUNC_CHAR' => '',
2929 'FUNC_DATE' => '',
2930 'FUNC_NUMBER' => '',
2931 'FUNC_SPATIAL' => 'GeomFromText',
2932 'FUNC_UUID' => 'UUID',
2933 'first_timestamp' => 'NOW',
2937 * Max rows retrieved for zoom search
2939 $cfg['maxRowPlotLimit'] = 500;
2942 * Show Git revision if applicable
2944 * @global boolean $cfg['ShowGitRevision']
2946 $cfg['ShowGitRevision'] = true;
2949 * MySQL minimal version required
2951 * @global array $cfg['MysqlMinVersion']
2953 $cfg['MysqlMinVersion'] = [
2954 'internal' => 50500,
2955 'human' => '5.5.0',
2959 * Disable shortcuts
2961 * @global array $cfg['DisableShortcutKeys']
2963 $cfg['DisableShortcutKeys'] = false;
2966 * Console configuration
2968 * This is mostly meant for user preferences.
2970 $cfg['Console'] = [
2971 'StartHistory' => false,
2972 'AlwaysExpand' => false,
2973 'CurrentQuery' => true,
2974 'EnterExecutes' => false,
2975 'DarkTheme' => false,
2976 'Mode' => 'info',
2977 'Height' => 92,
2978 'GroupQueries' => false,
2979 'OrderBy' => 'exec',
2980 'Order' => 'asc',
2984 /*******************************************************************************
2985 * Default options for transformations
2989 * Initialize default transformations array
2991 * @global array $cfg['DefaultTransformations']
2993 $cfg['DefaultTransformations'] = [];
2996 * Default transformations for Substring
2998 * @global array $cfg['DefaultTransformations']['Substring']
3000 $cfg['DefaultTransformations']['Substring'] = [
3002 'all',
3003 '…',
3007 * Default transformations for Bool2Text
3009 * @global array $cfg['DefaultTransformations']['Bool2Text']
3011 $cfg['DefaultTransformations']['Bool2Text'] = [
3012 'T',
3013 'F',
3017 * Default transformations for External
3019 * @global array $cfg['DefaultTransformations']['External']
3021 $cfg['DefaultTransformations']['External'] = [
3023 '-f /dev/null -i -wrap -q',
3029 * Default transformations for PreApPend
3031 * @global array $cfg['DefaultTransformations']['PreApPend']
3033 $cfg['DefaultTransformations']['PreApPend'] = [
3039 * Default transformations for Hex
3041 * @global array $cfg['DefaultTransformations']['Hex']
3043 $cfg['DefaultTransformations']['Hex'] = ['2'];
3046 * Default transformations for DateFormat
3048 * @global array $cfg['DefaultTransformations']['DateFormat']
3050 $cfg['DefaultTransformations']['DateFormat'] = [
3053 'local',
3057 * Set default for FirstDayOfCalendar
3059 * @global integer $cfg['FirstDayOfCalendar']
3061 $cfg['FirstDayOfCalendar'] = 0;
3064 * Default transformations for Inline
3066 * @global array $cfg['DefaultTransformations']['Inline']
3068 $cfg['DefaultTransformations']['Inline'] = [
3069 '100',
3070 100,
3072 $cfg['DefaultTransformations']['Inline']['wrapper_link'] = null;
3073 $cfg['DefaultTransformations']['Inline']['wrapper_params'] = [];
3076 * Default transformations for TextImageLink
3078 * @global array $cfg['DefaultTransformations']['TextImageLink']
3080 $cfg['DefaultTransformations']['TextImageLink'] = [
3081 null,
3082 100,
3087 * Default transformations for TextLink
3089 * @global array $cfg['DefaultTransformations']['TextLink']
3091 $cfg['DefaultTransformations']['TextLink'] = [
3092 null,
3093 null,
3094 null,