Always use svg display in gis editor (#18182)
[phpmyadmin.git] / libraries / config.default.php
bloba399bb4d79008fbfb81511e6e8168d7607432a4b
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']
37 * @psalm-suppress PossiblyUndefinedGlobalVariable
39 $cfg['PmaAbsoluteUri'] = '';
41 /**
42 * Configure authentication logging destination
44 * @global string $cfg['AuthLog']
46 $cfg['AuthLog'] = 'auto';
48 /**
49 * Whether to log successful authentication attempts
51 * @global boolean $cfg['AuthLogSuccess']
53 $cfg['AuthLogSuccess'] = false;
55 /**
56 * Disable the default warning that is displayed on the DB Details Structure page if
57 * any of the required Tables for the configuration storage could not be found
59 * @global boolean $cfg['PmaNoRelation_DisableWarning']
61 $cfg['PmaNoRelation_DisableWarning'] = false;
63 /**
64 * Disable the default warning that is displayed if Suhosin is detected
66 * @global boolean $cfg['SuhosinDisableWarning']
68 $cfg['SuhosinDisableWarning'] = false;
70 /**
71 * Disable the default warning that is displayed if session.gc_maxlifetime
72 * is less than `LoginCookieValidity`
74 * @global boolean $cfg['LoginCookieValidityDisableWarning']
76 $cfg['LoginCookieValidityDisableWarning'] = false;
78 /**
79 * Disable the default warning about MySQL reserved words in column names
81 * @global boolean $cfg['ReservedWordDisableWarning']
83 $cfg['ReservedWordDisableWarning'] = false;
85 /**
86 * Show warning about incomplete translations on certain threshold.
88 * @global boolean $cfg['TranslationWarningThreshold']
90 $cfg['TranslationWarningThreshold'] = 80;
92 /**
93 * Allows phpMyAdmin to be included from a other document in a frame;
94 * setting this to true is a potential security hole. Setting this to
95 * 'sameorigin' prevents phpMyAdmin to be included from another document
96 * in a frame, unless that document belongs to the same domain.
98 * @global boolean|string $cfg['AllowThirdPartyFraming']
100 $cfg['AllowThirdPartyFraming'] = false;
103 * The 'cookie' auth_type uses the Sodium extension to encrypt the cookies. If at least one server configuration
104 * uses 'cookie' auth_type, enter here a generated string of random bytes to be used as an encryption key. The
105 * encryption key must be 32 bytes long.
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 certificate
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'] = 'CREATE TABLE,ALTER TABLE,DROP TABLE,RENAME TABLE,CREATE INDEX,' .
581 'DROP INDEX,INSERT,UPDATE,DELETE,TRUNCATE,REPLACE,CREATE VIEW,' .
582 'ALTER VIEW,DROP VIEW,CREATE DATABASE,ALTER DATABASE,DROP DATABASE';
585 * Whether a DROP VIEW IF EXISTS statement will be added
586 * as first line to the log when creating a view.
588 * @global bool $cfg['Servers'][$i]['tracking_add_drop_view']
590 $cfg['Servers'][$i]['tracking_add_drop_view'] = true;
593 * Whether a DROP TABLE IF EXISTS statement will be added
594 * as first line to the log when creating a table.
596 * @global bool $cfg['Servers'][$i]['tracking_add_drop_table']
598 $cfg['Servers'][$i]['tracking_add_drop_table'] = true;
601 * Whether a DROP DATABASE IF EXISTS statement will be added
602 * as first line to the log when creating a database.
604 * @global bool $cfg['Servers'][$i]['tracking_add_drop_database']
606 $cfg['Servers'][$i]['tracking_add_drop_database'] = true;
609 * Whether to show or hide detailed MySQL/MariaDB connection errors on the login page.
611 * @global bool $cfg['Servers'][$i]['hide_connection_errors']
613 $cfg['Servers'][$i]['hide_connection_errors'] = false;
616 * Default server (0 = no default server)
618 * If you have more than one server configured, you can set $cfg['ServerDefault']
619 * to any one of them to auto-connect to that server when phpMyAdmin is started,
620 * or set it to 0 to be given a list of servers without logging in
621 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
622 * set to that server.
624 * @global integer $cfg['ServerDefault']
626 $cfg['ServerDefault'] = 1;
629 * Other core phpMyAdmin settings
633 * whether version check is active
635 * @global boolean $cfg['VersionCheck']
637 if (defined('VERSION_CHECK_DEFAULT')) {
638 $cfg['VersionCheck'] = VERSION_CHECK_DEFAULT;
639 } else {
640 $cfg['VersionCheck'] = true;
644 * The url of the proxy to be used when retrieving the information about
645 * the latest version of phpMyAdmin or error reporting. You need this if
646 * the server where phpMyAdmin is installed does not have direct access to
647 * the internet.
648 * The format is: "hostname:portnumber"
650 * @global string $cfg['ProxyUrl']
652 $cfg['ProxyUrl'] = '';
655 * The username for authenticating with the proxy. By default, no
656 * authentication is performed. If a username is supplied, Basic
657 * Authentication will be performed. No other types of authentication
658 * are currently supported.
660 * @global string $cfg['ProxyUser']
662 $cfg['ProxyUser'] = '';
665 * The password for authenticating with the proxy.
667 * @global string $cfg['ProxyPass']
669 $cfg['ProxyPass'] = '';
672 * maximum number of db's displayed in database list
674 * @global integer $cfg['MaxDbList']
676 $cfg['MaxDbList'] = 100;
679 * maximum number of tables displayed in table list
681 * @global integer $cfg['MaxTableList']
683 $cfg['MaxTableList'] = 250;
686 * whether to show hint or not
688 * @global boolean $cfg['ShowHint']
690 $cfg['ShowHint'] = true;
693 * maximum number of characters when a SQL query is displayed
695 * @global integer $cfg['MaxCharactersInDisplayedSQL']
697 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
700 * use GZIP output buffering if possible (true|false|'auto')
702 * @global string $cfg['OBGzip']
704 $cfg['OBGzip'] = 'auto';
707 * use persistent connections to MySQL database
709 * @global boolean $cfg['PersistentConnections']
711 $cfg['PersistentConnections'] = false;
714 * maximum execution time in seconds (0 for no limit)
716 * @global integer $cfg['ExecTimeLimit']
718 $cfg['ExecTimeLimit'] = 300;
721 * Path for storing session data (session_save_path PHP parameter).
723 * @global integer $cfg['SessionSavePath']
725 $cfg['SessionSavePath'] = '';
728 * Hosts or IPs to consider safe when checking if SSL is used or not
730 * @global array $cfg['MysqlSslWarningSafeHosts']
732 $cfg['MysqlSslWarningSafeHosts'] = ['127.0.0.1', 'localhost'];
735 * maximum allocated bytes ('-1' for no limit, '0' for no change)
736 * this is a string because '16M' is a valid value; we must put here
737 * a string as the default value so that /setup accepts strings
739 * @global string $cfg['MemoryLimit']
741 $cfg['MemoryLimit'] = '-1';
744 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
746 * @global boolean $cfg['SkipLockedTables']
748 $cfg['SkipLockedTables'] = false;
751 * show SQL queries as run
753 * @global boolean $cfg['ShowSQL']
755 $cfg['ShowSQL'] = true;
758 * retain SQL input on Ajax execute
760 * @global boolean $cfg['RetainQueryEditor']
762 $cfg['RetainQueryBox'] = false;
765 * use CodeMirror syntax highlighting for editing SQL
767 * @global boolean $cfg['CodemirrorEnable']
769 $cfg['CodemirrorEnable'] = true;
772 * use the parser to find any errors in the query before executing
774 * @global boolean $cfg['LintEnable']
776 $cfg['LintEnable'] = true;
779 * show a 'Drop database' link to normal users
781 * @global boolean $cfg['AllowUserDropDatabase']
783 $cfg['AllowUserDropDatabase'] = false;
786 * confirm some commands that can result in loss of data
788 * @global boolean $cfg['Confirm']
790 $cfg['Confirm'] = true;
793 * sets SameSite attribute of the Set-Cookie HTTP response header
795 * Valid values are:
796 * - Lax
797 * - Strict
798 * - None
800 * @global string $cfg['CookieSameSite']
802 $cfg['CookieSameSite'] = 'Strict';
805 * recall previous login in cookie authentication mode or not
807 * @global boolean $cfg['LoginCookieRecall']
809 $cfg['LoginCookieRecall'] = true;
812 * validity of cookie login (in seconds; 1440 matches php.ini's
813 * session.gc_maxlifetime)
815 * @global integer $cfg['LoginCookieValidity']
817 $cfg['LoginCookieValidity'] = 1440;
820 * how long login cookie should be stored (in seconds)
822 * @global integer $cfg['LoginCookieStore']
824 $cfg['LoginCookieStore'] = 0;
827 * whether to delete all login cookies on logout
829 * @global boolean $cfg['LoginCookieDeleteAll']
831 $cfg['LoginCookieDeleteAll'] = true;
834 * whether to enable the "database search" feature or not
836 * @global boolean $cfg['UseDbSearch']
838 $cfg['UseDbSearch'] = true;
841 * if set to true, PMA continues computing multiple-statement queries
842 * even if one of the queries failed
844 * @global boolean $cfg['IgnoreMultiSubmitErrors']
846 $cfg['IgnoreMultiSubmitErrors'] = false;
849 * Define whether phpMyAdmin will encrypt sensitive data from the URL query string.
851 * @global bool $cfg['URLQueryEncryption']
853 $cfg['URLQueryEncryption'] = false;
856 * A secret key used to encrypt/decrypt the URL query string. Should be 32 bytes long.
858 * @global string $cfg['URLQueryEncryptionSecretKey']
860 $cfg['URLQueryEncryptionSecretKey'] = '';
863 * allow login to any user entered server in cookie based authentication
865 * @global boolean $cfg['AllowArbitraryServer']
867 $cfg['AllowArbitraryServer'] = false;
870 * restrict by IP (with regular expression) the MySQL servers the user can enter
871 * when $cfg['AllowArbitraryServer'] = true
873 * @global string $cfg['ArbitraryServerRegexp']
875 $cfg['ArbitraryServerRegexp'] = '';
878 * To enable reCaptcha v2 checkbox mode if necessary
880 * @global string $cfg['CaptchaMethod']
882 $cfg['CaptchaMethod'] = 'invisible';
885 * URL for the reCaptcha v2 compatible API to use
887 * @global string $cfg['CaptchaApi']
889 $cfg['CaptchaApi'] = 'https://www.google.com/recaptcha/api.js';
892 * Content-Security-Policy snippet for the reCaptcha v2 compatible API
894 * @global string $cfg['CaptchaCsp']
896 $cfg['CaptchaCsp'] = 'https://apis.google.com https://www.google.com/recaptcha/'
897 . ' https://www.gstatic.com/recaptcha/ https://ssl.gstatic.com/';
900 * reCaptcha API's request parameter name
902 * @global string $cfg['CaptchaRequestParam']
904 $cfg['CaptchaRequestParam'] = 'g-recaptcha';
907 * reCaptcha API's response parameter name
909 * @global string $cfg['CaptchaResponseParam']
911 $cfg['CaptchaResponseParam'] = 'g-recaptcha-response';
914 * if reCaptcha is enabled it needs public key to connect with the service
916 * @global string $cfg['CaptchaLoginPublicKey']
918 $cfg['CaptchaLoginPublicKey'] = '';
921 * if reCaptcha is enabled it needs private key to connect with the service
923 * @global string $cfg['CaptchaLoginPrivateKey']
925 $cfg['CaptchaLoginPrivateKey'] = '';
928 * if reCaptcha is enabled may need an URL for site verify
930 * @global string $cfg['CaptchaSiteVerifyURL']
932 $cfg['CaptchaSiteVerifyURL'] = '';
935 * Enable drag and drop import
937 * @see feature request : https://github.com/phpmyadmin/phpmyadmin/issues/13155
939 * @global bool $cfg['enable_drag_drop_import']
941 $cfg['enable_drag_drop_import'] = true;
943 /*******************************************************************************
944 * Navigation panel setup
948 * In the navigation panel, replaces the database tree with a selector
950 * @global boolean $cfg['ShowDatabasesNavigationAsTree']
952 $cfg['ShowDatabasesNavigationAsTree'] = true;
955 * maximum number of first level databases displayed in navigation panel
957 * @global integer $cfg['FirstLevelNavigationItems']
959 $cfg['FirstLevelNavigationItems'] = 100;
962 * maximum number of items displayed in navigation panel
964 * @global integer $cfg['MaxNavigationItems']
966 $cfg['MaxNavigationItems'] = 50;
969 * turn the select-based light menu into a tree
971 * @global boolean $cfg['NavigationTreeEnableGrouping']
973 $cfg['NavigationTreeEnableGrouping'] = true;
976 * the separator to sub-tree the select-based light menu tree
978 * @global string $cfg['NavigationTreeDbSeparator']
980 $cfg['NavigationTreeDbSeparator'] = '_';
983 * Which string will be used to generate table prefixes
984 * to split/nest tables into multiple categories
986 * @global string $cfg['NavigationTreeTableSeparator']
988 $cfg['NavigationTreeTableSeparator'] = '__';
991 * How many sublevels should be displayed when splitting up tables
992 * by the above Separator
994 * @global integer $cfg['NavigationTreeTableLevel']
996 $cfg['NavigationTreeTableLevel'] = 1;
999 * link with main panel by highlighting the current db/table
1001 * @global boolean $cfg['NavigationLinkWithMainPanel']
1003 $cfg['NavigationLinkWithMainPanel'] = true;
1006 * display logo at top of navigation panel
1008 * @global boolean $cfg['NavigationDisplayLogo']
1010 $cfg['NavigationDisplayLogo'] = true;
1013 * where should logo link point to (can also contain an external URL)
1015 * @global string $cfg['NavigationLogoLink']
1017 $cfg['NavigationLogoLink'] = 'index.php';
1020 * whether to open the linked page in the main window ('main') or
1021 * in a new window ('new')
1023 * @global string $cfg['NavigationLogoLinkWindow']
1025 $cfg['NavigationLogoLinkWindow'] = 'main';
1028 * number of recently used tables displayed in the navigation panel
1030 * @global integer $cfg['NumRecentTables']
1032 $cfg['NumRecentTables'] = 10;
1035 * number of favorite tables displayed in the navigation panel
1037 * @global integer $cfg['NumFavoriteTables']
1039 $cfg['NumFavoriteTables'] = 10;
1042 * display a JavaScript table filter in the navigation panel
1043 * when more then x tables are present
1045 * @global boolean $cfg['NavigationTreeDisplayItemFilterMinimum']
1047 $cfg['NavigationTreeDisplayItemFilterMinimum'] = 30;
1050 * display server choice at top of navigation panel
1052 * @global boolean $cfg['NavigationDisplayServers']
1054 $cfg['NavigationDisplayServers'] = true;
1057 * server choice as links
1059 * @global boolean $cfg['DisplayServersList']
1061 $cfg['DisplayServersList'] = false;
1064 * display a JavaScript database filter in the navigation panel
1065 * when more then x databases are present
1067 * @global boolean $cfg['NavigationTreeDisplayDbFilterMinimum']
1069 $cfg['NavigationTreeDisplayDbFilterMinimum'] = 30;
1072 * target of the navigation panel quick access icon
1074 * Possible values:
1075 * 'structure' = fields list
1076 * 'sql' = SQL form
1077 * 'search' = search page
1078 * 'insert' = insert row page
1079 * 'browse' = browse page
1081 * @global string $cfg['NavigationTreeDefaultTabTable']
1083 $cfg['NavigationTreeDefaultTabTable'] = 'structure';
1086 * target of the navigation panel quick second access icon
1088 * Possible values:
1089 * 'structure' = fields list
1090 * 'sql' = SQL form
1091 * 'search' = search page
1092 * 'insert' = insert row page
1093 * 'browse' = browse page
1094 * '' = no link
1096 * @global string $cfg['NavigationTreeDefaultTabTable2']
1098 $cfg['NavigationTreeDefaultTabTable2'] = '';
1101 * Enables the possibility of navigation tree expansion
1103 * @global boolean $cfg['NavigationTreeEnableExpansion']
1105 $cfg['NavigationTreeEnableExpansion'] = true;
1108 * Show tables in navigation panel
1110 * @global boolean $cfg['NavigationTreeShowTables']
1112 $cfg['NavigationTreeShowTables'] = true;
1115 * Show views in navigation panel
1117 * @global boolean $cfg['NavigationTreeShowViews']
1119 $cfg['NavigationTreeShowViews'] = true;
1122 * Show functions in navigation panel
1124 * @global boolean $cfg['NavigationTreeShowFunctions']
1126 $cfg['NavigationTreeShowFunctions'] = true;
1129 * Show procedures in navigation panel
1131 * @global boolean $cfg['NavigationTreeShowProcedures']
1133 $cfg['NavigationTreeShowProcedures'] = true;
1136 * Show events in navigation panel
1138 * @global boolean $cfg['NavigationTreeShowEvents']
1140 $cfg['NavigationTreeShowEvents'] = true;
1143 * Width of navigation panel
1145 * @global integer $cfg['NavigationWidth']
1147 $cfg['NavigationWidth'] = 240;
1150 * Automatically expands single database in navigation panel
1152 * @global boolean $cfg['NavigationAutoexpandSingleDb']
1154 $cfg['NavigationTreeAutoexpandSingleDb'] = true;
1156 /*******************************************************************************
1157 * In the main panel, at startup...
1161 * allow to display statistics and space usage in the pages about database
1162 * details and table properties
1164 * @global boolean $cfg['ShowStats']
1166 $cfg['ShowStats'] = true;
1169 * show PHP info link
1171 * @global boolean $cfg['ShowPhpInfo']
1173 $cfg['ShowPhpInfo'] = false;
1176 * show MySQL server and web server information
1178 * @global boolean $cfg['ShowServerInfo']
1180 $cfg['ShowServerInfo'] = true;
1183 * show change password link
1185 * @global boolean $cfg['ShowChgPassword']
1187 $cfg['ShowChgPassword'] = true;
1190 * show create database form
1192 * @global boolean $cfg['ShowCreateDb']
1194 $cfg['ShowCreateDb'] = true;
1197 /*******************************************************************************
1198 * Database structure
1202 * show charset column in database structure (true|false)?
1204 * @global boolean $cfg['ShowDbStructureCharset']
1206 $cfg['ShowDbStructureCharset'] = false;
1209 * show comment column in database structure (true|false)?
1211 * @global boolean $cfg['ShowDbStructureComment']
1213 $cfg['ShowDbStructureComment'] = false;
1216 * show creation timestamp column in database structure (true|false)?
1218 * @global boolean $cfg['ShowDbStructureCreation']
1220 $cfg['ShowDbStructureCreation'] = false;
1223 * show last update timestamp column in database structure (true|false)?
1225 * @global boolean $cfg['ShowDbStructureLastUpdate']
1227 $cfg['ShowDbStructureLastUpdate'] = false;
1230 * show last check timestamp column in database structure (true|false)?
1232 * @global boolean $cfg['ShowDbStructureLastCheck']
1234 $cfg['ShowDbStructureLastCheck'] = false;
1237 * allow hide action columns to drop down menu in database structure (true|false)?
1239 * @global boolean $cfg['HideStructureActions']
1241 $cfg['HideStructureActions'] = true;
1244 * Show column comments in table structure view (true|false)?
1246 * @global boolean $cfg['ShowColumnComments']
1248 $cfg['ShowColumnComments'] = true;
1251 /*******************************************************************************
1252 * In browse mode...
1256 * Use icons instead of text for the navigation bar buttons (table browse)
1257 * ('text'|'icons'|'both')
1259 * @global string $cfg['TableNavigationLinksMode']
1261 $cfg['TableNavigationLinksMode'] = 'icons';
1264 * Defines whether a user should be displayed a "show all (records)"
1265 * button in browse mode or not.
1267 * @global boolean $cfg['ShowAll']
1269 $cfg['ShowAll'] = false;
1272 * Number of rows displayed when browsing a result set. If the result
1273 * set contains more rows, "Previous" and "Next".
1274 * Possible values: 25,50,100,250,500
1276 * @global integer $cfg['MaxRows']
1278 $cfg['MaxRows'] = 25;
1281 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
1282 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
1283 * ascending order else-)
1285 * @global string $cfg['Order']
1287 $cfg['Order'] = 'SMART';
1290 * grid editing: save edited cell(s) in browse-mode at once
1292 * @global boolean $cfg['SaveCellsAtOnce']
1294 $cfg['SaveCellsAtOnce'] = false;
1297 * grid editing: which action triggers it, or completely disable the feature
1299 * Possible values:
1300 * 'click'
1301 * 'double-click'
1302 * 'disabled'
1304 * @global string $cfg['GridEditing']
1306 $cfg['GridEditing'] = 'double-click';
1309 * Options > Relational display
1311 * Possible values:
1312 * 'K' for key value
1313 * 'D' for display column
1315 * @global string $cfg['RelationalDisplay']
1317 $cfg['RelationalDisplay'] = 'K';
1320 /*******************************************************************************
1321 * In edit mode...
1325 * disallow editing of binary fields
1326 * valid values are:
1327 * false allow editing
1328 * 'blob' allow editing except for BLOB fields
1329 * 'noblob' disallow editing except for BLOB fields
1330 * 'all' disallow editing
1332 * @global string $cfg['ProtectBinary']
1334 $cfg['ProtectBinary'] = 'blob';
1337 * Display the function fields in edit/insert mode
1339 * @global boolean $cfg['ShowFunctionFields']
1341 $cfg['ShowFunctionFields'] = true;
1344 * Display the type fields in edit/insert mode
1346 * @global boolean $cfg['ShowFieldTypesInDataEditView']
1348 $cfg['ShowFieldTypesInDataEditView'] = true;
1351 * Which editor should be used for CHAR/VARCHAR fields:
1352 * input - allows limiting of input length
1353 * textarea - allows newlines in fields
1355 * @global string $cfg['CharEditing']
1357 $cfg['CharEditing'] = 'input';
1360 * The minimum size for character input fields
1362 * @global integer $cfg['MinSizeForInputField']
1364 $cfg['MinSizeForInputField'] = 4;
1367 * The maximum size for character input fields
1369 * @global integer $cfg['MinSizeForInputField']
1371 $cfg['MaxSizeForInputField'] = 60;
1374 * How many rows can be inserted at one time
1376 * @global integer $cfg['InsertRows']
1378 $cfg['InsertRows'] = 2;
1381 * Sort order for items in a foreign-key drop-down list.
1382 * 'content' is the referenced data, 'id' is the key value.
1384 * @global array $cfg['ForeignKeyDropdownOrder']
1386 $cfg['ForeignKeyDropdownOrder'] = [
1387 'content-id',
1388 'id-content',
1392 * A drop-down list will be used if fewer items are present
1394 * @global integer $cfg['ForeignKeyMaxLimit']
1396 $cfg['ForeignKeyMaxLimit'] = 100;
1399 * Whether to disable foreign key checks while importing
1401 * @global boolean $cfg['DefaultForeignKeyChecks']
1403 $cfg['DefaultForeignKeyChecks'] = 'default';
1405 /*******************************************************************************
1406 * For the export features...
1410 * Allow for the use of zip compression (requires zip support to be enabled)
1412 * @global boolean $cfg['ZipDump']
1414 $cfg['ZipDump'] = true;
1417 * Allow for the use of gzip compression (requires zlib)
1419 * @global boolean $cfg['GZipDump']
1421 $cfg['GZipDump'] = true;
1424 * Allow for the use of bzip2 decompression (requires bz2 extension)
1426 * @global boolean $cfg['BZipDump']
1428 $cfg['BZipDump'] = true;
1431 * Will compress gzip exports on the fly without the need for much memory.
1432 * If you encounter problems with created gzip files disable this feature.
1434 * @global boolean $cfg['CompressOnFly']
1436 $cfg['CompressOnFly'] = true;
1439 /*******************************************************************************
1440 * Tabs display settings
1444 * How to display the menu tabs ('icons'|'text'|'both')
1446 * @global boolean $cfg['TabsMode']
1448 $cfg['TabsMode'] = 'both';
1451 * How to display various action links ('icons'|'text'|'both')
1453 * @global boolean $cfg['ActionLinksMode']
1455 $cfg['ActionLinksMode'] = 'both';
1458 * How many columns should be used for table display of a database?
1459 * (a value larger than 1 results in some information being hidden)
1461 * @global integer $cfg['PropertiesNumColumns']
1463 $cfg['PropertiesNumColumns'] = 1;
1466 * Possible values:
1467 * 'welcome' = the welcome page
1468 * (recommended for multiuser setups)
1469 * 'databases' = list of databases
1470 * 'status' = runtime information
1471 * 'variables' = MySQL server variables
1472 * 'privileges' = user management
1474 * @global string $cfg['DefaultTabServer']
1476 $cfg['DefaultTabServer'] = 'welcome';
1479 * Possible values:
1480 * 'structure' = tables list
1481 * 'sql' = SQL form
1482 * 'search' = search query
1483 * 'operations' = operations on database
1485 * @global string $cfg['DefaultTabDatabase']
1487 $cfg['DefaultTabDatabase'] = 'structure';
1490 * Possible values:
1491 * 'structure' = fields list
1492 * 'sql' = SQL form
1493 * 'search' = search page
1494 * 'insert' = insert row page
1495 * 'browse' = browse page
1497 * @global string $cfg['DefaultTabTable']
1499 $cfg['DefaultTabTable'] = 'browse';
1502 * Whether to display image or text or both image and text in table row
1503 * action segment. Value can be either of ``image``, ``text`` or ``both``.
1505 $cfg['RowActionType'] = 'both';
1507 /*******************************************************************************
1508 * Export defaults
1510 $cfg['Export'] = [];
1513 * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xml/yaml
1515 * @global string $cfg['Export']['format']
1517 $cfg['Export']['format'] = 'sql';
1520 * quick/custom/custom-no-form
1522 * @global string $cfg['Export']['format']
1524 $cfg['Export']['method'] = 'quick';
1527 * none/zip/gzip
1529 * @global string $cfg['Export']['compression']
1531 $cfg['Export']['compression'] = 'none';
1534 * Whether to LOCK TABLES before exporting
1536 * @global boolean $cfg['Export']['lock_tables']
1538 $cfg['Export']['lock_tables'] = false;
1541 * Whether to export databases/tables as separate files
1543 * @global boolean $cfg['Export']['as_separate_files']
1545 $cfg['Export']['as_separate_files'] = false;
1548 * @global boolean $cfg['Export']['asfile']
1550 $cfg['Export']['asfile'] = true;
1553 * @global string $cfg['Export']['charset']
1555 $cfg['Export']['charset'] = '';
1558 * @global boolean $cfg['Export']['onserver']
1560 $cfg['Export']['onserver'] = false;
1563 * @global boolean $cfg['Export']['onserver_overwrite']
1565 $cfg['Export']['onserver_overwrite'] = false;
1568 * @global boolean $cfg['Export']['quick_export_onserver']
1570 $cfg['Export']['quick_export_onserver'] = false;
1573 * @global boolean $cfg['Export']['quick_export_onserver_overwrite']
1575 $cfg['Export']['quick_export_onserver_overwrite'] = false;
1578 * @global boolean $cfg['Export']['remember_file_template']
1580 $cfg['Export']['remember_file_template'] = true;
1583 * @global string $cfg['Export']['file_template_table']
1585 $cfg['Export']['file_template_table'] = '@TABLE@';
1588 * @global string $cfg['Export']['file_template_database']
1590 $cfg['Export']['file_template_database'] = '@DATABASE@';
1593 * @global string $cfg['Export']['file_template_server']
1595 $cfg['Export']['file_template_server'] = '@SERVER@';
1598 * @global string $cfg['Export']['codegen_structure_or_data']
1600 $cfg['Export']['codegen_structure_or_data'] = 'data';
1603 * @global $cfg['Export']['codegen_format']
1605 $cfg['Export']['codegen_format'] = 0;
1608 * @global boolean $cfg['Export']['ods_columns']
1610 $cfg['Export']['ods_columns'] = false;
1613 * @global string $cfg['Export']['ods_null']
1615 $cfg['Export']['ods_null'] = 'NULL';
1618 * @global string $cfg['Export']['odt_structure_or_data']
1620 $cfg['Export']['odt_structure_or_data'] = 'structure_and_data';
1623 * @global boolean $cfg['Export']['odt_columns']
1625 $cfg['Export']['odt_columns'] = true;
1628 * @global boolean $cfg['Export']['odt_relation']
1630 $cfg['Export']['odt_relation'] = true;
1633 * @global boolean $cfg['Export']['odt_comments']
1635 $cfg['Export']['odt_comments'] = true;
1638 * @global boolean $cfg['Export']['odt_mime']
1640 $cfg['Export']['odt_mime'] = true;
1643 * @global string $cfg['Export']['odt_null']
1645 $cfg['Export']['odt_null'] = 'NULL';
1648 * @global boolean $cfg['Export']['htmlword_structure_or_data']
1650 $cfg['Export']['htmlword_structure_or_data'] = 'structure_and_data';
1653 * @global boolean $cfg['Export']['htmlword_columns']
1655 $cfg['Export']['htmlword_columns'] = false;
1658 * @global string $cfg['Export']['htmlword_null']
1660 $cfg['Export']['htmlword_null'] = 'NULL';
1663 * @global string $cfg['Export']['texytext_structure_or_data']
1665 $cfg['Export']['texytext_structure_or_data'] = 'structure_and_data';
1668 * @global boolean $cfg['Export']['texytext_columns']
1670 $cfg['Export']['texytext_columns'] = false;
1673 * @global string $cfg['Export']['texytext_null']
1675 $cfg['Export']['texytext_null'] = 'NULL';
1678 * @global boolean $cfg['Export']['csv_columns']
1680 $cfg['Export']['csv_columns'] = true;
1683 * @global string $cfg['Export']['csv_structure_or_data']
1685 $cfg['Export']['csv_structure_or_data'] = 'data';
1688 * @global string $cfg['Export']['csv_null']
1690 $cfg['Export']['csv_null'] = 'NULL';
1693 * @global string $cfg['Export']['csv_separator']
1695 $cfg['Export']['csv_separator'] = ',';
1698 * @global string $cfg['Export']['csv_enclosed']
1700 $cfg['Export']['csv_enclosed'] = '"';
1703 * @global string $cfg['Export']['csv_escaped']
1705 $cfg['Export']['csv_escaped'] = '"';
1708 * @global string $cfg['Export']['csv_terminated']
1710 $cfg['Export']['csv_terminated'] = 'AUTO';
1713 * @global string $cfg['Export']['csv_removeCRLF']
1715 $cfg['Export']['csv_removeCRLF'] = false;
1718 * @global boolean $cfg['Export']['excel_columns']
1720 $cfg['Export']['excel_columns'] = true;
1723 * @global string $cfg['Export']['excel_null']
1725 $cfg['Export']['excel_null'] = 'NULL';
1728 * win/mac
1730 * @global string $cfg['Export']['excel_edition']
1732 $cfg['Export']['excel_edition'] = 'win';
1735 * @global string $cfg['Export']['excel_removeCRLF']
1737 $cfg['Export']['excel_removeCRLF'] = false;
1740 * @global string $cfg['Export']['excel_structure_or_data']
1742 $cfg['Export']['excel_structure_or_data'] = 'data';
1745 * @global string $cfg['Export']['latex_structure_or_data']
1747 $cfg['Export']['latex_structure_or_data'] = 'structure_and_data';
1750 * @global boolean $cfg['Export']['latex_columns']
1752 $cfg['Export']['latex_columns'] = true;
1755 * @global boolean $cfg['Export']['latex_relation']
1757 $cfg['Export']['latex_relation'] = true;
1760 * @global boolean $cfg['Export']['latex_comments']
1762 $cfg['Export']['latex_comments'] = true;
1765 * @global boolean $cfg['Export']['latex_mime']
1767 $cfg['Export']['latex_mime'] = true;
1770 * @global string $cfg['Export']['latex_null']
1772 $cfg['Export']['latex_null'] = '\textit{NULL}';
1775 * @global boolean $cfg['Export']['latex_caption']
1777 $cfg['Export']['latex_caption'] = true;
1780 * @global string $cfg['Export']['latex_structure_caption']
1782 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1785 * @global string $cfg['Export']['latex_structure_continued_caption']
1787 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
1790 * @global string $cfg['Export']['latex_data_caption']
1792 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1795 * @global string $cfg['Export']['latex_data_continued_caption']
1797 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1800 * @global string $cfg['Export']['latex_data_label']
1802 $cfg['Export']['latex_data_label'] = 'tab:@TABLE@-data';
1805 * @global string $cfg['Export']['latex_structure_label']
1807 $cfg['Export']['latex_structure_label'] = 'tab:@TABLE@-structure';
1810 * @global string $cfg['Export']['mediawiki_structure_or_data']
1812 $cfg['Export']['mediawiki_structure_or_data'] = 'data';
1815 * @global boolean $cfg['Export']['mediawiki_caption']
1817 $cfg['Export']['mediawiki_caption'] = true;
1820 * @global boolean $cfg['Export']['mediawiki_headers']
1822 $cfg['Export']['mediawiki_headers'] = true;
1825 * @global string $cfg['Export']['ods_structure_or_data']
1827 $cfg['Export']['ods_structure_or_data'] = 'data';
1830 * @global string $cfg['Export']['pdf_structure_or_data']
1832 $cfg['Export']['pdf_structure_or_data'] = 'data';
1835 * @global string $cfg['Export']['phparray_structure_or_data']
1837 $cfg['Export']['phparray_structure_or_data'] = 'data';
1840 * @global string $cfg['Export']['json_structure_or_data']
1842 $cfg['Export']['json_structure_or_data'] = 'data';
1845 * Export functions
1847 * @global string $cfg['Export']['json_pretty_print']
1849 $cfg['Export']['json_pretty_print'] = false;
1852 * Export functions
1854 * @global string $cfg['Export']['json_unicode']
1856 $cfg['Export']['json_unicode'] = true;
1859 * @global string $cfg['Export']['remove_definer_from_definitions']
1861 $cfg['Export']['remove_definer_from_definitions'] = false;
1864 * @global string $cfg['Export']['sql_structure_or_data']
1866 $cfg['Export']['sql_structure_or_data'] = 'structure_and_data';
1869 * @global string $cfg['Export']['sql_compatibility']
1871 $cfg['Export']['sql_compatibility'] = 'NONE';
1874 * Whether to include comments in SQL export.
1876 * @global string $cfg['Export']['sql_include_comments']
1878 $cfg['Export']['sql_include_comments'] = true;
1881 * @global boolean $cfg['Export']['sql_disable_fk']
1883 $cfg['Export']['sql_disable_fk'] = false;
1886 * @global boolean $cfg['Export']['sql_views_as_tables']
1888 $cfg['Export']['sql_views_as_tables'] = false;
1891 * @global boolean $cfg['Export']['sql_metadata']
1893 $cfg['Export']['sql_metadata'] = false;
1896 * @global boolean $cfg['Export']['sql_use_transaction']
1898 $cfg['Export']['sql_use_transaction'] = true;
1901 * @global boolean $cfg['Export']['sql_create_database']
1903 $cfg['Export']['sql_create_database'] = false;
1906 * @global boolean $cfg['Export']['sql_drop_database']
1908 $cfg['Export']['sql_drop_database'] = false;
1911 * @global boolean $cfg['Export']['sql_drop_table']
1913 $cfg['Export']['sql_drop_table'] = false;
1916 * true by default for correct behavior when dealing with exporting
1917 * of VIEWs and the stand-in table
1919 * @global boolean $cfg['Export']['sql_if_not_exists']
1921 $cfg['Export']['sql_if_not_exists'] = false;
1924 * @global boolean $cfg['Export']['sql_view_current_user']
1926 $cfg['Export']['sql_view_current_user'] = false;
1929 * @global boolean $cfg['Export']['sql_or_replace']
1931 $cfg['Export']['sql_or_replace_view'] = false;
1934 * @global boolean $cfg['Export']['sql_procedure_function']
1936 $cfg['Export']['sql_procedure_function'] = true;
1939 * @global boolean $cfg['Export']['sql_create_table']
1941 $cfg['Export']['sql_create_table'] = true;
1944 * @global boolean $cfg['Export']['sql_create_view']
1946 $cfg['Export']['sql_create_view'] = true;
1949 * @global boolean $cfg['Export']['sql_create_trigger']
1951 $cfg['Export']['sql_create_trigger'] = true;
1954 * @global boolean $cfg['Export']['sql_auto_increment']
1956 $cfg['Export']['sql_auto_increment'] = true;
1959 * @global boolean $cfg['Export']['sql_backquotes']
1961 $cfg['Export']['sql_backquotes'] = true;
1964 * @global boolean $cfg['Export']['sql_dates']
1966 $cfg['Export']['sql_dates'] = false;
1969 * @global boolean $cfg['Export']['sql_relation']
1971 $cfg['Export']['sql_relation'] = false;
1974 * @global boolean $cfg['Export']['sql_truncate']
1976 $cfg['Export']['sql_truncate'] = false;
1979 * @global boolean $cfg['Export']['sql_delayed']
1981 $cfg['Export']['sql_delayed'] = false;
1984 * @global boolean $cfg['Export']['sql_ignore']
1986 $cfg['Export']['sql_ignore'] = false;
1989 * Export time in UTC.
1991 * @global boolean $cfg['Export']['sql_utc_time']
1993 $cfg['Export']['sql_utc_time'] = true;
1996 * @global boolean $cfg['Export']['sql_hex_for_binary']
1998 $cfg['Export']['sql_hex_for_binary'] = true;
2001 * insert/update/replace
2003 * @global string $cfg['Export']['sql_type']
2005 $cfg['Export']['sql_type'] = 'INSERT';
2008 * @global integer $cfg['Export']['sql_max_query_size']
2010 $cfg['Export']['sql_max_query_size'] = 50000;
2013 * @global boolean $cfg['Export']['sql_mime']
2015 $cfg['Export']['sql_mime'] = false;
2018 * \n is replaced by new line
2020 * @global string $cfg['Export']['sql_header_comment']
2022 $cfg['Export']['sql_header_comment'] = '';
2025 * Whether to use complete inserts, extended inserts, both, or neither
2027 * @global string $cfg['Export']['sql_insert_syntax']
2029 $cfg['Export']['sql_insert_syntax'] = 'both';
2032 * @global string $cfg['Export']['pdf_report_title']
2034 $cfg['Export']['pdf_report_title'] = '';
2037 * @global string $cfg['Export']['xml_structure_or_data']
2039 $cfg['Export']['xml_structure_or_data'] = 'data';
2042 * Export schema for each structure
2044 * @global string $cfg['Export']['xml_export_struc']
2046 $cfg['Export']['xml_export_struc'] = true;
2049 * Export events
2051 * @global string $cfg['Export']['xml_export_events']
2053 $cfg['Export']['xml_export_events'] = true;
2056 * Export functions
2058 * @global string $cfg['Export']['xml_export_functions']
2060 $cfg['Export']['xml_export_functions'] = true;
2063 * Export procedures
2065 * @global string $cfg['Export']['xml_export_procedures']
2067 $cfg['Export']['xml_export_procedures'] = true;
2070 * Export schema for each table
2072 * @global string $cfg['Export']['xml_export_tables']
2074 $cfg['Export']['xml_export_tables'] = true;
2077 * Export triggers
2079 * @global string $cfg['Export']['xml_export_triggers']
2081 $cfg['Export']['xml_export_triggers'] = true;
2084 * Export views
2086 * @global string $cfg['Export']['xml_export_views']
2088 $cfg['Export']['xml_export_views'] = true;
2091 * Export contents data
2093 * @global string $cfg['Export']['xml_export_contents']
2095 $cfg['Export']['xml_export_contents'] = true;
2098 * @global string $cfg['Export']['yaml_structure_or_data']
2100 $cfg['Export']['yaml_structure_or_data'] = 'data';
2102 /*******************************************************************************
2103 * Import defaults
2105 $cfg['Import'] = [];
2108 * @global string $cfg['Import']['format']
2110 $cfg['Import']['format'] = 'sql';
2113 * Default charset for import.
2115 * @global string $cfg['Import']['charset']
2117 $cfg['Import']['charset'] = '';
2120 * @global boolean $cfg['Import']['allow_interrupt']
2122 $cfg['Import']['allow_interrupt'] = true;
2125 * @global integer $cfg['Import']['skip_queries']
2127 $cfg['Import']['skip_queries'] = 0;
2130 * @global string $cfg['Import']['sql_compatibility']
2132 $cfg['Import']['sql_compatibility'] = 'NONE';
2135 * @global string $cfg['Import']['sql_no_auto_value_on_zero']
2137 $cfg['Import']['sql_no_auto_value_on_zero'] = true;
2140 * @global string $cfg['Import']['sql_read_as_multibytes']
2142 $cfg['Import']['sql_read_as_multibytes'] = false;
2145 * @global boolean $cfg['Import']['csv_replace']
2147 $cfg['Import']['csv_replace'] = false;
2150 * @global boolean $cfg['Import']['csv_ignore']
2152 $cfg['Import']['csv_ignore'] = false;
2155 * @global string $cfg['Import']['csv_terminated']
2157 $cfg['Import']['csv_terminated'] = ',';
2160 * @global string $cfg['Import']['csv_enclosed']
2162 $cfg['Import']['csv_enclosed'] = '"';
2165 * @global string $cfg['Import']['csv_escaped']
2167 $cfg['Import']['csv_escaped'] = '"';
2170 * @global string $cfg['Import']['csv_new_line']
2172 $cfg['Import']['csv_new_line'] = 'auto';
2175 * @global string $cfg['Import']['csv_columns']
2177 $cfg['Import']['csv_columns'] = '';
2180 * @global string $cfg['Import']['csv_col_names']
2182 $cfg['Import']['csv_col_names'] = false;
2185 * @global boolean $cfg['Import']['ldi_replace']
2187 $cfg['Import']['ldi_replace'] = false;
2190 * @global boolean $cfg['Import']['ldi_ignore']
2192 $cfg['Import']['ldi_ignore'] = false;
2195 * @global string $cfg['Import']['ldi_terminated']
2197 $cfg['Import']['ldi_terminated'] = ';';
2200 * @global string $cfg['Import']['ldi_enclosed']
2202 $cfg['Import']['ldi_enclosed'] = '"';
2205 * @global string $cfg['Import']['ldi_escaped']
2207 $cfg['Import']['ldi_escaped'] = '\\';
2210 * @global string $cfg['Import']['ldi_new_line']
2212 $cfg['Import']['ldi_new_line'] = 'auto';
2215 * @global string $cfg['Import']['ldi_columns']
2217 $cfg['Import']['ldi_columns'] = '';
2220 * 'auto' for auto-detection, true or false for forcing
2222 * @global string $cfg['Import']['ldi_local_option']
2224 $cfg['Import']['ldi_local_option'] = 'auto';
2227 * @global string $cfg['Import']['ods_col_names']
2229 $cfg['Import']['ods_col_names'] = false;
2232 * @global string $cfg['Import']['ods_empty_rows']
2234 $cfg['Import']['ods_empty_rows'] = true;
2237 * @global string $cfg['Import']['ods_recognize_percentages']
2239 $cfg['Import']['ods_recognize_percentages'] = true;
2242 * @global string $cfg['Import']['ods_recognize_currency']
2244 $cfg['Import']['ods_recognize_currency'] = true;
2246 /*******************************************************************************
2247 * Schema export defaults
2249 $cfg['Schema'] = [];
2252 * pdf/eps/dia/svg
2254 * @global string $cfg['Schema']['format']
2256 $cfg['Schema']['format'] = 'pdf';
2259 * @global string $cfg['Schema']['pdf_show_color']
2261 $cfg['Schema']['pdf_show_color'] = true;
2264 * @global string $cfg['Schema']['pdf_show_keys']
2266 $cfg['Schema']['pdf_show_keys'] = false;
2269 * @global string $cfg['Schema']['pdf_all_tables_same_width']
2271 $cfg['Schema']['pdf_all_tables_same_width'] = false;
2274 * L/P
2276 * @global string $cfg['Schema']['pdf_orientation']
2278 $cfg['Schema']['pdf_orientation'] = 'L';
2281 * @global string $cfg['Schema']['pdf_paper']
2283 $cfg['Schema']['pdf_paper'] = 'A4';
2286 * @global string $cfg['Schema']['pdf_show_grid']
2288 $cfg['Schema']['pdf_show_grid'] = false;
2291 * @global string $cfg['Schema']['pdf_with_doc']
2293 $cfg['Schema']['pdf_with_doc'] = true;
2296 * @global string $cfg['Schema']['pdf_table_order']
2298 $cfg['Schema']['pdf_table_order'] = '';
2301 * @global string $cfg['Schema']['dia_show_color']
2303 $cfg['Schema']['dia_show_color'] = true;
2306 * @global string $cfg['Schema']['dia_show_keys']
2308 $cfg['Schema']['dia_show_keys'] = false;
2311 * L/P
2313 * @global string $cfg['Schema']['dia_orientation']
2315 $cfg['Schema']['dia_orientation'] = 'L';
2318 * @global string $cfg['Schema']['dia_paper']
2320 $cfg['Schema']['dia_paper'] = 'A4';
2323 * @global string $cfg['Schema']['eps_show_color']
2325 $cfg['Schema']['eps_show_color'] = true;
2328 * @global string $cfg['Schema']['eps_show_keys']
2330 $cfg['Schema']['eps_show_keys'] = false;
2333 * @global string $cfg['Schema']['eps_all_tables_same_width']
2335 $cfg['Schema']['eps_all_tables_same_width'] = false;
2338 * L/P
2340 * @global string $cfg['Schema']['eps_orientation']
2342 $cfg['Schema']['eps_orientation'] = 'L';
2345 * @global string $cfg['Schema']['svg_show_color']
2347 $cfg['Schema']['svg_show_color'] = true;
2350 * @global string $cfg['Schema']['svg_show_keys']
2352 $cfg['Schema']['svg_show_keys'] = false;
2355 * @global string $cfg['Schema']['svg_all_tables_same_width']
2357 $cfg['Schema']['svg_all_tables_same_width'] = false;
2359 /*******************************************************************************
2360 * PDF options
2364 * @global array $cfg['PDFPageSizes']
2366 $cfg['PDFPageSizes'] = [
2367 'A3',
2368 'A4',
2369 'A5',
2370 'letter',
2371 'legal',
2375 * @global string $cfg['PDFDefaultPageSize']
2377 $cfg['PDFDefaultPageSize'] = 'A4';
2380 /*******************************************************************************
2381 * Language and character set conversion settings
2385 * Default language to use, if not browser-defined or user-defined
2387 * @global string $cfg['DefaultLang']
2389 $cfg['DefaultLang'] = 'en';
2392 * Default connection collation
2394 * @global string $cfg['DefaultConnectionCollation']
2396 $cfg['DefaultConnectionCollation'] = 'utf8mb4_unicode_ci';
2399 * Force: always use this language, e.g. 'en'
2401 * @global string $cfg['Lang']
2403 $cfg['Lang'] = '';
2406 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
2407 * English only
2409 * @global string $cfg['FilterLanguages']
2411 $cfg['FilterLanguages'] = '';
2414 * You can select here which functions will be used for character set conversion.
2415 * Possible values are:
2416 * auto - automatically use available one (first is tested iconv, then
2417 * recode)
2418 * iconv - use iconv or libiconv functions
2419 * recode - use recode_string function
2420 * mb - use mbstring extension
2421 * none - disable encoding conversion
2423 * @global string $cfg['RecodingEngine']
2425 $cfg['RecodingEngine'] = 'auto';
2428 * Specify some parameters for iconv used in character set conversion. See iconv
2429 * documentation for details:
2430 * https://www.gnu.org/savannah-checkouts/gnu/libiconv/documentation/libiconv-1.15/iconv_open.3.html
2432 * @global string $cfg['IconvExtraParams']
2434 $cfg['IconvExtraParams'] = '//TRANSLIT';
2437 * Available character sets for MySQL conversion. currently contains all which could
2438 * be found in lang/* files and few more.
2439 * Character sets will be shown in same order as here listed, so if you frequently
2440 * use some of these move them to the top.
2442 * @global array $cfg['AvailableCharsets']
2444 $cfg['AvailableCharsets'] = [
2445 'iso-8859-1',
2446 'iso-8859-2',
2447 'iso-8859-3',
2448 'iso-8859-4',
2449 'iso-8859-5',
2450 'iso-8859-6',
2451 'iso-8859-7',
2452 'iso-8859-8',
2453 'iso-8859-9',
2454 'iso-8859-10',
2455 'iso-8859-11',
2456 'iso-8859-12',
2457 'iso-8859-13',
2458 'iso-8859-14',
2459 'iso-8859-15',
2460 'windows-1250',
2461 'windows-1251',
2462 'windows-1252',
2463 'windows-1256',
2464 'windows-1257',
2465 'koi8-r',
2466 'big5',
2467 'gb2312',
2468 'utf-16',
2469 'utf-8',
2470 'utf-7',
2471 'x-user-defined',
2472 'euc-jp',
2473 'ks_c_5601-1987',
2474 'tis-620',
2475 'SHIFT_JIS',
2476 'SJIS',
2477 'SJIS-win',
2481 /*******************************************************************************
2482 * Customization & design
2484 * The graphical settings are now located in themes/theme-name/scss/_variables.scss
2488 * enable the left panel pointer
2490 * @global boolean $cfg['NavigationTreePointerEnable']
2492 $cfg['NavigationTreePointerEnable'] = true;
2495 * enable the browse pointer
2497 * @global boolean $cfg['BrowsePointerEnable']
2499 $cfg['BrowsePointerEnable'] = true;
2502 * enable the browse marker
2504 * @global boolean $cfg['BrowseMarkerEnable']
2506 $cfg['BrowseMarkerEnable'] = true;
2509 * textarea size (columns) in edit mode
2510 * (this value will be emphasized (*2) for SQL
2511 * query textareas and (*1.25) for query window)
2513 * @global integer $cfg['TextareaCols']
2515 $cfg['TextareaCols'] = 40;
2518 * textarea size (rows) in edit mode
2520 * @global integer $cfg['TextareaRows']
2522 $cfg['TextareaRows'] = 15;
2525 * double size of textarea size for LONGTEXT columns
2527 * @global boolean $cfg['LongtextDoubleTextarea']
2529 $cfg['LongtextDoubleTextarea'] = true;
2532 * auto-select when clicking in the textarea of the query-box
2534 * @global boolean $cfg['TextareaAutoSelect']
2536 $cfg['TextareaAutoSelect'] = false;
2539 * textarea size (columns) for CHAR/VARCHAR
2541 * @global integer $cfg['CharTextareaCols']
2543 $cfg['CharTextareaCols'] = 40;
2546 * textarea size (rows) for CHAR/VARCHAR
2548 * @global integer $cfg['CharTextareaRows']
2550 $cfg['CharTextareaRows'] = 7;
2553 * Max field data length in browse mode for all non-numeric fields
2555 * @global integer $cfg['LimitChars']
2557 $cfg['LimitChars'] = 50;
2560 * Where to show the edit/copy/delete links in browse mode
2561 * Possible values are 'left', 'right', 'both' and 'none'.
2563 * @global string $cfg['RowActionLinks']
2565 $cfg['RowActionLinks'] = 'left';
2568 * Whether to show row links (Edit, Copy, Delete) and checkboxes for
2569 * multiple row operations even when the selection does not have a unique key.
2571 * @global boolean $cfg['RowActionLinksWithoutUnique']
2573 $cfg['RowActionLinksWithoutUnique'] = false;
2576 * Default sort order by primary key.
2578 * @global string $cfg['TablePrimaryKeyOrder']
2580 $cfg['TablePrimaryKeyOrder'] = 'NONE';
2583 * remember the last way a table sorted
2585 * @global string $cfg['RememberSorting']
2587 $cfg['RememberSorting'] = true;
2590 * shows column comments in 'browse' mode.
2592 * @global boolean $cfg['ShowBrowseComments']
2594 $cfg['ShowBrowseComments'] = true;
2597 * shows column comments in 'table property' mode.
2599 * @global boolean $cfg['ShowPropertyComments']
2601 $cfg['ShowPropertyComments'] = true;
2604 * repeat header names every X cells? (0 = deactivate)
2606 * @global integer $cfg['RepeatCells']
2608 $cfg['RepeatCells'] = 100;
2611 * Set to true if you want DB-based query history.If false, this utilizes
2612 * JS-routines to display query history (lost by window close)
2614 * @global boolean $cfg['QueryHistoryDB']
2616 $cfg['QueryHistoryDB'] = false;
2619 * When using DB-based query history, how many entries should be kept?
2621 * @global integer $cfg['QueryHistoryMax']
2623 $cfg['QueryHistoryMax'] = 25;
2626 * Use MIME-Types (stored in column comments table) for
2628 * @global boolean $cfg['BrowseMIME']
2630 $cfg['BrowseMIME'] = true;
2633 * When approximate count < this, PMA will get exact count for table rows.
2635 * @global integer $cfg['MaxExactCount']
2637 $cfg['MaxExactCount'] = 50000;
2640 * Zero means that no row count is done for views; see the doc
2642 * @global integer $cfg['MaxExactCountViews']
2644 $cfg['MaxExactCountViews'] = 0;
2647 * Sort table and database in natural order
2649 * @global boolean $cfg['NaturalOrder']
2651 $cfg['NaturalOrder'] = true;
2654 * Initial state for sliders
2655 * (open | closed | disabled)
2657 * @global string $cfg['InitialSlidersState']
2659 $cfg['InitialSlidersState'] = 'closed';
2662 * User preferences: disallow these settings
2663 * For possible setting names look in libraries/config/user_preferences.forms.php
2665 * @global array $cfg['UserprefsDisallow']
2667 $cfg['UserprefsDisallow'] = [];
2670 * User preferences: enable the Developer tab
2672 $cfg['UserprefsDeveloperTab'] = false;
2674 /*******************************************************************************
2675 * Window title settings
2679 * title of browser window when a table is selected
2681 * @global string $cfg['TitleTable']
2683 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2686 * title of browser window when a database is selected
2688 * @global string $cfg['TitleDatabase']
2690 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2693 * title of browser window when a server is selected
2695 * @global string $cfg['TitleServer']
2697 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2700 * title of browser window when nothing is selected
2702 * @global string $cfg['TitleDefault']
2704 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2707 /*******************************************************************************
2708 * theme manager
2712 * if you want to use selectable themes and if ThemesPath not empty
2713 * set it to true, else set it to false (default is false);
2715 * @global boolean $cfg['ThemeManager']
2717 $cfg['ThemeManager'] = true;
2720 * set up default theme, you can set up here an valid
2721 * path to themes or 'original' for the original pma-theme
2723 * @global string $cfg['ThemeDefault']
2725 $cfg['ThemeDefault'] = 'pmahomme';
2728 * allow different theme for each configured server
2730 * @global boolean $cfg['ThemePerServer']
2732 $cfg['ThemePerServer'] = false;
2736 * Default query for table
2738 * @global string $cfg['DefaultQueryTable']
2740 $cfg['DefaultQueryTable'] = 'SELECT * FROM @TABLE@ WHERE 1';
2743 * Default query for database
2745 * @global string $cfg['DefaultQueryDatabase']
2747 $cfg['DefaultQueryDatabase'] = '';
2750 /*******************************************************************************
2751 * SQL Query box settings
2752 * These are the links display in all of the SQL Query boxes
2754 * @global array $cfg['SQLQuery']
2756 $cfg['SQLQuery'] = [];
2759 * Display an "Edit" link on the results page to change a query
2761 * @global boolean $cfg['SQLQuery']['Edit']
2763 $cfg['SQLQuery']['Edit'] = true;
2766 * Display an "Explain SQL" link on the results page
2768 * @global boolean $cfg['SQLQuery']['Explain']
2770 $cfg['SQLQuery']['Explain'] = true;
2773 * Display a "Create PHP code" link on the results page to wrap a query in PHP
2775 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2777 $cfg['SQLQuery']['ShowAsPHP'] = true;
2780 * Display a "Refresh" link on the results page
2782 * @global boolean $cfg['SQLQuery']['Refresh']
2784 $cfg['SQLQuery']['Refresh'] = true;
2787 * Enables autoComplete for table & column names in SQL queries
2789 * default = 'true'
2791 $cfg['EnableAutocompleteForTablesAndColumns'] = true;
2794 /*******************************************************************************
2795 * Web server upload/save/import directories
2799 * Directory for uploaded files that can be executed by phpMyAdmin.
2800 * For example './upload'. Leave empty for no upload directory support.
2801 * Use %u for username inclusion.
2803 * @global string $cfg['UploadDir']
2805 $cfg['UploadDir'] = '';
2808 * Directory where phpMyAdmin can save exported data on server.
2809 * For example './save'. Leave empty for no save directory support.
2810 * Use %u for username inclusion.
2812 * @global string $cfg['SaveDir']
2814 $cfg['SaveDir'] = '';
2817 * Directory where phpMyAdmin can save temporary files.
2819 * @global string $cfg['TempDir']
2821 if (defined('TEMP_DIR')) {
2822 $cfg['TempDir'] = TEMP_DIR;
2823 } else {
2824 $cfg['TempDir'] = ROOT_PATH . 'tmp' . DIRECTORY_SEPARATOR;
2828 * Misc. settings
2832 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2833 * which is the only safe way to determine GD version.
2835 * @global string $cfg['GD2Available']
2837 $cfg['GD2Available'] = 'auto';
2840 * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
2842 * @global array $cfg['TrustedProxies']
2844 $cfg['TrustedProxies'] = [];
2847 * We normally check the permissions on the configuration file to ensure
2848 * it's not world writable. However, phpMyAdmin could be installed on
2849 * a NTFS filesystem mounted on a non-Windows server, in which case the
2850 * permissions seems wrong but in fact cannot be detected. In this case
2851 * a sysadmin would set the following to false.
2853 $cfg['CheckConfigurationPermissions'] = true;
2856 * Limit for length of URL in links. When length would be above this limit, it
2857 * is replaced by form with button.
2858 * This is required as some web servers (IIS) have problems with long URLs.
2859 * The recommended limit is 2000
2860 * (see https://stackoverflow.com/a/417184/5155484) but we put
2861 * 1000 to accommodate Suhosin, see bug #3358750.
2863 $cfg['LinkLengthLimit'] = 1000;
2866 * Additional string to allow in CSP headers.
2868 $cfg['CSPAllow'] = '';
2871 * Disable the table maintenance mass operations, like optimizing or
2872 * repairing the selected tables of a database. An accidental execution
2873 * of such a maintenance task can enormously slow down a bigger database.
2875 $cfg['DisableMultiTableMaintenance'] = false;
2878 * Whether or not to query the user before sending the error report to
2879 * the phpMyAdmin team when a JavaScript error occurs
2881 * Available options
2882 * (ask | always | never)
2884 * @global string $cfg['SendErrorReports']
2886 $cfg['SendErrorReports'] = 'ask';
2889 * Whether Enter or Ctrl+Enter executes queries in the console.
2891 * @global boolean $cfg['ConsoleEnterExecutes']
2893 $cfg['ConsoleEnterExecutes'] = false;
2896 * Zero Configuration mode.
2898 * @global boolean $cfg['ZeroConf']
2900 $cfg['ZeroConf'] = true;
2902 /*******************************************************************************
2903 * Developers ONLY!
2905 * @global array $cfg['DBG']
2907 $cfg['DBG'] = [];
2910 * Output executed queries and their execution times
2912 * @global boolean $cfg['DBG']['sql']
2914 $cfg['DBG']['sql'] = false;
2917 * Log executed queries and their execution times to syslog
2919 * @global boolean $cfg['DBG']['sqllog']
2921 $cfg['DBG']['sqllog'] = false;
2924 * Enable to let server present itself as demo server.
2926 * @global boolean $cfg['DBG']['demo']
2928 $cfg['DBG']['demo'] = false;
2931 * Enable Simple two-factor authentication
2933 * @global boolean $cfg['DBG']['simple2fa']
2935 $cfg['DBG']['simple2fa'] = false;
2938 * Sets the working environment
2940 * This only needs to be changed when you are developing phpMyAdmin itself.
2941 * The development mode may display debug information in some places.
2943 * Possible values are 'production' or 'development'
2945 $cfg['environment'] = 'production';
2947 /*******************************************************************************
2948 * MySQL settings
2952 * Default functions for above defined groups
2954 * @global array $cfg['DefaultFunctions']
2956 $cfg['DefaultFunctions'] = [
2957 'FUNC_CHAR' => '',
2958 'FUNC_DATE' => '',
2959 'FUNC_NUMBER' => '',
2960 'FUNC_SPATIAL' => 'GeomFromText',
2961 'FUNC_UUID' => 'UUID',
2962 'first_timestamp' => 'NOW',
2966 * Max rows retrieved for zoom search
2968 $cfg['maxRowPlotLimit'] = 500;
2971 * Show Git revision if applicable
2973 * @global boolean $cfg['ShowGitRevision']
2975 $cfg['ShowGitRevision'] = true;
2978 * MySQL minimal version required
2980 * @global array $cfg['MysqlMinVersion']
2982 $cfg['MysqlMinVersion'] = [
2983 'internal' => 50500,
2984 'human' => '5.5.0',
2988 * Disable shortcuts
2990 * @global array $cfg['DisableShortcutKeys']
2992 $cfg['DisableShortcutKeys'] = false;
2995 * Console configuration
2997 * This is mostly meant for user preferences.
2999 $cfg['Console'] = [
3000 'StartHistory' => false,
3001 'AlwaysExpand' => false,
3002 'CurrentQuery' => true,
3003 'EnterExecutes' => false,
3004 'DarkTheme' => false,
3005 'Mode' => 'info',
3006 'Height' => 92,
3007 'GroupQueries' => false,
3008 'OrderBy' => 'exec',
3009 'Order' => 'asc',
3013 /*******************************************************************************
3014 * Default options for transformations
3018 * Initialize default transformations array
3020 * @global array $cfg['DefaultTransformations']
3022 $cfg['DefaultTransformations'] = [];
3025 * Default transformations for Substring
3027 * @global array $cfg['DefaultTransformations']['Substring']
3029 $cfg['DefaultTransformations']['Substring'] = [
3031 'all',
3032 '…',
3036 * Default transformations for Bool2Text
3038 * @global array $cfg['DefaultTransformations']['Bool2Text']
3040 $cfg['DefaultTransformations']['Bool2Text'] = [
3041 'T',
3042 'F',
3046 * Default transformations for External
3048 * @global array $cfg['DefaultTransformations']['External']
3050 $cfg['DefaultTransformations']['External'] = [
3052 '-f /dev/null -i -wrap -q',
3058 * Default transformations for PreApPend
3060 * @global array $cfg['DefaultTransformations']['PreApPend']
3062 $cfg['DefaultTransformations']['PreApPend'] = [
3068 * Default transformations for Hex
3070 * @global array $cfg['DefaultTransformations']['Hex']
3072 $cfg['DefaultTransformations']['Hex'] = ['2'];
3075 * Default transformations for DateFormat
3077 * @global array $cfg['DefaultTransformations']['DateFormat']
3079 $cfg['DefaultTransformations']['DateFormat'] = [
3082 'local',
3086 * Set default for FirstDayOfCalendar
3088 * @global integer $cfg['FirstDayOfCalendar']
3090 $cfg['FirstDayOfCalendar'] = 0;
3093 * Default transformations for Inline
3095 * @global array $cfg['DefaultTransformations']['Inline']
3097 $cfg['DefaultTransformations']['Inline'] = [
3098 '100',
3099 100,
3101 $cfg['DefaultTransformations']['Inline']['wrapper_link'] = null;
3102 $cfg['DefaultTransformations']['Inline']['wrapper_params'] = [];
3105 * Default transformations for TextImageLink
3107 * @global array $cfg['DefaultTransformations']['TextImageLink']
3109 $cfg['DefaultTransformations']['TextImageLink'] = [
3110 null,
3111 100,
3116 * Default transformations for TextLink
3118 * @global array $cfg['DefaultTransformations']['TextLink']
3120 $cfg['DefaultTransformations']['TextLink'] = [
3121 null,
3122 null,
3123 null,