Translated using Weblate (Uyghur)
[phpmyadmin.git] / libraries / config.default.php
blob725795c15771b014aa3bba08c6cb523cba57b7ce
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 AES algorithm to encrypt the password. If
104 * at least one server configuration uses 'cookie' auth_type, enter here a
105 * pass phrase that will be used by AES. The maximum length seems to be 46
106 * characters.
108 * @global string $cfg['blowfish_secret']
110 $cfg['blowfish_secret'] = '';
113 /*******************************************************************************
114 * Server(s) configuration
116 * The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
117 * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
118 * to ''. If you want more than one server, just copy following section
119 * (including $i incrementation) several times. There is no need to define
120 * full server array, just define values you need to change.
122 * @global array $cfg['Servers']
124 $cfg['Servers'] = [];
126 $i = 1;
129 * MySQL hostname or IP address
131 * @global string $cfg['Servers'][$i]['host']
133 $cfg['Servers'][$i]['host'] = 'localhost';
136 * MySQL port - leave blank for default port
138 * @global string $cfg['Servers'][$i]['port']
140 $cfg['Servers'][$i]['port'] = '';
143 * Path to the socket - leave blank for default socket
145 * @global string $cfg['Servers'][$i]['socket']
147 $cfg['Servers'][$i]['socket'] = '';
150 * Use SSL for connecting to MySQL server?
152 * @global boolean $cfg['Servers'][$i]['ssl']
154 $cfg['Servers'][$i]['ssl'] = false;
157 * Path to the key file when using SSL for connecting to the MySQL server
159 * @global string $cfg['Servers'][$i]['ssl_key']
161 $cfg['Servers'][$i]['ssl_key'] = null;
164 * Path to the cert file when using SSL for connecting to the MySQL server
166 * @global string $cfg['Servers'][$i]['ssl_cert']
168 $cfg['Servers'][$i]['ssl_cert'] = null;
171 * Path to the CA file when using SSL for connecting to the MySQL server
173 * @global string $cfg['Servers'][$i]['ssl_ca']
175 $cfg['Servers'][$i]['ssl_ca'] = null;
178 * Directory containing trusted SSL CA certificates in PEM format
180 * @global string $cfg['Servers'][$i]['ssl_ca_path']
182 $cfg['Servers'][$i]['ssl_ca_path'] = null;
185 * List of allowable ciphers for SSL connections to the MySQL server
187 * @global string $cfg['Servers'][$i]['ssl_ciphers']
189 $cfg['Servers'][$i]['ssl_ciphers'] = null;
192 * MySQL 5.6 or later triggers the mysqlnd driver in PHP to validate the
193 * peer_name of the SSL certifcate
194 * For most self-signed certificates this is a problem. Setting this to false
195 * will disable the check and allow the connection (PHP 5.6.16 or later)
197 * @link https://bugs.php.net/68344
199 * @global string $cfg['Servers'][$i]['ssl_verify']
201 $cfg['Servers'][$i]['ssl_verify'] = true;
204 * Use compressed protocol for the MySQL connection
206 * @global boolean $cfg['Servers'][$i]['compress']
208 $cfg['Servers'][$i]['compress'] = false;
211 * MySQL control host. This permits to use a host different than the
212 * main host, for the phpMyAdmin configuration storage. If left empty,
213 * $cfg['Servers'][$i]['host'] is used instead.
215 * @global string $cfg['Servers'][$i]['controlhost']
217 $cfg['Servers'][$i]['controlhost'] = '';
220 * MySQL control port. This permits to use a port different than the
221 * main port, for the phpMyAdmin configuration storage. If left empty,
222 * $cfg['Servers'][$i]['port'] is used instead.
224 * @global string $cfg['Servers'][$i]['controlport']
226 $cfg['Servers'][$i]['controlport'] = '';
229 * MySQL control user settings (this user must have read-only
230 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
231 * used for all relational features (pmadb)
233 * @global string $cfg['Servers'][$i]['controluser']
235 $cfg['Servers'][$i]['controluser'] = '';
238 * MySQL control user settings (this user must have read-only
239 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
240 * used for all relational features (pmadb)
242 * @global string $cfg['Servers'][$i]['controlpass']
244 $cfg['Servers'][$i]['controlpass'] = '';
247 * Authentication method (valid choices: config, http, signon or cookie)
249 * @global string $cfg['Servers'][$i]['auth_type']
251 $cfg['Servers'][$i]['auth_type'] = 'cookie';
254 * HTTP Basic Auth Realm name to display (only used with 'HTTP' auth_type)
256 * @global string $cfg['Servers'][$i]['auth_http_realm']
258 $cfg['Servers'][$i]['auth_http_realm'] = '';
261 * MySQL user
263 * @global string $cfg['Servers'][$i]['user']
265 $cfg['Servers'][$i]['user'] = 'root';
268 * MySQL password (only needed with 'config' auth_type)
270 * @global string $cfg['Servers'][$i]['password']
272 $cfg['Servers'][$i]['password'] = '';
275 * Session to use for 'signon' authentication method
277 * @global string $cfg['Servers'][$i]['SignonSession']
279 $cfg['Servers'][$i]['SignonSession'] = '';
282 * Cookie params to match session to use for 'signon' authentication method
283 * It should be an associative array matching result of session_get_cookie_params() in other system
285 * @global array $cfg['Servers'][$i]['SignonCookieParams']
287 $cfg['Servers'][$i]['SignonCookieParams'] = [];
290 * PHP script to use for 'signon' authentication method
292 * @global string $cfg['Servers'][$i]['SignonScript']
294 $cfg['Servers'][$i]['SignonScript'] = '';
297 * URL where to redirect user to login for 'signon' authentication method
299 * @global string $cfg['Servers'][$i]['SignonURL']
301 $cfg['Servers'][$i]['SignonURL'] = '';
304 * URL where to redirect user after logout
306 * @global string $cfg['Servers'][$i]['LogoutURL']
308 $cfg['Servers'][$i]['LogoutURL'] = '';
311 * If set to a db-name, only this db is displayed in navigation panel
312 * It may also be an array of db-names
314 * @global string $cfg['Servers'][$i]['only_db']
316 $cfg['Servers'][$i]['only_db'] = '';
319 * Database name to be hidden from listings
321 * @global string $cfg['Servers'][$i]['hide_db']
323 $cfg['Servers'][$i]['hide_db'] = '';
326 * Verbose name for this host - leave blank to show the hostname
327 * (for HTTP authentication, all non-US-ASCII characters will be stripped)
329 * @global string $cfg['Servers'][$i]['verbose']
331 $cfg['Servers'][$i]['verbose'] = '';
334 * Database used for Relation, Bookmark and PDF Features
335 * (see sql/create_tables.sql)
336 * - leave blank for no support
337 * SUGGESTED: 'phpmyadmin'
339 * @global string $cfg['Servers'][$i]['pmadb']
341 $cfg['Servers'][$i]['pmadb'] = '';
344 * Bookmark table
345 * - leave blank for no bookmark support
346 * SUGGESTED: 'pma__bookmark'
348 * @global string $cfg['Servers'][$i]['bookmarktable']
350 $cfg['Servers'][$i]['bookmarktable'] = '';
353 * table to describe the relation between links (see doc)
354 * - leave blank for no relation-links support
355 * SUGGESTED: 'pma__relation'
357 * @global string $cfg['Servers'][$i]['relation']
359 $cfg['Servers'][$i]['relation'] = '';
362 * table to describe the display fields
363 * - leave blank for no display fields support
364 * SUGGESTED: 'pma__table_info'
366 * @global string $cfg['Servers'][$i]['table_info']
368 $cfg['Servers'][$i]['table_info'] = '';
371 * table to describe the tables position for the designer and PDF schema
372 * - leave blank for no PDF schema support
373 * SUGGESTED: 'pma__table_coords'
375 * @global string $cfg['Servers'][$i]['table_coords']
377 $cfg['Servers'][$i]['table_coords'] = '';
380 * table to describe pages of relationpdf
381 * - leave blank if you don't want to use this
382 * SUGGESTED: 'pma__pdf_pages'
384 * @global string $cfg['Servers'][$i]['pdf_pages']
386 $cfg['Servers'][$i]['pdf_pages'] = '';
389 * table to store column information
390 * - leave blank for no column comments/mime types
391 * SUGGESTED: 'pma__column_info'
393 * @global string $cfg['Servers'][$i]['column_info']
395 $cfg['Servers'][$i]['column_info'] = '';
398 * table to store SQL history
399 * - leave blank for no SQL query history
400 * SUGGESTED: 'pma__history'
402 * @global string $cfg['Servers'][$i]['history']
404 $cfg['Servers'][$i]['history'] = '';
407 * table to store recently used tables
408 * - leave blank for no "persistent" recently used tables
409 * SUGGESTED: 'pma__recent'
411 $cfg['Servers'][$i]['recent'] = '';
414 * table to store favorite tables
415 * - leave blank for no favorite tables
416 * SUGGESTED: 'pma__favorite'
418 $cfg['Servers'][$i]['favorite'] = '';
421 * table to store UI preferences for tables
422 * - leave blank for no "persistent" UI preferences
423 * SUGGESTED: 'pma__table_uiprefs'
425 $cfg['Servers'][$i]['table_uiprefs'] = '';
428 * table to store SQL tracking
429 * - leave blank for no SQL tracking
430 * SUGGESTED: 'pma__tracking'
432 * @global string $cfg['Servers'][$i]['tracking']
434 $cfg['Servers'][$i]['tracking'] = '';
437 * table to store user preferences
438 * - leave blank to disable server storage
439 * SUGGESTED: 'pma__userconfig'
441 * @global string $cfg['Servers'][$i]['userconfig']
443 $cfg['Servers'][$i]['userconfig'] = '';
446 * table to store users and their assignment to user groups
447 * - leave blank to disable configurable menus feature
448 * SUGGESTED: 'pma__users'
450 * @global string $cfg['Servers'][$i]['users']
452 $cfg['Servers'][$i]['users'] = '';
455 * table to store allowed menu items for each user group
456 * - leave blank to disable configurable menus feature
457 * SUGGESTED: 'pma__usergroups'
459 * @global string $cfg['Servers'][$i]['usergroups']
461 $cfg['Servers'][$i]['usergroups'] = '';
464 * table to store information about item hidden from navigation tree
465 * - leave blank to disable hide/show navigation items feature
466 * SUGGESTED: 'pma__navigationhiding'
468 * @global string $cfg['Servers'][$i]['navigationhiding']
470 $cfg['Servers'][$i]['navigationhiding'] = '';
473 * table to store information about saved searches from query-by-example on a db
474 * - leave blank to disable saved searches feature
475 * SUGGESTED: 'pma__savedsearches'
477 * @global string $cfg['Servers'][$i]['savedsearches']
479 $cfg['Servers'][$i]['savedsearches'] = '';
482 * table to store central list of columns per database
483 * - leave blank to disable central list of columns feature
484 * SUGGESTED: 'pma__central_columns'
486 * @global string $cfg['Servers'][$i]['central_columns']
488 $cfg['Servers'][$i]['central_columns'] = '';
491 * table to store designer settings
492 * - leave blank to disable the storage of designer settings
493 * SUGGESTED: 'pma__designer_settings'
495 * @global string $cfg['Servers'][$i]['designer_settings']
497 $cfg['Servers'][$i]['designer_settings'] = '';
500 * table to store export templates
501 * - leave blank to disable saved searches feature
502 * SUGGESTED: 'pma__export_templates'
504 * @global string $cfg['Servers'][$i]['export_templates']
506 $cfg['Servers'][$i]['export_templates'] = '';
509 * Maximum number of records saved in $cfg['Servers'][$i]['table_uiprefs'] table.
511 * In case where tables in databases is modified (e.g. dropped or renamed),
512 * table_uiprefs may contains invalid data (referring to tables which are not
513 * exist anymore).
514 * This configuration make sure that we only keep N (N = MaxTableUiprefs)
515 * newest record in table_uiprefs and automatically delete older records.
517 * @global integer $cfg['Servers'][$i]['userconfig'] = '';
519 $cfg['Servers'][$i]['MaxTableUiprefs'] = 100;
522 * Sets the time zone used by phpMyAdmin. Possible values are explained at
523 * https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html
525 * @global string $cfg['Servers'][$i]['SessionTimeZone'] = ''
527 $cfg['Servers'][$i]['SessionTimeZone'] = '';
530 * whether to allow root login
532 * @global boolean $cfg['Servers'][$i]['AllowRoot']
534 $cfg['Servers'][$i]['AllowRoot'] = true;
537 * whether to allow login of any user without a password
539 * @global boolean $cfg['Servers'][$i]['AllowNoPassword']
541 $cfg['Servers'][$i]['AllowNoPassword'] = false;
544 * Host authentication order, leave blank to not use
546 * @global string $cfg['Servers'][$i]['AllowDeny']['order']
548 $cfg['Servers'][$i]['AllowDeny']['order'] = '';
551 * Host authentication rules, leave blank for defaults
553 * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
555 $cfg['Servers'][$i]['AllowDeny']['rules'] = [];
558 * Disable use of INFORMATION_SCHEMA.
560 * @see https://github.com/phpmyadmin/phpmyadmin/issues/8970
561 * @see https://bugs.mysql.com/19588
563 * @global boolean $cfg['Servers'][$i]['DisableIS']
565 $cfg['Servers'][$i]['DisableIS'] = false;
568 * Whether the tracking mechanism creates
569 * versions for tables and views automatically.
571 * @global bool $cfg['Servers'][$i]['tracking_version_auto_create']
573 $cfg['Servers'][$i]['tracking_version_auto_create'] = false;
576 * Defines the list of statements
577 * the auto-creation uses for new versions.
579 * @global string $cfg['Servers'][$i]['tracking_default_statements']
581 $cfg['Servers'][$i]['tracking_default_statements'] = '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 * Whether to show or hide detailed MySQL/MariaDB connection errors on the login page.
612 * @global bool $cfg['Servers'][$i]['hide_connection_errors']
614 $cfg['Servers'][$i]['hide_connection_errors'] = false;
617 * Default server (0 = no default server)
619 * If you have more than one server configured, you can set $cfg['ServerDefault']
620 * to any one of them to auto-connect to that server when phpMyAdmin is started,
621 * or set it to 0 to be given a list of servers without logging in
622 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
623 * set to that server.
625 * @global integer $cfg['ServerDefault']
627 $cfg['ServerDefault'] = 1;
630 * Other core phpMyAdmin settings
634 * whether version check is active
636 * @global boolean $cfg['VersionCheck']
638 if (defined('VERSION_CHECK_DEFAULT')) {
639 $cfg['VersionCheck'] = VERSION_CHECK_DEFAULT;
640 } else {
641 $cfg['VersionCheck'] = true;
645 * The url of the proxy to be used when retrieving the information about
646 * the latest version of phpMyAdmin or error reporting. You need this if
647 * the server where phpMyAdmin is installed does not have direct access to
648 * the internet.
649 * The format is: "hostname:portnumber"
651 * @global string $cfg['ProxyUrl']
653 $cfg['ProxyUrl'] = '';
656 * The username for authenticating with the proxy. By default, no
657 * authentication is performed. If a username is supplied, Basic
658 * Authentication will be performed. No other types of authentication
659 * are currently supported.
661 * @global string $cfg['ProxyUser']
663 $cfg['ProxyUser'] = '';
666 * The password for authenticating with the proxy.
668 * @global string $cfg['ProxyPass']
670 $cfg['ProxyPass'] = '';
673 * maximum number of db's displayed in database list
675 * @global integer $cfg['MaxDbList']
677 $cfg['MaxDbList'] = 100;
680 * maximum number of tables displayed in table list
682 * @global integer $cfg['MaxTableList']
684 $cfg['MaxTableList'] = 250;
687 * whether to show hint or not
689 * @global boolean $cfg['ShowHint']
691 $cfg['ShowHint'] = true;
694 * maximum number of characters when a SQL query is displayed
696 * @global integer $cfg['MaxCharactersInDisplayedSQL']
698 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
701 * use GZIP output buffering if possible (true|false|'auto')
703 * @global string $cfg['OBGzip']
705 $cfg['OBGzip'] = 'auto';
708 * use persistent connections to MySQL database
710 * @global boolean $cfg['PersistentConnections']
712 $cfg['PersistentConnections'] = false;
715 * maximum execution time in seconds (0 for no limit)
717 * @global integer $cfg['ExecTimeLimit']
719 $cfg['ExecTimeLimit'] = 300;
722 * Path for storing session data (session_save_path PHP parameter).
724 * @global integer $cfg['SessionSavePath']
726 $cfg['SessionSavePath'] = '';
729 * Hosts or IPs to consider safe when checking if SSL is used or not
731 * @global array $cfg['MysqlSslWarningSafeHosts']
733 $cfg['MysqlSslWarningSafeHosts'] = ['127.0.0.1', 'localhost'];
736 * maximum allocated bytes ('-1' for no limit, '0' for no change)
737 * this is a string because '16M' is a valid value; we must put here
738 * a string as the default value so that /setup accepts strings
740 * @global string $cfg['MemoryLimit']
742 $cfg['MemoryLimit'] = '-1';
745 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
747 * @global boolean $cfg['SkipLockedTables']
749 $cfg['SkipLockedTables'] = false;
752 * show SQL queries as run
754 * @global boolean $cfg['ShowSQL']
756 $cfg['ShowSQL'] = true;
759 * retain SQL input on Ajax execute
761 * @global boolean $cfg['RetainQueryEditor']
763 $cfg['RetainQueryBox'] = false;
766 * use CodeMirror syntax highlighting for editing SQL
768 * @global boolean $cfg['CodemirrorEnable']
770 $cfg['CodemirrorEnable'] = true;
773 * use the parser to find any errors in the query before executing
775 * @global boolean $cfg['LintEnable']
777 $cfg['LintEnable'] = true;
780 * show a 'Drop database' link to normal users
782 * @global boolean $cfg['AllowUserDropDatabase']
784 $cfg['AllowUserDropDatabase'] = false;
787 * confirm some commands that can result in loss of data
789 * @global boolean $cfg['Confirm']
791 $cfg['Confirm'] = true;
794 * sets SameSite attribute of the Set-Cookie HTTP response header
796 * Valid values are:
797 * - Lax
798 * - Strict
799 * - None
801 * @global string $cfg['CookieSameSite']
803 $cfg['CookieSameSite'] = 'Strict';
806 * recall previous login in cookie authentication mode or not
808 * @global boolean $cfg['LoginCookieRecall']
810 $cfg['LoginCookieRecall'] = true;
813 * validity of cookie login (in seconds; 1440 matches php.ini's
814 * session.gc_maxlifetime)
816 * @global integer $cfg['LoginCookieValidity']
818 $cfg['LoginCookieValidity'] = 1440;
821 * how long login cookie should be stored (in seconds)
823 * @global integer $cfg['LoginCookieStore']
825 $cfg['LoginCookieStore'] = 0;
828 * whether to delete all login cookies on logout
830 * @global boolean $cfg['LoginCookieDeleteAll']
832 $cfg['LoginCookieDeleteAll'] = true;
835 * whether to enable the "database search" feature or not
837 * @global boolean $cfg['UseDbSearch']
839 $cfg['UseDbSearch'] = true;
842 * if set to true, PMA continues computing multiple-statement queries
843 * even if one of the queries failed
845 * @global boolean $cfg['IgnoreMultiSubmitErrors']
847 $cfg['IgnoreMultiSubmitErrors'] = false;
850 * Define whether phpMyAdmin will encrypt sensitive data from the URL query string.
852 * @global bool $cfg['URLQueryEncryption']
854 $cfg['URLQueryEncryption'] = false;
857 * A secret key used to encrypt/decrypt the URL query string. Should be 32 bytes long.
859 * @global string $cfg['URLQueryEncryptionSecretKey']
861 $cfg['URLQueryEncryptionSecretKey'] = '';
864 * allow login to any user entered server in cookie based authentication
866 * @global boolean $cfg['AllowArbitraryServer']
868 $cfg['AllowArbitraryServer'] = false;
871 * restrict by IP (with regular expression) the MySQL servers the user can enter
872 * when $cfg['AllowArbitraryServer'] = true
874 * @global string $cfg['ArbitraryServerRegexp']
876 $cfg['ArbitraryServerRegexp'] = '';
879 * To enable reCaptcha v2 checkbox mode if necessary
881 * @global string $cfg['CaptchaMethod']
883 $cfg['CaptchaMethod'] = 'invisible';
886 * URL for the reCaptcha v2 compatible API to use
888 * @global string $cfg['CaptchaApi']
890 $cfg['CaptchaApi'] = 'https://www.google.com/recaptcha/api.js';
893 * Content-Security-Policy snippet for the reCaptcha v2 compatible API
895 * @global string $cfg['CaptchaCsp']
897 $cfg['CaptchaCsp'] = 'https://apis.google.com https://www.google.com/recaptcha/'
898 . ' https://www.gstatic.com/recaptcha/ https://ssl.gstatic.com/';
901 * reCaptcha API's request parameter name
903 * @global string $cfg['CaptchaRequestParam']
905 $cfg['CaptchaRequestParam'] = 'g-recaptcha';
908 * reCaptcha API's response parameter name
910 * @global string $cfg['CaptchaResponseParam']
912 $cfg['CaptchaResponseParam'] = 'g-recaptcha-response';
915 * if reCaptcha is enabled it needs public key to connect with the service
917 * @global string $cfg['CaptchaLoginPublicKey']
919 $cfg['CaptchaLoginPublicKey'] = '';
922 * if reCaptcha is enabled it needs private key to connect with the service
924 * @global string $cfg['CaptchaLoginPrivateKey']
926 $cfg['CaptchaLoginPrivateKey'] = '';
929 * if reCaptcha is enabled may need an URL for site verify
931 * @global string $cfg['CaptchaSiteVerifyURL']
933 $cfg['CaptchaSiteVerifyURL'] = '';
936 * Enable drag and drop import
938 * @see feature request : https://github.com/phpmyadmin/phpmyadmin/issues/13155
940 * @global bool $cfg['enable_drag_drop_import']
942 $cfg['enable_drag_drop_import'] = true;
944 /*******************************************************************************
945 * Navigation panel setup
949 * In the navigation panel, replaces the database tree with a selector
951 * @global boolean $cfg['ShowDatabasesNavigationAsTree']
953 $cfg['ShowDatabasesNavigationAsTree'] = true;
956 * maximum number of first level databases displayed in navigation panel
958 * @global integer $cfg['FirstLevelNavigationItems']
960 $cfg['FirstLevelNavigationItems'] = 100;
963 * maximum number of items displayed in navigation panel
965 * @global integer $cfg['MaxNavigationItems']
967 $cfg['MaxNavigationItems'] = 50;
970 * turn the select-based light menu into a tree
972 * @global boolean $cfg['NavigationTreeEnableGrouping']
974 $cfg['NavigationTreeEnableGrouping'] = true;
977 * the separator to sub-tree the select-based light menu tree
979 * @global string $cfg['NavigationTreeDbSeparator']
981 $cfg['NavigationTreeDbSeparator'] = '_';
984 * Which string will be used to generate table prefixes
985 * to split/nest tables into multiple categories
987 * @global string $cfg['NavigationTreeTableSeparator']
989 $cfg['NavigationTreeTableSeparator'] = '__';
992 * How many sublevels should be displayed when splitting up tables
993 * by the above Separator
995 * @global integer $cfg['NavigationTreeTableLevel']
997 $cfg['NavigationTreeTableLevel'] = 1;
1000 * link with main panel by highlighting the current db/table
1002 * @global boolean $cfg['NavigationLinkWithMainPanel']
1004 $cfg['NavigationLinkWithMainPanel'] = true;
1007 * display logo at top of navigation panel
1009 * @global boolean $cfg['NavigationDisplayLogo']
1011 $cfg['NavigationDisplayLogo'] = true;
1014 * where should logo link point to (can also contain an external URL)
1016 * @global string $cfg['NavigationLogoLink']
1018 $cfg['NavigationLogoLink'] = 'index.php';
1021 * whether to open the linked page in the main window ('main') or
1022 * in a new window ('new')
1024 * @global string $cfg['NavigationLogoLinkWindow']
1026 $cfg['NavigationLogoLinkWindow'] = 'main';
1029 * number of recently used tables displayed in the navigation panel
1031 * @global integer $cfg['NumRecentTables']
1033 $cfg['NumRecentTables'] = 10;
1036 * number of favorite tables displayed in the navigation panel
1038 * @global integer $cfg['NumFavoriteTables']
1040 $cfg['NumFavoriteTables'] = 10;
1043 * display a JavaScript table filter in the navigation panel
1044 * when more then x tables are present
1046 * @global boolean $cfg['NavigationTreeDisplayItemFilterMinimum']
1048 $cfg['NavigationTreeDisplayItemFilterMinimum'] = 30;
1051 * display server choice at top of navigation panel
1053 * @global boolean $cfg['NavigationDisplayServers']
1055 $cfg['NavigationDisplayServers'] = true;
1058 * server choice as links
1060 * @global boolean $cfg['DisplayServersList']
1062 $cfg['DisplayServersList'] = false;
1065 * display a JavaScript database filter in the navigation panel
1066 * when more then x databases are present
1068 * @global boolean $cfg['NavigationTreeDisplayDbFilterMinimum']
1070 $cfg['NavigationTreeDisplayDbFilterMinimum'] = 30;
1073 * target of the navigation panel quick access icon
1075 * Possible values:
1076 * 'structure' = fields list
1077 * 'sql' = SQL form
1078 * 'search' = search page
1079 * 'insert' = insert row page
1080 * 'browse' = browse page
1082 * @global string $cfg['NavigationTreeDefaultTabTable']
1084 $cfg['NavigationTreeDefaultTabTable'] = 'structure';
1087 * target of the navigation panel quick second access icon
1089 * Possible values:
1090 * 'structure' = fields list
1091 * 'sql' = SQL form
1092 * 'search' = search page
1093 * 'insert' = insert row page
1094 * 'browse' = browse page
1095 * '' = no link
1097 * @global string $cfg['NavigationTreeDefaultTabTable2']
1099 $cfg['NavigationTreeDefaultTabTable2'] = '';
1102 * Enables the possibility of navigation tree expansion
1104 * @global boolean $cfg['NavigationTreeEnableExpansion']
1106 $cfg['NavigationTreeEnableExpansion'] = true;
1109 * Show tables in navigation panel
1111 * @global boolean $cfg['NavigationTreeShowTables']
1113 $cfg['NavigationTreeShowTables'] = true;
1116 * Show views in navigation panel
1118 * @global boolean $cfg['NavigationTreeShowViews']
1120 $cfg['NavigationTreeShowViews'] = true;
1123 * Show functions in navigation panel
1125 * @global boolean $cfg['NavigationTreeShowFunctions']
1127 $cfg['NavigationTreeShowFunctions'] = true;
1130 * Show procedures in navigation panel
1132 * @global boolean $cfg['NavigationTreeShowProcedures']
1134 $cfg['NavigationTreeShowProcedures'] = true;
1137 * Show events in navigation panel
1139 * @global boolean $cfg['NavigationTreeShowEvents']
1141 $cfg['NavigationTreeShowEvents'] = true;
1144 * Width of navigation panel
1146 * @global integer $cfg['NavigationWidth']
1148 $cfg['NavigationWidth'] = 240;
1151 * Automatically expands single database in navigation panel
1153 * @global boolean $cfg['NavigationAutoexpandSingleDb']
1155 $cfg['NavigationTreeAutoexpandSingleDb'] = true;
1157 /*******************************************************************************
1158 * In the main panel, at startup...
1162 * allow to display statistics and space usage in the pages about database
1163 * details and table properties
1165 * @global boolean $cfg['ShowStats']
1167 $cfg['ShowStats'] = true;
1170 * show PHP info link
1172 * @global boolean $cfg['ShowPhpInfo']
1174 $cfg['ShowPhpInfo'] = false;
1177 * show MySQL server and web server information
1179 * @global boolean $cfg['ShowServerInfo']
1181 $cfg['ShowServerInfo'] = true;
1184 * show change password link
1186 * @global boolean $cfg['ShowChgPassword']
1188 $cfg['ShowChgPassword'] = true;
1191 * show create database form
1193 * @global boolean $cfg['ShowCreateDb']
1195 $cfg['ShowCreateDb'] = true;
1198 /*******************************************************************************
1199 * Database structure
1203 * show charset column in database structure (true|false)?
1205 * @global boolean $cfg['ShowDbStructureCharset']
1207 $cfg['ShowDbStructureCharset'] = false;
1210 * show comment column in database structure (true|false)?
1212 * @global boolean $cfg['ShowDbStructureComment']
1214 $cfg['ShowDbStructureComment'] = false;
1217 * show creation timestamp column in database structure (true|false)?
1219 * @global boolean $cfg['ShowDbStructureCreation']
1221 $cfg['ShowDbStructureCreation'] = false;
1224 * show last update timestamp column in database structure (true|false)?
1226 * @global boolean $cfg['ShowDbStructureLastUpdate']
1228 $cfg['ShowDbStructureLastUpdate'] = false;
1231 * show last check timestamp column in database structure (true|false)?
1233 * @global boolean $cfg['ShowDbStructureLastCheck']
1235 $cfg['ShowDbStructureLastCheck'] = false;
1238 * allow hide action columns to drop down menu in database structure (true|false)?
1240 * @global boolean $cfg['HideStructureActions']
1242 $cfg['HideStructureActions'] = true;
1245 * Show column comments in table structure view (true|false)?
1247 * @global boolean $cfg['ShowColumnComments']
1249 $cfg['ShowColumnComments'] = true;
1252 /*******************************************************************************
1253 * In browse mode...
1257 * Use icons instead of text for the navigation bar buttons (table browse)
1258 * ('text'|'icons'|'both')
1260 * @global string $cfg['TableNavigationLinksMode']
1262 $cfg['TableNavigationLinksMode'] = 'icons';
1265 * Defines whether a user should be displayed a "show all (records)"
1266 * button in browse mode or not.
1268 * @global boolean $cfg['ShowAll']
1270 $cfg['ShowAll'] = false;
1273 * Number of rows displayed when browsing a result set. If the result
1274 * set contains more rows, "Previous" and "Next".
1275 * Possible values: 25,50,100,250,500
1277 * @global integer $cfg['MaxRows']
1279 $cfg['MaxRows'] = 25;
1282 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
1283 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
1284 * ascending order else-)
1286 * @global string $cfg['Order']
1288 $cfg['Order'] = 'SMART';
1291 * grid editing: save edited cell(s) in browse-mode at once
1293 * @global boolean $cfg['SaveCellsAtOnce']
1295 $cfg['SaveCellsAtOnce'] = false;
1298 * grid editing: which action triggers it, or completely disable the feature
1300 * Possible values:
1301 * 'click'
1302 * 'double-click'
1303 * 'disabled'
1305 * @global string $cfg['GridEditing']
1307 $cfg['GridEditing'] = 'double-click';
1310 * Options > Relational display
1312 * Possible values:
1313 * 'K' for key value
1314 * 'D' for display column
1316 * @global string $cfg['RelationalDisplay']
1318 $cfg['RelationalDisplay'] = 'K';
1321 /*******************************************************************************
1322 * In edit mode...
1326 * disallow editing of binary fields
1327 * valid values are:
1328 * false allow editing
1329 * 'blob' allow editing except for BLOB fields
1330 * 'noblob' disallow editing except for BLOB fields
1331 * 'all' disallow editing
1333 * @global string $cfg['ProtectBinary']
1335 $cfg['ProtectBinary'] = 'blob';
1338 * Display the function fields in edit/insert mode
1340 * @global boolean $cfg['ShowFunctionFields']
1342 $cfg['ShowFunctionFields'] = true;
1345 * Display the type fields in edit/insert mode
1347 * @global boolean $cfg['ShowFieldTypesInDataEditView']
1349 $cfg['ShowFieldTypesInDataEditView'] = true;
1352 * Which editor should be used for CHAR/VARCHAR fields:
1353 * input - allows limiting of input length
1354 * textarea - allows newlines in fields
1356 * @global string $cfg['CharEditing']
1358 $cfg['CharEditing'] = 'input';
1361 * The minimum size for character input fields
1363 * @global integer $cfg['MinSizeForInputField']
1365 $cfg['MinSizeForInputField'] = 4;
1368 * The maximum size for character input fields
1370 * @global integer $cfg['MinSizeForInputField']
1372 $cfg['MaxSizeForInputField'] = 60;
1375 * How many rows can be inserted at one time
1377 * @global integer $cfg['InsertRows']
1379 $cfg['InsertRows'] = 2;
1382 * Sort order for items in a foreign-key drop-down list.
1383 * 'content' is the referenced data, 'id' is the key value.
1385 * @global array $cfg['ForeignKeyDropdownOrder']
1387 $cfg['ForeignKeyDropdownOrder'] = [
1388 'content-id',
1389 'id-content',
1393 * A drop-down list will be used if fewer items are present
1395 * @global integer $cfg['ForeignKeyMaxLimit']
1397 $cfg['ForeignKeyMaxLimit'] = 100;
1400 * Whether to disable foreign key checks while importing
1402 * @global boolean $cfg['DefaultForeignKeyChecks']
1404 $cfg['DefaultForeignKeyChecks'] = 'default';
1406 /*******************************************************************************
1407 * For the export features...
1411 * Allow for the use of zip compression (requires zip support to be enabled)
1413 * @global boolean $cfg['ZipDump']
1415 $cfg['ZipDump'] = true;
1418 * Allow for the use of gzip compression (requires zlib)
1420 * @global boolean $cfg['GZipDump']
1422 $cfg['GZipDump'] = true;
1425 * Allow for the use of bzip2 decompression (requires bz2 extension)
1427 * @global boolean $cfg['BZipDump']
1429 $cfg['BZipDump'] = true;
1432 * Will compress gzip exports on the fly without the need for much memory.
1433 * If you encounter problems with created gzip files disable this feature.
1435 * @global boolean $cfg['CompressOnFly']
1437 $cfg['CompressOnFly'] = true;
1440 /*******************************************************************************
1441 * Tabs display settings
1445 * How to display the menu tabs ('icons'|'text'|'both')
1447 * @global boolean $cfg['TabsMode']
1449 $cfg['TabsMode'] = 'both';
1452 * How to display various action links ('icons'|'text'|'both')
1454 * @global boolean $cfg['ActionLinksMode']
1456 $cfg['ActionLinksMode'] = 'both';
1459 * How many columns should be used for table display of a database?
1460 * (a value larger than 1 results in some information being hidden)
1462 * @global integer $cfg['PropertiesNumColumns']
1464 $cfg['PropertiesNumColumns'] = 1;
1467 * Possible values:
1468 * 'welcome' = the welcome page
1469 * (recommended for multiuser setups)
1470 * 'databases' = list of databases
1471 * 'status' = runtime information
1472 * 'variables' = MySQL server variables
1473 * 'privileges' = user management
1475 * @global string $cfg['DefaultTabServer']
1477 $cfg['DefaultTabServer'] = 'welcome';
1480 * Possible values:
1481 * 'structure' = tables list
1482 * 'sql' = SQL form
1483 * 'search' = search query
1484 * 'operations' = operations on database
1486 * @global string $cfg['DefaultTabDatabase']
1488 $cfg['DefaultTabDatabase'] = 'structure';
1491 * Possible values:
1492 * 'structure' = fields list
1493 * 'sql' = SQL form
1494 * 'search' = search page
1495 * 'insert' = insert row page
1496 * 'browse' = browse page
1498 * @global string $cfg['DefaultTabTable']
1500 $cfg['DefaultTabTable'] = 'browse';
1503 * Whether to display image or text or both image and text in table row
1504 * action segment. Value can be either of ``image``, ``text`` or ``both``.
1506 $cfg['RowActionType'] = 'both';
1508 /*******************************************************************************
1509 * Export defaults
1511 $cfg['Export'] = [];
1514 * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xml/yaml
1516 * @global string $cfg['Export']['format']
1518 $cfg['Export']['format'] = 'sql';
1521 * quick/custom/custom-no-form
1523 * @global string $cfg['Export']['format']
1525 $cfg['Export']['method'] = 'quick';
1528 * none/zip/gzip
1530 * @global string $cfg['Export']['compression']
1532 $cfg['Export']['compression'] = 'none';
1535 * Whether to LOCK TABLES before exporting
1537 * @global boolean $cfg['Export']['lock_tables']
1539 $cfg['Export']['lock_tables'] = false;
1542 * Whether to export databases/tables as separate files
1544 * @global boolean $cfg['Export']['as_separate_files']
1546 $cfg['Export']['as_separate_files'] = false;
1549 * @global boolean $cfg['Export']['asfile']
1551 $cfg['Export']['asfile'] = true;
1554 * @global string $cfg['Export']['charset']
1556 $cfg['Export']['charset'] = '';
1559 * @global boolean $cfg['Export']['onserver']
1561 $cfg['Export']['onserver'] = false;
1564 * @global boolean $cfg['Export']['onserver_overwrite']
1566 $cfg['Export']['onserver_overwrite'] = false;
1569 * @global boolean $cfg['Export']['quick_export_onserver']
1571 $cfg['Export']['quick_export_onserver'] = false;
1574 * @global boolean $cfg['Export']['quick_export_onserver_overwrite']
1576 $cfg['Export']['quick_export_onserver_overwrite'] = false;
1579 * @global boolean $cfg['Export']['remember_file_template']
1581 $cfg['Export']['remember_file_template'] = true;
1584 * @global string $cfg['Export']['file_template_table']
1586 $cfg['Export']['file_template_table'] = '@TABLE@';
1589 * @global string $cfg['Export']['file_template_database']
1591 $cfg['Export']['file_template_database'] = '@DATABASE@';
1594 * @global string $cfg['Export']['file_template_server']
1596 $cfg['Export']['file_template_server'] = '@SERVER@';
1599 * @global string $cfg['Export']['codegen_structure_or_data']
1601 $cfg['Export']['codegen_structure_or_data'] = 'data';
1604 * @global $cfg['Export']['codegen_format']
1606 $cfg['Export']['codegen_format'] = 0;
1609 * @global boolean $cfg['Export']['ods_columns']
1611 $cfg['Export']['ods_columns'] = false;
1614 * @global string $cfg['Export']['ods_null']
1616 $cfg['Export']['ods_null'] = 'NULL';
1619 * @global string $cfg['Export']['odt_structure_or_data']
1621 $cfg['Export']['odt_structure_or_data'] = 'structure_and_data';
1624 * @global boolean $cfg['Export']['odt_columns']
1626 $cfg['Export']['odt_columns'] = true;
1629 * @global boolean $cfg['Export']['odt_relation']
1631 $cfg['Export']['odt_relation'] = true;
1634 * @global boolean $cfg['Export']['odt_comments']
1636 $cfg['Export']['odt_comments'] = true;
1639 * @global boolean $cfg['Export']['odt_mime']
1641 $cfg['Export']['odt_mime'] = true;
1644 * @global string $cfg['Export']['odt_null']
1646 $cfg['Export']['odt_null'] = 'NULL';
1649 * @global boolean $cfg['Export']['htmlword_structure_or_data']
1651 $cfg['Export']['htmlword_structure_or_data'] = 'structure_and_data';
1654 * @global boolean $cfg['Export']['htmlword_columns']
1656 $cfg['Export']['htmlword_columns'] = false;
1659 * @global string $cfg['Export']['htmlword_null']
1661 $cfg['Export']['htmlword_null'] = 'NULL';
1664 * @global string $cfg['Export']['texytext_structure_or_data']
1666 $cfg['Export']['texytext_structure_or_data'] = 'structure_and_data';
1669 * @global boolean $cfg['Export']['texytext_columns']
1671 $cfg['Export']['texytext_columns'] = false;
1674 * @global string $cfg['Export']['texytext_null']
1676 $cfg['Export']['texytext_null'] = 'NULL';
1679 * @global boolean $cfg['Export']['csv_columns']
1681 $cfg['Export']['csv_columns'] = false;
1684 * @global string $cfg['Export']['csv_structure_or_data']
1686 $cfg['Export']['csv_structure_or_data'] = 'data';
1689 * @global string $cfg['Export']['csv_null']
1691 $cfg['Export']['csv_null'] = 'NULL';
1694 * @global string $cfg['Export']['csv_separator']
1696 $cfg['Export']['csv_separator'] = ',';
1699 * @global string $cfg['Export']['csv_enclosed']
1701 $cfg['Export']['csv_enclosed'] = '"';
1704 * @global string $cfg['Export']['csv_escaped']
1706 $cfg['Export']['csv_escaped'] = '"';
1709 * @global string $cfg['Export']['csv_terminated']
1711 $cfg['Export']['csv_terminated'] = 'AUTO';
1714 * @global string $cfg['Export']['csv_removeCRLF']
1716 $cfg['Export']['csv_removeCRLF'] = false;
1719 * @global boolean $cfg['Export']['excel_columns']
1721 $cfg['Export']['excel_columns'] = true;
1724 * @global string $cfg['Export']['excel_null']
1726 $cfg['Export']['excel_null'] = 'NULL';
1729 * win/mac
1731 * @global string $cfg['Export']['excel_edition']
1733 $cfg['Export']['excel_edition'] = 'win';
1736 * @global string $cfg['Export']['excel_removeCRLF']
1738 $cfg['Export']['excel_removeCRLF'] = false;
1741 * @global string $cfg['Export']['excel_structure_or_data']
1743 $cfg['Export']['excel_structure_or_data'] = 'data';
1746 * @global string $cfg['Export']['latex_structure_or_data']
1748 $cfg['Export']['latex_structure_or_data'] = 'structure_and_data';
1751 * @global boolean $cfg['Export']['latex_columns']
1753 $cfg['Export']['latex_columns'] = true;
1756 * @global boolean $cfg['Export']['latex_relation']
1758 $cfg['Export']['latex_relation'] = true;
1761 * @global boolean $cfg['Export']['latex_comments']
1763 $cfg['Export']['latex_comments'] = true;
1766 * @global boolean $cfg['Export']['latex_mime']
1768 $cfg['Export']['latex_mime'] = true;
1771 * @global string $cfg['Export']['latex_null']
1773 $cfg['Export']['latex_null'] = '\textit{NULL}';
1776 * @global boolean $cfg['Export']['latex_caption']
1778 $cfg['Export']['latex_caption'] = true;
1781 * @global string $cfg['Export']['latex_structure_caption']
1783 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1786 * @global string $cfg['Export']['latex_structure_continued_caption']
1788 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
1791 * @global string $cfg['Export']['latex_data_caption']
1793 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1796 * @global string $cfg['Export']['latex_data_continued_caption']
1798 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1801 * @global string $cfg['Export']['latex_data_label']
1803 $cfg['Export']['latex_data_label'] = 'tab:@TABLE@-data';
1806 * @global string $cfg['Export']['latex_structure_label']
1808 $cfg['Export']['latex_structure_label'] = 'tab:@TABLE@-structure';
1811 * @global string $cfg['Export']['mediawiki_structure_or_data']
1813 $cfg['Export']['mediawiki_structure_or_data'] = 'data';
1816 * @global boolean $cfg['Export']['mediawiki_caption']
1818 $cfg['Export']['mediawiki_caption'] = true;
1821 * @global boolean $cfg['Export']['mediawiki_headers']
1823 $cfg['Export']['mediawiki_headers'] = true;
1826 * @global string $cfg['Export']['ods_structure_or_data']
1828 $cfg['Export']['ods_structure_or_data'] = 'data';
1831 * @global string $cfg['Export']['pdf_structure_or_data']
1833 $cfg['Export']['pdf_structure_or_data'] = 'data';
1836 * @global string $cfg['Export']['phparray_structure_or_data']
1838 $cfg['Export']['phparray_structure_or_data'] = 'data';
1841 * @global string $cfg['Export']['json_structure_or_data']
1843 $cfg['Export']['json_structure_or_data'] = 'data';
1846 * Export functions
1848 * @global string $cfg['Export']['json_pretty_print']
1850 $cfg['Export']['json_pretty_print'] = false;
1853 * Export functions
1855 * @global string $cfg['Export']['json_unicode']
1857 $cfg['Export']['json_unicode'] = true;
1860 * @global string $cfg['Export']['sql_structure_or_data']
1862 $cfg['Export']['sql_structure_or_data'] = 'structure_and_data';
1865 * @global string $cfg['Export']['sql_compatibility']
1867 $cfg['Export']['sql_compatibility'] = 'NONE';
1870 * Whether to include comments in SQL export.
1872 * @global string $cfg['Export']['sql_include_comments']
1874 $cfg['Export']['sql_include_comments'] = true;
1877 * @global boolean $cfg['Export']['sql_disable_fk']
1879 $cfg['Export']['sql_disable_fk'] = false;
1882 * @global boolean $cfg['Export']['sql_views_as_tables']
1884 $cfg['Export']['sql_views_as_tables'] = false;
1887 * @global boolean $cfg['Export']['sql_metadata']
1889 $cfg['Export']['sql_metadata'] = false;
1892 * @global boolean $cfg['Export']['sql_use_transaction']
1894 $cfg['Export']['sql_use_transaction'] = true;
1897 * @global boolean $cfg['Export']['sql_create_database']
1899 $cfg['Export']['sql_create_database'] = false;
1902 * @global boolean $cfg['Export']['sql_drop_database']
1904 $cfg['Export']['sql_drop_database'] = false;
1907 * @global boolean $cfg['Export']['sql_drop_table']
1909 $cfg['Export']['sql_drop_table'] = false;
1912 * true by default for correct behavior when dealing with exporting
1913 * of VIEWs and the stand-in table
1915 * @global boolean $cfg['Export']['sql_if_not_exists']
1917 $cfg['Export']['sql_if_not_exists'] = false;
1920 * @global boolean $cfg['Export']['sql_view_current_user']
1922 $cfg['Export']['sql_view_current_user'] = false;
1925 * @global boolean $cfg['Export']['sql_or_replace']
1927 $cfg['Export']['sql_or_replace_view'] = false;
1930 * @global boolean $cfg['Export']['sql_procedure_function']
1932 $cfg['Export']['sql_procedure_function'] = true;
1935 * @global boolean $cfg['Export']['sql_create_table']
1937 $cfg['Export']['sql_create_table'] = true;
1940 * @global boolean $cfg['Export']['sql_create_view']
1942 $cfg['Export']['sql_create_view'] = true;
1945 * @global boolean $cfg['Export']['sql_create_trigger']
1947 $cfg['Export']['sql_create_trigger'] = true;
1950 * @global boolean $cfg['Export']['sql_auto_increment']
1952 $cfg['Export']['sql_auto_increment'] = true;
1955 * @global boolean $cfg['Export']['sql_backquotes']
1957 $cfg['Export']['sql_backquotes'] = true;
1960 * @global boolean $cfg['Export']['sql_dates']
1962 $cfg['Export']['sql_dates'] = false;
1965 * @global boolean $cfg['Export']['sql_relation']
1967 $cfg['Export']['sql_relation'] = false;
1970 * @global boolean $cfg['Export']['sql_truncate']
1972 $cfg['Export']['sql_truncate'] = false;
1975 * @global boolean $cfg['Export']['sql_delayed']
1977 $cfg['Export']['sql_delayed'] = false;
1980 * @global boolean $cfg['Export']['sql_ignore']
1982 $cfg['Export']['sql_ignore'] = false;
1985 * Export time in UTC.
1987 * @global boolean $cfg['Export']['sql_utc_time']
1989 $cfg['Export']['sql_utc_time'] = true;
1992 * @global boolean $cfg['Export']['sql_hex_for_binary']
1994 $cfg['Export']['sql_hex_for_binary'] = true;
1997 * insert/update/replace
1999 * @global string $cfg['Export']['sql_type']
2001 $cfg['Export']['sql_type'] = 'INSERT';
2004 * @global integer $cfg['Export']['sql_max_query_size']
2006 $cfg['Export']['sql_max_query_size'] = 50000;
2009 * @global boolean $cfg['Export']['sql_mime']
2011 $cfg['Export']['sql_mime'] = false;
2014 * \n is replaced by new line
2016 * @global string $cfg['Export']['sql_header_comment']
2018 $cfg['Export']['sql_header_comment'] = '';
2021 * Whether to use complete inserts, extended inserts, both, or neither
2023 * @global string $cfg['Export']['sql_insert_syntax']
2025 $cfg['Export']['sql_insert_syntax'] = 'both';
2028 * @global string $cfg['Export']['pdf_report_title']
2030 $cfg['Export']['pdf_report_title'] = '';
2033 * @global string $cfg['Export']['xml_structure_or_data']
2035 $cfg['Export']['xml_structure_or_data'] = 'data';
2038 * Export schema for each structure
2040 * @global string $cfg['Export']['xml_export_struc']
2042 $cfg['Export']['xml_export_struc'] = true;
2045 * Export events
2047 * @global string $cfg['Export']['xml_export_events']
2049 $cfg['Export']['xml_export_events'] = true;
2052 * Export functions
2054 * @global string $cfg['Export']['xml_export_functions']
2056 $cfg['Export']['xml_export_functions'] = true;
2059 * Export procedures
2061 * @global string $cfg['Export']['xml_export_procedures']
2063 $cfg['Export']['xml_export_procedures'] = true;
2066 * Export schema for each table
2068 * @global string $cfg['Export']['xml_export_tables']
2070 $cfg['Export']['xml_export_tables'] = true;
2073 * Export triggers
2075 * @global string $cfg['Export']['xml_export_triggers']
2077 $cfg['Export']['xml_export_triggers'] = true;
2080 * Export views
2082 * @global string $cfg['Export']['xml_export_views']
2084 $cfg['Export']['xml_export_views'] = true;
2087 * Export contents data
2089 * @global string $cfg['Export']['xml_export_contents']
2091 $cfg['Export']['xml_export_contents'] = true;
2094 * @global string $cfg['Export']['yaml_structure_or_data']
2096 $cfg['Export']['yaml_structure_or_data'] = 'data';
2098 /*******************************************************************************
2099 * Import defaults
2101 $cfg['Import'] = [];
2104 * @global string $cfg['Import']['format']
2106 $cfg['Import']['format'] = 'sql';
2109 * Default charset for import.
2111 * @global string $cfg['Import']['charset']
2113 $cfg['Import']['charset'] = '';
2116 * @global boolean $cfg['Import']['allow_interrupt']
2118 $cfg['Import']['allow_interrupt'] = true;
2121 * @global integer $cfg['Import']['skip_queries']
2123 $cfg['Import']['skip_queries'] = 0;
2126 * @global string $cfg['Import']['sql_compatibility']
2128 $cfg['Import']['sql_compatibility'] = 'NONE';
2131 * @global string $cfg['Import']['sql_no_auto_value_on_zero']
2133 $cfg['Import']['sql_no_auto_value_on_zero'] = true;
2136 * @global string $cfg['Import']['sql_read_as_multibytes']
2138 $cfg['Import']['sql_read_as_multibytes'] = false;
2141 * @global boolean $cfg['Import']['csv_replace']
2143 $cfg['Import']['csv_replace'] = false;
2146 * @global boolean $cfg['Import']['csv_ignore']
2148 $cfg['Import']['csv_ignore'] = false;
2151 * @global string $cfg['Import']['csv_terminated']
2153 $cfg['Import']['csv_terminated'] = ',';
2156 * @global string $cfg['Import']['csv_enclosed']
2158 $cfg['Import']['csv_enclosed'] = '"';
2161 * @global string $cfg['Import']['csv_escaped']
2163 $cfg['Import']['csv_escaped'] = '"';
2166 * @global string $cfg['Import']['csv_new_line']
2168 $cfg['Import']['csv_new_line'] = 'auto';
2171 * @global string $cfg['Import']['csv_columns']
2173 $cfg['Import']['csv_columns'] = '';
2176 * @global string $cfg['Import']['csv_col_names']
2178 $cfg['Import']['csv_col_names'] = false;
2181 * @global boolean $cfg['Import']['ldi_replace']
2183 $cfg['Import']['ldi_replace'] = false;
2186 * @global boolean $cfg['Import']['ldi_ignore']
2188 $cfg['Import']['ldi_ignore'] = false;
2191 * @global string $cfg['Import']['ldi_terminated']
2193 $cfg['Import']['ldi_terminated'] = ';';
2196 * @global string $cfg['Import']['ldi_enclosed']
2198 $cfg['Import']['ldi_enclosed'] = '"';
2201 * @global string $cfg['Import']['ldi_escaped']
2203 $cfg['Import']['ldi_escaped'] = '\\';
2206 * @global string $cfg['Import']['ldi_new_line']
2208 $cfg['Import']['ldi_new_line'] = 'auto';
2211 * @global string $cfg['Import']['ldi_columns']
2213 $cfg['Import']['ldi_columns'] = '';
2216 * 'auto' for auto-detection, true or false for forcing
2218 * @global string $cfg['Import']['ldi_local_option']
2220 $cfg['Import']['ldi_local_option'] = 'auto';
2223 * @global string $cfg['Import']['ods_col_names']
2225 $cfg['Import']['ods_col_names'] = false;
2228 * @global string $cfg['Import']['ods_empty_rows']
2230 $cfg['Import']['ods_empty_rows'] = true;
2233 * @global string $cfg['Import']['ods_recognize_percentages']
2235 $cfg['Import']['ods_recognize_percentages'] = true;
2238 * @global string $cfg['Import']['ods_recognize_currency']
2240 $cfg['Import']['ods_recognize_currency'] = true;
2242 /*******************************************************************************
2243 * Schema export defaults
2245 $cfg['Schema'] = [];
2248 * pdf/eps/dia/svg
2250 * @global string $cfg['Schema']['format']
2252 $cfg['Schema']['format'] = 'pdf';
2255 * @global string $cfg['Schema']['pdf_show_color']
2257 $cfg['Schema']['pdf_show_color'] = true;
2260 * @global string $cfg['Schema']['pdf_show_keys']
2262 $cfg['Schema']['pdf_show_keys'] = false;
2265 * @global string $cfg['Schema']['pdf_all_tables_same_width']
2267 $cfg['Schema']['pdf_all_tables_same_width'] = false;
2270 * L/P
2272 * @global string $cfg['Schema']['pdf_orientation']
2274 $cfg['Schema']['pdf_orientation'] = 'L';
2277 * @global string $cfg['Schema']['pdf_paper']
2279 $cfg['Schema']['pdf_paper'] = 'A4';
2282 * @global string $cfg['Schema']['pdf_show_grid']
2284 $cfg['Schema']['pdf_show_grid'] = false;
2287 * @global string $cfg['Schema']['pdf_with_doc']
2289 $cfg['Schema']['pdf_with_doc'] = true;
2292 * @global string $cfg['Schema']['pdf_table_order']
2294 $cfg['Schema']['pdf_table_order'] = '';
2297 * @global string $cfg['Schema']['dia_show_color']
2299 $cfg['Schema']['dia_show_color'] = true;
2302 * @global string $cfg['Schema']['dia_show_keys']
2304 $cfg['Schema']['dia_show_keys'] = false;
2307 * L/P
2309 * @global string $cfg['Schema']['dia_orientation']
2311 $cfg['Schema']['dia_orientation'] = 'L';
2314 * @global string $cfg['Schema']['dia_paper']
2316 $cfg['Schema']['dia_paper'] = 'A4';
2319 * @global string $cfg['Schema']['eps_show_color']
2321 $cfg['Schema']['eps_show_color'] = true;
2324 * @global string $cfg['Schema']['eps_show_keys']
2326 $cfg['Schema']['eps_show_keys'] = false;
2329 * @global string $cfg['Schema']['eps_all_tables_same_width']
2331 $cfg['Schema']['eps_all_tables_same_width'] = false;
2334 * L/P
2336 * @global string $cfg['Schema']['eps_orientation']
2338 $cfg['Schema']['eps_orientation'] = 'L';
2341 * @global string $cfg['Schema']['svg_show_color']
2343 $cfg['Schema']['svg_show_color'] = true;
2346 * @global string $cfg['Schema']['svg_show_keys']
2348 $cfg['Schema']['svg_show_keys'] = false;
2351 * @global string $cfg['Schema']['svg_all_tables_same_width']
2353 $cfg['Schema']['svg_all_tables_same_width'] = false;
2355 /*******************************************************************************
2356 * PDF options
2360 * @global array $cfg['PDFPageSizes']
2362 $cfg['PDFPageSizes'] = [
2363 'A3',
2364 'A4',
2365 'A5',
2366 'letter',
2367 'legal',
2371 * @global string $cfg['PDFDefaultPageSize']
2373 $cfg['PDFDefaultPageSize'] = 'A4';
2376 /*******************************************************************************
2377 * Language and character set conversion settings
2381 * Default language to use, if not browser-defined or user-defined
2383 * @global string $cfg['DefaultLang']
2385 $cfg['DefaultLang'] = 'en';
2388 * Default connection collation
2390 * @global string $cfg['DefaultConnectionCollation']
2392 $cfg['DefaultConnectionCollation'] = 'utf8mb4_unicode_ci';
2395 * Force: always use this language, e.g. 'en'
2397 * @global string $cfg['Lang']
2399 $cfg['Lang'] = '';
2402 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
2403 * English only
2405 * @global string $cfg['FilterLanguages']
2407 $cfg['FilterLanguages'] = '';
2410 * You can select here which functions will be used for character set conversion.
2411 * Possible values are:
2412 * auto - automatically use available one (first is tested iconv, then
2413 * recode)
2414 * iconv - use iconv or libiconv functions
2415 * recode - use recode_string function
2416 * mb - use mbstring extension
2417 * none - disable encoding conversion
2419 * @global string $cfg['RecodingEngine']
2421 $cfg['RecodingEngine'] = 'auto';
2424 * Specify some parameters for iconv used in character set conversion. See iconv
2425 * documentation for details:
2426 * https://www.gnu.org/savannah-checkouts/gnu/libiconv/documentation/libiconv-1.15/iconv_open.3.html
2428 * @global string $cfg['IconvExtraParams']
2430 $cfg['IconvExtraParams'] = '//TRANSLIT';
2433 * Available character sets for MySQL conversion. currently contains all which could
2434 * be found in lang/* files and few more.
2435 * Character sets will be shown in same order as here listed, so if you frequently
2436 * use some of these move them to the top.
2438 * @global array $cfg['AvailableCharsets']
2440 $cfg['AvailableCharsets'] = [
2441 'iso-8859-1',
2442 'iso-8859-2',
2443 'iso-8859-3',
2444 'iso-8859-4',
2445 'iso-8859-5',
2446 'iso-8859-6',
2447 'iso-8859-7',
2448 'iso-8859-8',
2449 'iso-8859-9',
2450 'iso-8859-10',
2451 'iso-8859-11',
2452 'iso-8859-12',
2453 'iso-8859-13',
2454 'iso-8859-14',
2455 'iso-8859-15',
2456 'windows-1250',
2457 'windows-1251',
2458 'windows-1252',
2459 'windows-1256',
2460 'windows-1257',
2461 'koi8-r',
2462 'big5',
2463 'gb2312',
2464 'utf-16',
2465 'utf-8',
2466 'utf-7',
2467 'x-user-defined',
2468 'euc-jp',
2469 'ks_c_5601-1987',
2470 'tis-620',
2471 'SHIFT_JIS',
2472 'SJIS',
2473 'SJIS-win',
2477 /*******************************************************************************
2478 * Customization & design
2480 * The graphical settings are now located in themes/theme-name/scss/_variables.scss
2484 * enable the left panel pointer
2486 * @global boolean $cfg['NavigationTreePointerEnable']
2488 $cfg['NavigationTreePointerEnable'] = true;
2491 * enable the browse pointer
2493 * @global boolean $cfg['BrowsePointerEnable']
2495 $cfg['BrowsePointerEnable'] = true;
2498 * enable the browse marker
2500 * @global boolean $cfg['BrowseMarkerEnable']
2502 $cfg['BrowseMarkerEnable'] = true;
2505 * textarea size (columns) in edit mode
2506 * (this value will be emphasized (*2) for SQL
2507 * query textareas and (*1.25) for query window)
2509 * @global integer $cfg['TextareaCols']
2511 $cfg['TextareaCols'] = 40;
2514 * textarea size (rows) in edit mode
2516 * @global integer $cfg['TextareaRows']
2518 $cfg['TextareaRows'] = 15;
2521 * double size of textarea size for LONGTEXT columns
2523 * @global boolean $cfg['LongtextDoubleTextarea']
2525 $cfg['LongtextDoubleTextarea'] = true;
2528 * auto-select when clicking in the textarea of the query-box
2530 * @global boolean $cfg['TextareaAutoSelect']
2532 $cfg['TextareaAutoSelect'] = false;
2535 * textarea size (columns) for CHAR/VARCHAR
2537 * @global integer $cfg['CharTextareaCols']
2539 $cfg['CharTextareaCols'] = 40;
2542 * textarea size (rows) for CHAR/VARCHAR
2544 * @global integer $cfg['CharTextareaRows']
2546 $cfg['CharTextareaRows'] = 7;
2549 * Max field data length in browse mode for all non-numeric fields
2551 * @global integer $cfg['LimitChars']
2553 $cfg['LimitChars'] = 50;
2556 * Where to show the edit/copy/delete links in browse mode
2557 * Possible values are 'left', 'right', 'both' and 'none'.
2559 * @global string $cfg['RowActionLinks']
2561 $cfg['RowActionLinks'] = 'left';
2564 * Whether to show row links (Edit, Copy, Delete) and checkboxes for
2565 * multiple row operations even when the selection does not have a unique key.
2567 * @global boolean $cfg['RowActionLinksWithoutUnique']
2569 $cfg['RowActionLinksWithoutUnique'] = false;
2572 * Default sort order by primary key.
2574 * @global string $cfg['TablePrimaryKeyOrder']
2576 $cfg['TablePrimaryKeyOrder'] = 'NONE';
2579 * remember the last way a table sorted
2581 * @global string $cfg['RememberSorting']
2583 $cfg['RememberSorting'] = true;
2586 * shows column comments in 'browse' mode.
2588 * @global boolean $cfg['ShowBrowseComments']
2590 $cfg['ShowBrowseComments'] = true;
2593 * shows column comments in 'table property' mode.
2595 * @global boolean $cfg['ShowPropertyComments']
2597 $cfg['ShowPropertyComments'] = true;
2600 * repeat header names every X cells? (0 = deactivate)
2602 * @global integer $cfg['RepeatCells']
2604 $cfg['RepeatCells'] = 100;
2607 * Set to true if you want DB-based query history.If false, this utilizes
2608 * JS-routines to display query history (lost by window close)
2610 * @global boolean $cfg['QueryHistoryDB']
2612 $cfg['QueryHistoryDB'] = false;
2615 * When using DB-based query history, how many entries should be kept?
2617 * @global integer $cfg['QueryHistoryMax']
2619 $cfg['QueryHistoryMax'] = 25;
2622 * Use MIME-Types (stored in column comments table) for
2624 * @global boolean $cfg['BrowseMIME']
2626 $cfg['BrowseMIME'] = true;
2629 * When approximate count < this, PMA will get exact count for table rows.
2631 * @global integer $cfg['MaxExactCount']
2633 $cfg['MaxExactCount'] = 50000;
2636 * Zero means that no row count is done for views; see the doc
2638 * @global integer $cfg['MaxExactCountViews']
2640 $cfg['MaxExactCountViews'] = 0;
2643 * Sort table and database in natural order
2645 * @global boolean $cfg['NaturalOrder']
2647 $cfg['NaturalOrder'] = true;
2650 * Initial state for sliders
2651 * (open | closed | disabled)
2653 * @global string $cfg['InitialSlidersState']
2655 $cfg['InitialSlidersState'] = 'closed';
2658 * User preferences: disallow these settings
2659 * For possible setting names look in libraries/config/user_preferences.forms.php
2661 * @global array $cfg['UserprefsDisallow']
2663 $cfg['UserprefsDisallow'] = [];
2666 * User preferences: enable the Developer tab
2668 $cfg['UserprefsDeveloperTab'] = false;
2670 /*******************************************************************************
2671 * Window title settings
2675 * title of browser window when a table is selected
2677 * @global string $cfg['TitleTable']
2679 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2682 * title of browser window when a database is selected
2684 * @global string $cfg['TitleDatabase']
2686 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2689 * title of browser window when a server is selected
2691 * @global string $cfg['TitleServer']
2693 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2696 * title of browser window when nothing is selected
2698 * @global string $cfg['TitleDefault']
2700 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2703 /*******************************************************************************
2704 * theme manager
2708 * if you want to use selectable themes and if ThemesPath not empty
2709 * set it to true, else set it to false (default is false);
2711 * @global boolean $cfg['ThemeManager']
2713 $cfg['ThemeManager'] = true;
2716 * set up default theme, you can set up here an valid
2717 * path to themes or 'original' for the original pma-theme
2719 * @global string $cfg['ThemeDefault']
2721 $cfg['ThemeDefault'] = 'pmahomme';
2724 * allow different theme for each configured server
2726 * @global boolean $cfg['ThemePerServer']
2728 $cfg['ThemePerServer'] = false;
2732 * Default query for table
2734 * @global string $cfg['DefaultQueryTable']
2736 $cfg['DefaultQueryTable'] = 'SELECT * FROM @TABLE@ WHERE 1';
2739 * Default query for database
2741 * @global string $cfg['DefaultQueryDatabase']
2743 $cfg['DefaultQueryDatabase'] = '';
2746 /*******************************************************************************
2747 * SQL Query box settings
2748 * These are the links display in all of the SQL Query boxes
2750 * @global array $cfg['SQLQuery']
2752 $cfg['SQLQuery'] = [];
2755 * Display an "Edit" link on the results page to change a query
2757 * @global boolean $cfg['SQLQuery']['Edit']
2759 $cfg['SQLQuery']['Edit'] = true;
2762 * Display an "Explain SQL" link on the results page
2764 * @global boolean $cfg['SQLQuery']['Explain']
2766 $cfg['SQLQuery']['Explain'] = true;
2769 * Display a "Create PHP code" link on the results page to wrap a query in PHP
2771 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2773 $cfg['SQLQuery']['ShowAsPHP'] = true;
2776 * Display a "Refresh" link on the results page
2778 * @global boolean $cfg['SQLQuery']['Refresh']
2780 $cfg['SQLQuery']['Refresh'] = true;
2783 * Enables autoComplete for table & column names in SQL queries
2785 * default = 'true'
2787 $cfg['EnableAutocompleteForTablesAndColumns'] = true;
2790 /*******************************************************************************
2791 * Web server upload/save/import directories
2795 * Directory for uploaded files that can be executed by phpMyAdmin.
2796 * For example './upload'. Leave empty for no upload directory support.
2797 * Use %u for username inclusion.
2799 * @global string $cfg['UploadDir']
2801 $cfg['UploadDir'] = '';
2804 * Directory where phpMyAdmin can save exported data on server.
2805 * For example './save'. Leave empty for no save directory support.
2806 * Use %u for username inclusion.
2808 * @global string $cfg['SaveDir']
2810 $cfg['SaveDir'] = '';
2813 * Directory where phpMyAdmin can save temporary files.
2815 * @global string $cfg['TempDir']
2817 if (defined('TEMP_DIR')) {
2818 $cfg['TempDir'] = TEMP_DIR;
2819 } else {
2820 $cfg['TempDir'] = ROOT_PATH . 'tmp' . DIRECTORY_SEPARATOR;
2824 * Misc. settings
2828 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2829 * which is the only safe way to determine GD version.
2831 * @global string $cfg['GD2Available']
2833 $cfg['GD2Available'] = 'auto';
2836 * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
2838 * @global array $cfg['TrustedProxies']
2840 $cfg['TrustedProxies'] = [];
2843 * We normally check the permissions on the configuration file to ensure
2844 * it's not world writable. However, phpMyAdmin could be installed on
2845 * a NTFS filesystem mounted on a non-Windows server, in which case the
2846 * permissions seems wrong but in fact cannot be detected. In this case
2847 * a sysadmin would set the following to false.
2849 $cfg['CheckConfigurationPermissions'] = true;
2852 * Limit for length of URL in links. When length would be above this limit, it
2853 * is replaced by form with button.
2854 * This is required as some web servers (IIS) have problems with long URLs.
2855 * The recommended limit is 2000
2856 * (see https://www.boutell.com/newfaq/misc/urllength.html) but we put
2857 * 1000 to accommodate Suhosin, see bug #3358750.
2859 $cfg['LinkLengthLimit'] = 1000;
2862 * Additional string to allow in CSP headers.
2864 $cfg['CSPAllow'] = '';
2867 * Disable the table maintenance mass operations, like optimizing or
2868 * repairing the selected tables of a database. An accidental execution
2869 * of such a maintenance task can enormously slow down a bigger database.
2871 $cfg['DisableMultiTableMaintenance'] = false;
2874 * Whether or not to query the user before sending the error report to
2875 * the phpMyAdmin team when a JavaScript error occurs
2877 * Available options
2878 * (ask | always | never)
2880 * @global string $cfg['SendErrorReports']
2882 $cfg['SendErrorReports'] = 'ask';
2885 * Whether Enter or Ctrl+Enter executes queries in the console.
2887 * @global boolean $cfg['ConsoleEnterExecutes']
2889 $cfg['ConsoleEnterExecutes'] = false;
2892 * Zero Configuration mode.
2894 * @global boolean $cfg['ZeroConf']
2896 $cfg['ZeroConf'] = true;
2898 /*******************************************************************************
2899 * Developers ONLY!
2901 * @global array $cfg['DBG']
2903 $cfg['DBG'] = [];
2906 * Output executed queries and their execution times
2908 * @global boolean $cfg['DBG']['sql']
2910 $cfg['DBG']['sql'] = false;
2913 * Log executed queries and their execution times to syslog
2915 * @global boolean $cfg['DBG']['sqllog']
2917 $cfg['DBG']['sqllog'] = false;
2920 * Enable to let server present itself as demo server.
2922 * @global boolean $cfg['DBG']['demo']
2924 $cfg['DBG']['demo'] = false;
2927 * Enable Simple two-factor authentication
2929 * @global boolean $cfg['DBG']['simple2fa']
2931 $cfg['DBG']['simple2fa'] = false;
2934 * Sets the working environment
2936 * This only needs to be changed when you are developing phpMyAdmin itself.
2937 * The development mode may display debug information in some places.
2939 * Possible values are 'production' or 'development'
2941 $cfg['environment'] = 'production';
2943 /*******************************************************************************
2944 * MySQL settings
2948 * Default functions for above defined groups
2950 * @global array $cfg['DefaultFunctions']
2952 $cfg['DefaultFunctions'] = [
2953 'FUNC_CHAR' => '',
2954 'FUNC_DATE' => '',
2955 'FUNC_NUMBER' => '',
2956 'FUNC_SPATIAL' => 'GeomFromText',
2957 'FUNC_UUID' => 'UUID',
2958 'first_timestamp' => 'NOW',
2962 * Max rows retrieved for zoom search
2964 $cfg['maxRowPlotLimit'] = 500;
2967 * Show Git revision if applicable
2969 * @global boolean $cfg['ShowGitRevision']
2971 $cfg['ShowGitRevision'] = true;
2974 * MySQL minimal version required
2976 * @global array $cfg['MysqlMinVersion']
2978 $cfg['MysqlMinVersion'] = [
2979 'internal' => 50500,
2980 'human' => '5.5.0',
2984 * Disable shortcuts
2986 * @global array $cfg['DisableShortcutKeys']
2988 $cfg['DisableShortcutKeys'] = false;
2991 * Console configuration
2993 * This is mostly meant for user preferences.
2995 $cfg['Console'] = [
2996 'StartHistory' => false,
2997 'AlwaysExpand' => false,
2998 'CurrentQuery' => true,
2999 'EnterExecutes' => false,
3000 'DarkTheme' => false,
3001 'Mode' => 'info',
3002 'Height' => 92,
3003 'GroupQueries' => false,
3004 'OrderBy' => 'exec',
3005 'Order' => 'asc',
3009 /*******************************************************************************
3010 * Default options for transformations
3014 * Initialize default transformations array
3016 * @global array $cfg['DefaultTransformations']
3018 $cfg['DefaultTransformations'] = [];
3021 * Default transformations for Substring
3023 * @global array $cfg['DefaultTransformations']['Substring']
3025 $cfg['DefaultTransformations']['Substring'] = [
3027 'all',
3028 '…',
3032 * Default transformations for Bool2Text
3034 * @global array $cfg['DefaultTransformations']['Bool2Text']
3036 $cfg['DefaultTransformations']['Bool2Text'] = [
3037 'T',
3038 'F',
3042 * Default transformations for External
3044 * @global array $cfg['DefaultTransformations']['External']
3046 $cfg['DefaultTransformations']['External'] = [
3048 '-f /dev/null -i -wrap -q',
3054 * Default transformations for PreApPend
3056 * @global array $cfg['DefaultTransformations']['PreApPend']
3058 $cfg['DefaultTransformations']['PreApPend'] = [
3064 * Default transformations for Hex
3066 * @global array $cfg['DefaultTransformations']['Hex']
3068 $cfg['DefaultTransformations']['Hex'] = ['2'];
3071 * Default transformations for DateFormat
3073 * @global array $cfg['DefaultTransformations']['DateFormat']
3075 $cfg['DefaultTransformations']['DateFormat'] = [
3078 'local',
3082 * Set default for FirstDayOfCalendar
3084 * @global integer $cfg['FirstDayOfCalendar']
3086 $cfg['FirstDayOfCalendar'] = 0;
3089 * Default transformations for Inline
3091 * @global array $cfg['DefaultTransformations']['Inline']
3093 $cfg['DefaultTransformations']['Inline'] = [
3094 '100',
3095 100,
3097 $cfg['DefaultTransformations']['Inline']['wrapper_link'] = null;
3098 $cfg['DefaultTransformations']['Inline']['wrapper_params'] = [];
3101 * Default transformations for TextImageLink
3103 * @global array $cfg['DefaultTransformations']['TextImageLink']
3105 $cfg['DefaultTransformations']['TextImageLink'] = [
3106 null,
3107 100,
3112 * Default transformations for TextLink
3114 * @global array $cfg['DefaultTransformations']['TextLink']
3116 $cfg['DefaultTransformations']['TextLink'] = [
3117 null,
3118 null,
3119 null,