2 /* vim: set expandtab sw=4 ts=4 sts=4: */
5 * N N OOO !! DDDD OOO N N OOO TTTTT EEEE DDDD I TTTTT !!
6 * NN N O O !! D D O O NN N O O T E D D I T !!
7 * N N N O O !! D D O O N N N O O T EEEE D D I T !!
8 * N NN O O D D O O N NN O O T E D D I T
9 * N N OOO !! DDDD OOO N N OOO T EEEE DDDD I T !!
12 * DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
14 * phpMyAdmin default configuration, you can copy values from here to your
17 * All directives are explained in Documentation.html
23 * Your phpMyAdmin URL.
25 * Complete the variable below with the full URL ie
26 * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
28 * It must contain characters that are valid for a URL, and the path is
29 * case sensitive on some Web servers, for example Unix-based servers.
31 * In most cases you can leave this variable empty, as the correct value
32 * will be detected automatically. However, we recommend that you do
33 * test to see that the auto-detection code works in your system. A good
34 * test is to browse a table, then edit a row and save it. There will be
35 * an error message if phpMyAdmin cannot auto-detect the correct value.
37 * @global string $cfg['PmaAbsoluteUri']
39 $cfg['PmaAbsoluteUri'] = '';
42 * Disable the default warning that is displayed on the DB Details Structure page if
43 * any of the required Tables for the configuration storage could not be found
45 * @global boolean $cfg['PmaNoRelation_DisableWarning']
47 $cfg['PmaNoRelation_DisableWarning'] = false;
50 * Disable the default warning that is displayed if Suhosin is detected
52 * @global boolean $cfg['SuhosinDisableWarning']
54 $cfg['SuhosinDisableWarning'] = false;
57 * Disable the default warning that is displayed if mcrypt is missing for
58 * cookie authentication.
60 * @global boolean $cfg['McryptDisableWarning']
62 $cfg['McryptDisableWarning'] = false;
65 * Allows phpMyAdmin to be included from a document located on
66 * another domain; setting this to true is a potential security hole
68 * @global boolean $cfg['AllowThirdPartyFraming']
70 $cfg['AllowThirdPartyFraming'] = false;
73 * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
74 * at least one server configuration uses 'cookie' auth_type, enter here a
75 * pass phrase that will be used by blowfish. The maximum length seems to be 46
78 * @global string $cfg['blowfish_secret']
80 $cfg['blowfish_secret'] = '';
83 /*******************************************************************************
84 * Server(s) configuration
86 * The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
87 * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
88 * to ''. If you want more than one server, just copy following section
89 * (including $i incrementation) several times. There is no need to define
90 * full server array, just define values you need to change.
92 * @global array $cfg['Servers']
94 $cfg['Servers'] = array();
99 * MySQL hostname or IP address
101 * @global string $cfg['Servers'][$i]['host']
103 $cfg['Servers'][$i]['host'] = 'localhost';
106 * MySQL port - leave blank for default port
108 * @global string $cfg['Servers'][$i]['port']
110 $cfg['Servers'][$i]['port'] = '';
113 * Path to the socket - leave blank for default socket
115 * @global string $cfg['Servers'][$i]['socket']
117 $cfg['Servers'][$i]['socket'] = '';
120 * Use SSL for connecting to MySQL server?
122 * @global boolean $cfg['Servers'][$i]['ssl']
124 $cfg['Servers'][$i]['ssl'] = false;
127 * How to connect to MySQL server ('tcp' or 'socket')
129 * @global string $cfg['Servers'][$i]['connect_type']
131 $cfg['Servers'][$i]['connect_type'] = 'tcp';
134 * The PHP MySQL extension to use ('mysql' or 'mysqli')
136 * @global string $cfg['Servers'][$i]['extension']
138 $cfg['Servers'][$i]['extension'] = 'mysql';
141 * Use compressed protocol for the MySQL connection (requires PHP >= 4.3.0)
143 * @global boolean $cfg['Servers'][$i]['compress']
145 $cfg['Servers'][$i]['compress'] = false;
148 * MySQL control user settings (this user must have read-only
149 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
150 * used for all relational features (pmadb)
152 * @global string $cfg['Servers'][$i]['controluser']
154 $cfg['Servers'][$i]['controluser'] = '';
157 * MySQL control user settings (this user must have read-only
158 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
159 * used for all relational features (pmadb)
161 * @global string $cfg['Servers'][$i]['controlpass']
163 $cfg['Servers'][$i]['controlpass'] = '';
166 * Authentication method (valid choices: config, http, signon or cookie)
168 * @global string $cfg['Servers'][$i]['auth_type']
170 $cfg['Servers'][$i]['auth_type'] = 'cookie';
173 * HTTP Basic Auth Realm name to display (only used with 'HTTP' auth_type)
175 * @global string $cfg['Servers'][$i]['auth_http_realm']
177 $cfg['Servers'][$i]['auth_http_realm'] = '';
180 * File containing Swekey ids and login names (see /contrib);
181 * leave empty to deactivate Swekey hardware authentication
183 * @global string $cfg['Servers'][$i]['auth_swekey_config']
185 $cfg['Servers'][$i]['auth_swekey_config'] = '';
190 * @global string $cfg['Servers'][$i]['user']
192 $cfg['Servers'][$i]['user'] = 'root';
195 * MySQL password (only needed with 'config' auth_type)
197 * @global string $cfg['Servers'][$i]['password']
199 $cfg['Servers'][$i]['password'] = '';
202 * Session to use for 'signon' authentication method
204 * @global string $cfg['Servers'][$i]['SignonSession']
206 $cfg['Servers'][$i]['SignonSession'] = '';
209 * URL where to redirect user to login for 'signon' authentication method
211 * @global string $cfg['Servers'][$i]['SignonURL']
213 $cfg['Servers'][$i]['SignonURL'] = '';
216 * URL where to redirect user after logout
218 * @global string $cfg['Servers'][$i]['LogoutURL']
220 $cfg['Servers'][$i]['LogoutURL'] = '';
223 * Whether to try to connect without password
225 * @global boolean $cfg['Servers'][$i]['nopassword']
227 $cfg['Servers'][$i]['nopassword'] = false;
230 * If set to a db-name, only this db is displayed in left frame
231 * It may also be an array of db-names, where sorting order is relevant.
233 * @global string $cfg['Servers'][$i]['only_db']
235 $cfg['Servers'][$i]['only_db'] = '';
238 * Database name to be hidden from listings
240 * @global string $cfg['Servers'][$i]['hide_db']
242 $cfg['Servers'][$i]['hide_db'] = '';
245 * Verbose name for this host - leave blank to show the hostname
246 * (for HTTP authentication, all non-US-ASCII characters will be stripped)
248 * @global string $cfg['Servers'][$i]['verbose']
250 $cfg['Servers'][$i]['verbose'] = '';
253 * Database used for Relation, Bookmark and PDF Features
254 * (see scripts/create_tables.sql)
255 * - leave blank for no support
256 * SUGGESTED: 'phpmyadmin'
258 * @global string $cfg['Servers'][$i]['pmadb']
260 $cfg['Servers'][$i]['pmadb'] = '';
264 * - leave blank for no bookmark support
265 * SUGGESTED: 'pma_bookmark'
267 * @global string $cfg['Servers'][$i]['bookmarktable']
269 $cfg['Servers'][$i]['bookmarktable'] = '';
272 * table to describe the relation between links (see doc)
273 * - leave blank for no relation-links support
274 * SUGGESTED: 'pma_relation'
276 * @global string $cfg['Servers'][$i]['relation']
278 $cfg['Servers'][$i]['relation'] = '';
281 * table to describe the display fields
282 * - leave blank for no display fields support
283 * SUGGESTED: 'pma_table_info'
285 * @global string $cfg['Servers'][$i]['table_info']
287 $cfg['Servers'][$i]['table_info'] = '';
290 * table to describe the tables position for the PDF schema
291 * - leave blank for no PDF schema support
292 * SUGGESTED: 'pma_table_coords'
294 * @global string $cfg['Servers'][$i]['table_coords']
296 $cfg['Servers'][$i]['table_coords'] = '';
299 * table to describe pages of relationpdf
300 * - leave blank if you don't want to use this
301 * SUGGESTED: 'pma_pdf_pages'
303 * @global string $cfg['Servers'][$i]['pdf_pages']
305 $cfg['Servers'][$i]['pdf_pages'] = '';
308 * table to store column information
309 * - leave blank for no column comments/mime types
310 * SUGGESTED: 'pma_column_info'
312 * @global string $cfg['Servers'][$i]['column_info']
314 $cfg['Servers'][$i]['column_info'] = '';
317 * table to store SQL history
318 * - leave blank for no SQL query history
319 * SUGGESTED: 'pma_history'
321 * @global string $cfg['Servers'][$i]['history']
323 $cfg['Servers'][$i]['history'] = '';
326 * table to store the coordinates for Designer
327 * - leave blank for no Designer feature
328 * SUGGESTED: 'pma_designer_coords'
330 * @global string $cfg['Servers'][$i]['designer_coords']
332 $cfg['Servers'][$i]['designer_coords'] = '';
335 * table to store SQL tracking
336 * - leave blank for no SQL tracking
337 * SUGGESTED: 'pma_tracking'
339 * @global string $cfg['Servers'][$i]['tracking']
341 $cfg['Servers'][$i]['tracking'] = '';
344 * table to store user preferences
345 * - leave blank to disable server storage
346 * SUGGESTED: 'pma_userconfig'
348 * @global string $cfg['Servers'][$i]['userconfig']
350 $cfg['Servers'][$i]['userconfig'] = '';
353 * set to false if you know that your pma_* tables are up to date.
354 * This prevents compatibility checks and thereby increases performance.
356 * @global boolean $cfg['Servers'][$i]['verbose_check']
358 $cfg['Servers'][$i]['verbose_check'] = true;
361 * whether to allow root login
363 * @global boolean $cfg['Servers'][$i]['AllowRoot']
365 $cfg['Servers'][$i]['AllowRoot'] = true;
368 * whether to allow login of any user without a password
370 * @global boolean $cfg['Servers'][$i]['AllowNoPassword']
372 $cfg['Servers'][$i]['AllowNoPassword'] = false;
375 * Host authentication order, leave blank to not use
377 * @global string $cfg['Servers'][$i]['AllowDeny']['order']
379 $cfg['Servers'][$i]['AllowDeny']['order'] = '';
382 * Host authentication rules, leave blank for defaults
384 * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
386 $cfg['Servers'][$i]['AllowDeny']['rules'] = array();
389 * Disable use of INFORMATION_SCHEMA
391 * @see http://sf.net/support/tracker.php?aid=1849494
392 * @see http://bugs.mysql.com/19588
393 * @global boolean $cfg['Servers'][$i]['DisableIS']
395 $cfg['Servers'][$i]['DisableIS'] = true;
398 * SQL command to fetch available databases
400 * by default most user will be fine with SHOW DATABASES,
401 * for servers with a huge amount of databases it is possible to
402 * define a command which executes faster but with less information
404 * especially when accessing database servers from ISPs changing this command
405 * can result in a great speed improvement
407 * false will disable fetching databases from the server, only databases in
408 * $cfg['Servers'][$i]['only_db'] will be displayed
410 * #user# will be replaced by current user
414 * "SHOW DATABASES LIKE '#user#\_%'"
415 * 'SELECT DISTINCT TABLE_SCHEMA FROM information_schema.SCHEMA_PRIVILEGES'
416 * 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA'
419 * @global array $cfg['Servers'][$i]['ShowDatabasesCommand']
421 $cfg['Servers'][$i]['ShowDatabasesCommand'] = 'SHOW DATABASES';
424 * Whether to count tables when showing database list
426 * @global array $cfg['Servers'][$i]['CountTables']
428 $cfg['Servers'][$i]['CountTables'] = false;
431 * Whether the tracking mechanism creates versions for tables and views automatically.
433 * @global bool $cfg['Servers'][$i]['tracking_version_auto_create']
436 $cfg['Servers'][$i]['tracking_version_auto_create'] = false;
439 * Defines the list of statements the auto-creation uses for new versions.
441 * @global string $cfg['Servers'][$i]['tracking_default_statements']
444 $cfg['Servers'][$i]['tracking_default_statements'] = 'CREATE TABLE,ALTER TABLE,DROP TABLE,RENAME TABLE,' .
445 'CREATE INDEX,DROP INDEX,' .
446 'INSERT,UPDATE,DELETE,TRUNCATE,REPLACE,' .
447 'CREATE VIEW,ALTER VIEW,DROP VIEW,' .
448 'CREATE DATABASE,ALTER DATABASE,DROP DATABASE';
451 * Whether a DROP VIEW IF EXISTS statement will be added as first line to the log when creating a view.
453 * @global bool $cfg['Servers'][$i]['tracking_add_drop_view']
456 $cfg['Servers'][$i]['tracking_add_drop_view'] = true;
459 * Whether a DROP TABLE IF EXISTS statement will be added as first line to the log when creating a table.
461 * @global bool $cfg['Servers'][$i]['tracking_add_drop_table']
464 $cfg['Servers'][$i]['tracking_add_drop_table'] = true;
467 * Whether a DROP DATABASE IF EXISTS statement will be added as first line to the log when creating a database.
469 * @global bool $cfg['Servers'][$i]['tracking_add_drop_database']
472 $cfg['Servers'][$i]['tracking_add_drop_database'] = true;
475 * Default server (0 = no default server)
477 * If you have more than one server configured, you can set $cfg['ServerDefault']
478 * to any one of them to auto-connect to that server when phpMyAdmin is started,
479 * or set it to 0 to be given a list of servers without logging in
480 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
481 * set to that server.
483 * @global integer $cfg['ServerDefault']
485 $cfg['ServerDefault'] = 1;
488 * Other core phpMyAdmin settings
491 * whether Ajax behavior is active
493 * @global boolean $cfg['AjaxEnable']
495 $cfg['AjaxEnable'] = true;
498 * whether version check is active
500 * @global boolean $cfg['VersionCheck']
502 $cfg['VersionCheck'] = VERSION_CHECK_DEFAULT
;
505 * maximum number of db's displayed in left frame and database list
507 * @global integer $cfg['MaxDbList']
509 $cfg['MaxDbList'] = 100;
512 * maximum number of tables displayed in table list
514 * @global integer $cfg['MaxTableList']
516 $cfg['MaxTableList'] = 250;
519 * maximum number of characters when a SQL query is displayed
521 * @global integer $cfg['MaxCharactersInDisplayedSQL']
523 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
526 * use GZIP output buffering if possible (true|false|'auto')
528 * @global string $cfg['OBGzip']
530 $cfg['OBGzip'] = 'auto';
533 * use persistent connections to MySQL database
535 * @global boolean $cfg['PersistentConnections']
537 $cfg['PersistentConnections'] = false;
540 * whether to force using HTTPS
542 * @global boolean $cfg['ForceSSL']
544 $cfg['ForceSSL'] = false;
547 * maximum execution time in seconds (0 for no limit)
549 * @global integer $cfg['ExecTimeLimit']
551 $cfg['ExecTimeLimit'] = 300;
554 * Path for storing session data (session_save_path PHP parameter).
556 * @global integer $cfg['SessionSavePath']
558 $cfg['SessionSavePath'] = '';
561 * maximum allocated bytes ('0' for no limit)
562 * this is a string because '16M' is a valid value; we must put here
563 * a string as the default value so that /setup accepts strings
565 * @global string $cfg['MemoryLimit']
567 $cfg['MemoryLimit'] = '0';
570 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
572 * @global boolean $cfg['SkipLockedTables']
574 $cfg['SkipLockedTables'] = false;
577 * show SQL queries as run
579 * @global boolean $cfg['ShowSQL']
581 $cfg['ShowSQL'] = true;
584 * show a 'Drop database' link to normal users
586 * @global boolean $cfg['AllowUserDropDatabase']
588 $cfg['AllowUserDropDatabase'] = false;
591 * confirm some commands that can result in loss of data
592 * (see "need_confirm" in the parser)
594 * @global boolean $cfg['Confirm']
596 $cfg['Confirm'] = true;
599 * recall previous login in cookie authentication mode or not
601 * @global boolean $cfg['LoginCookieRecall']
603 $cfg['LoginCookieRecall'] = true;
606 * validity of cookie login (in seconds; 1440 matches php.ini's
607 * session.gc_maxlifetime)
609 * @global integer $cfg['LoginCookieValidity']
611 $cfg['LoginCookieValidity'] = 1440;
614 * how long login cookie should be stored (in seconds)
616 * @global integer $cfg['LoginCookieStore']
618 $cfg['LoginCookieStore'] = 0;
621 * whether to delete all login cookies on logout
623 * @global boolean $cfg['LoginCookieDeleteAll']
625 $cfg['LoginCookieDeleteAll'] = true;
628 * whether to enable the "database search" feature or not
630 * @global boolean $cfg['UseDbSearch']
632 $cfg['UseDbSearch'] = true;
635 * if set to true, PMA continues computing multiple-statement queries
636 * even if one of the queries failed
638 * @global boolean $cfg['IgnoreMultiSubmitErrors']
640 $cfg['IgnoreMultiSubmitErrors'] = false;
643 * if set to true, PMA will show the affected rows of EACH statement on
644 * multiple-statement queries. See the libraries/import.php file for
645 * hard coded defaults on how many queries a statement may contain!
647 * @global boolean $cfg['VerboseMultiSubmit']
649 $cfg['VerboseMultiSubmit'] = true;
652 * allow login to any user entered server in cookie based authentication
654 * @global boolean $cfg['AllowArbitraryServer']
656 $cfg['AllowArbitraryServer'] = false;
659 /*******************************************************************************
660 * Error handler configuration
662 * this configures phpMyAdmin's own error handler, it is used to avoid information
663 * disclosure, gather errors for logging, reporting and displaying
665 * @global array $cfg['Error_Handler']
667 $cfg['Error_Handler'] = array();
670 * whether to display errors or not
672 * this does not affect errors of type E_USER_*
674 * @global boolean $cfg['Error_Handler']['display']
676 $cfg['Error_Handler']['display'] = false;
679 * (NOT IMPLEMENTED YET)
680 * where to log errors, false or empty to disable
683 * // EXAMPLE log to std PHP error log
684 * $cfg['Error_Handler']['log'] = array(0);
685 * // EXAMPLE mail errors
686 * $cfg['Error_Handler']['log'] = array(1, 'admin@example.org');
687 * // EXAMPLE append to specific file
688 * $cfg['Error_Handler']['log'] = array(3, '/var/log/phpmyadmin_error.log');
691 * @see http://php.net/error_log
692 * @global string $cfg['Error_Handler']['log']
694 //$cfg['Error_Handler']['log'] = false;
697 * gather all errors in session to be displayed on a error reporting page
698 * for viewing and/or sending to phpMyAdmin developer team
700 * @global boolean $cfg['Error_Handler']['gather']
702 $cfg['Error_Handler']['gather'] = false;
705 /*******************************************************************************
710 * use a select-based menu and display only the current tables in the left frame.
712 * @global boolean $cfg['LeftFrameLight']
714 $cfg['LeftFrameLight'] = true;
717 * turn the select-based light menu into a tree
719 * @global boolean $cfg['LeftFrameDBTree']
721 $cfg['LeftFrameDBTree'] = true;
724 * the separator to sub-tree the select-based light menu tree
726 * @global string $cfg['LeftFrameDBSeparator']
728 $cfg['LeftFrameDBSeparator'] = '_';
731 * Which string will be used to generate table prefixes
732 * to split/nest tables into multiple categories
734 * @global string $cfg['LeftFrameTableSeparator']
736 $cfg['LeftFrameTableSeparator']= '__';
739 * How many sublevels should be displayed when splitting up tables by the above Separator
741 * @global integer $cfg['LeftFrameTableLevel']
743 $cfg['LeftFrameTableLevel'] = 1;
746 * display table comment as tooltip in left frame
748 * @global boolean $cfg['ShowTooltip']
750 $cfg['ShowTooltip'] = true;
753 * if ShowToolTip is enabled, this defines that table/db comments
755 * @global boolean $cfg['ShowTooltipAliasDB']
757 $cfg['ShowTooltipAliasDB'] = false;
760 * are shown (in the left menu and db_structure) instead of table/db names.
761 * Setting ShowTooltipAliasTB to 'nested' will only use the Aliases for nested
762 * descriptors, not the table itself.
764 * @global boolean $cfg['ShowTooltipAliasTB']
766 $cfg['ShowTooltipAliasTB'] = false;
769 * display logo at top of left frame
771 * @global boolean $cfg['LeftDisplayLogo']
773 $cfg['LeftDisplayLogo'] = true;
776 * where should logo link point to (can also contain an external URL)
778 * @global string $cfg['LeftLogoLink']
780 $cfg['LeftLogoLink'] = 'main.php';
783 * whether to open the linked page in the main window ('main') or
784 * in a new window ('new')
786 * @global string $cfg['LeftLogoLinkWindow']
788 $cfg['LeftLogoLinkWindow'] = 'main';
791 * display a JavaScript table filter in the left frame
792 * when more then x tables are present
794 * @global boolean $cfg['LeftDisplayTableFilterMinimum']
796 $cfg['LeftDisplayTableFilterMinimum'] = 30;
799 * display server choice at top of left frame
801 * @global boolean $cfg['LeftDisplayServers']
803 $cfg['LeftDisplayServers'] = false;
806 * server choice as links
808 * @global boolean $cfg['DisplayServersList']
810 $cfg['DisplayServersList'] = false;
813 * database choice in light as links
815 * @global boolean $cfg['DisplayDatabasesList']
817 $cfg['DisplayDatabasesList'] = 'auto';
820 * target of the navigation panel quick access icon
823 * 'tbl_structure.php' = fields list
824 * 'tbl_sql.php' = SQL form
825 * 'tbl_select.php' = search page
826 * 'tbl_change.php' = insert row page
827 * 'sql.php' = browse page
829 * @global string $cfg['LeftDefaultTabTable']
831 $cfg['LeftDefaultTabTable'] = 'tbl_structure.php';
834 /*******************************************************************************
835 * In the main frame, at startup...
839 * allow to display statistics and space usage in the pages about database
840 * details and table properties
842 * @global boolean $cfg['ShowStats']
844 $cfg['ShowStats'] = true;
849 * @global boolean $cfg['ShowPhpInfo']
851 $cfg['ShowPhpInfo'] = false;
854 * show MySQL server and web server information
856 * @global boolean $cfg['ShowServerInfo']
858 $cfg['ShowServerInfo'] = true;
861 * show change password link
863 * @global boolean $cfg['ShowChgPassword']
865 $cfg['ShowChgPassword'] = true;
868 * show create database form
870 * @global boolean $cfg['ShowCreateDb']
872 $cfg['ShowCreateDb'] = true;
875 * suggest a new DB name if possible (false = keep empty)
877 * @global boolean $cfg['SuggestDBName']
879 $cfg['SuggestDBName'] = true;
882 /*******************************************************************************
887 * Use icons instead of text for the navigation bar buttons
888 * and on right panel top menu (server db table) (true|false|'both')
890 * @global string $cfg['NavigationBarIconic']
892 $cfg['NavigationBarIconic'] = true;
895 * Defines whether a user should be displayed a "show all (records)"
896 * button in browse mode or not.
898 * @global boolean $cfg['ShowAll']
900 $cfg['ShowAll'] = false;
903 * Number of rows displayed when browsing a result set. If the result
904 * set contains more rows, "Previous" and "Next".
906 * @global integer $cfg['MaxRows']
908 $cfg['MaxRows'] = 30;
911 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
912 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
913 * ascending order else-)
915 * @global string $cfg['Order']
917 $cfg['Order'] = 'SMART';
920 * default for 'Show binary contents as HEX'
922 * @global string $cfg['DisplayBinaryAsHex']
924 $cfg['DisplayBinaryAsHex'] = true;
927 /*******************************************************************************
932 * disallow editing of binary fields
934 * false allow editing
935 * 'blob' allow editing except for BLOB fields
936 * 'all' disallow editing
938 * @global string $cfg['ProtectBinary']
940 $cfg['ProtectBinary'] = 'blob';
943 * Display the function fields in edit/insert mode
945 * @global boolean $cfg['ShowFunctionFields']
947 $cfg['ShowFunctionFields'] = true;
950 * Display the type fields in edit/insert mode
952 * @global boolean $cfg['ShowFieldTypesInDataEditView']
954 $cfg['ShowFieldTypesInDataEditView'] = true;
957 * Which editor should be used for CHAR/VARCHAR fields:
958 * input - allows limiting of input length
959 * textarea - allows newlines in fields
961 * @global string $cfg['CharEditing']
963 $cfg['CharEditing'] = 'input';
966 * How many rows can be inserted at one time
968 * @global integer $cfg['InsertRows']
970 $cfg['InsertRows'] = 2;
973 * Sort order for items in a foreign-key drop-down list.
974 * 'content' is the referenced data, 'id' is the key value.
976 * @global array $cfg['ForeignKeyDropdownOrder']
978 $cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
981 * A drop-down list will be used if fewer items are present
983 * @global integer $cfg['ForeignKeyMaxLimit']
985 $cfg['ForeignKeyMaxLimit'] = 100;
988 /*******************************************************************************
989 * For the export features...
993 * Allow for the use of zip compression (requires zip support to be enabled)
995 * @global boolean $cfg['ZipDump']
997 $cfg['ZipDump'] = true;
1000 * Allow for the use of gzip compression (requires zlib)
1002 * @global boolean $cfg['GZipDump']
1004 $cfg['GZipDump'] = true;
1007 * Allow for the use of bzip2 compression (requires bz2 extension)
1009 * @global boolean $cfg['BZipDump']
1011 $cfg['BZipDump'] = true;
1014 * Will compress gzip/bzip2 exports on the fly without the need for much memory.
1015 * If you encounter problems with created gzip/bzip2 files disable this feature.
1017 * @global boolean $cfg['CompressOnFly']
1019 $cfg['CompressOnFly'] = true;
1022 /*******************************************************************************
1023 * Tabs display settings
1027 * Use graphically less intense menu tabs
1029 * @global boolean $cfg['LightTabs']
1031 $cfg['LightTabs'] = false;
1034 * Use icons instead of text for the table display of a database (true|false|'both')
1036 * @global boolean $cfg['PropertiesIconic']
1038 $cfg['PropertiesIconic'] = 'both';
1041 * How many columns should be used for table display of a database?
1042 * (a value larger than 1 results in some information being hidden)
1044 * @global integer $cfg['PropertiesNumColumns']
1046 $cfg['PropertiesNumColumns'] = 1;
1050 * 'main.php' = the welcome page
1051 * (recommended for multiuser setups)
1052 * 'server_databases.php' = list of databases
1053 * 'server_status.php' = runtime information
1054 * 'server_variables.php' = MySQL server variables
1055 * 'server_privileges.php' = user management
1056 * 'server_processlist.php' = process list
1058 * @global string $cfg['DefaultTabServer']
1060 $cfg['DefaultTabServer'] = 'main.php';
1064 * 'db_structure.php' = tables list
1065 * 'db_sql.php' = SQL form
1066 * 'db_search.php' = search query
1067 * 'db_operations.php' = operations on database
1069 * @global string $cfg['DefaultTabDatabase']
1071 $cfg['DefaultTabDatabase'] = 'db_structure.php';
1075 * 'tbl_structure.php' = fields list
1076 * 'tbl_sql.php' = SQL form
1077 * 'tbl_select.php' = search page
1078 * 'tbl_change.php' = insert row page
1079 * 'sql.php' = browse page
1081 * @global string $cfg['DefaultTabTable']
1083 $cfg['DefaultTabTable'] = 'sql.php';
1085 /*******************************************************************************
1088 $cfg['Export'] = array();
1091 * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xls/xml/yaml
1093 * @global string $cfg['Export']['format']
1095 $cfg['Export']['format'] = 'sql';
1098 * quick/custom/custom-no-form
1100 * @global string $cfg['Export']['format']
1102 $cfg['Export']['method'] = 'quick';
1105 * none/zip/gzip/bzip2
1107 * @global string $cfg['Export']['compression']
1109 $cfg['Export']['compression'] = 'none';
1114 * @global boolean $cfg['Export']['asfile']
1116 $cfg['Export']['asfile'] = true;
1121 * @global string $cfg['Export']['charset']
1123 $cfg['Export']['charset'] = '';
1128 * @global boolean $cfg['Export']['onserver']
1130 $cfg['Export']['onserver'] = false;
1135 * @global boolean $cfg['Export']['onserver_overwrite']
1137 $cfg['Export']['onserver_overwrite'] = false;
1142 * @global boolean $cfg['Export']['quick_export_onserver']
1144 $cfg['Export']['quick_export_onserver'] = false;
1149 * @global boolean $cfg['Export']['quick_export_onserver_overwrite']
1151 $cfg['Export']['quick_export_onserver_overwrite'] = false;
1156 * @global boolean $cfg['Export']['remember_file_template']
1158 $cfg['Export']['remember_file_template'] = true;
1163 * @global string $cfg['Export']['file_template_table']
1165 $cfg['Export']['file_template_table'] = '@TABLE@';
1170 * @global string $cfg['Export']['file_template_database']
1172 $cfg['Export']['file_template_database'] = '@DATABASE@';
1177 * @global string $cfg['Export']['file_template_server']
1179 $cfg['Export']['file_template_server'] = '@SERVER@';
1184 * @global string $cfg['Export']['codegen_structure_or_data']
1186 $cfg['Export']['codegen_structure_or_data'] = 'data';
1191 * @global $cfg['Export']['codegen_format']
1193 $cfg['Export']['codegen_format'] = 0;
1198 * @global boolean $cfg['Export']['ods_columns']
1200 $cfg['Export']['ods_columns'] = false;
1205 * @global string $cfg['Export']['ods_null']
1207 $cfg['Export']['ods_null'] = 'NULL';
1212 * @global string $cfg['Export']['odt_structure_or_data']
1214 $cfg['Export']['odt_structure_or_data'] = 'structure_and_data';
1219 * @global boolean $cfg['Export']['odt_columns']
1221 $cfg['Export']['odt_columns'] = true;
1226 * @global boolean $cfg['Export']['odt_relation']
1228 $cfg['Export']['odt_relation'] = true;
1233 * @global boolean $cfg['Export']['odt_comments']
1235 $cfg['Export']['odt_comments'] = true;
1240 * @global boolean $cfg['Export']['odt_mime']
1242 $cfg['Export']['odt_mime'] = true;
1247 * @global string $cfg['Export']['odt_null']
1249 $cfg['Export']['odt_null'] = 'NULL';
1254 * @global boolean $cfg['Export']['htmlword_structure_or_data']
1256 $cfg['Export']['htmlword_structure_or_data'] = 'structure_and_data';
1261 * @global boolean $cfg['Export']['htmlword_columns']
1263 $cfg['Export']['htmlword_columns'] = false;
1268 * @global string $cfg['Export']['htmlword_null']
1270 $cfg['Export']['htmlword_null'] = 'NULL';
1275 * @global string $cfg['Export']['texytext_structure_or_data']
1277 $cfg['Export']['texytext_structure_or_data'] = 'structure_and_data';
1282 * @global boolean $cfg['Export']['texytext_columns']
1284 $cfg['Export']['texytext_columns'] = FALSE;
1289 * @global string $cfg['Export']['texytext_null']
1291 $cfg['Export']['texytext_null'] = 'NULL';
1296 * @global boolean $cfg['Export']['xls_columns']
1298 $cfg['Export']['xls_columns'] = false;
1303 * @global string $cfg['Export']['xls_structure_or_data']
1305 $cfg['Export']['xls_structure_or_data'] = 'data';
1310 * @global string $cfg['Export']['xls_null']
1312 $cfg['Export']['xls_null'] = 'NULL';
1317 * @global boolean $cfg['Export']['xlsx_columns']
1319 $cfg['Export']['xlsx_columns'] = false;
1324 * @global string $cfg['Export']['xlsx_structure_or_data']
1326 $cfg['Export']['xlsx_structure_or_data'] = 'data';
1331 * @global string $cfg['Export']['xlsx_null']
1333 $cfg['Export']['xlsx_null'] = 'NULL';
1338 * @global boolean $cfg['Export']['csv_columns']
1340 $cfg['Export']['csv_columns'] = false;
1345 * @global string $cfg['Export']['csv_structure_or_data']
1347 $cfg['Export']['csv_structure_or_data'] = 'data';
1352 * @global string $cfg['Export']['csv_null']
1354 $cfg['Export']['csv_null'] = 'NULL';
1359 * @global string $cfg['Export']['csv_separator']
1361 $cfg['Export']['csv_separator'] = ',';
1366 * @global string $cfg['Export']['csv_enclosed']
1368 $cfg['Export']['csv_enclosed'] = '"';
1373 * @global string $cfg['Export']['csv_escaped']
1375 $cfg['Export']['csv_escaped'] = '\\';
1380 * @global string $cfg['Export']['csv_terminated']
1382 $cfg['Export']['csv_terminated'] = 'AUTO';
1387 * @global string $cfg['Export']['csv_removeCRLF']
1389 $cfg['Export']['csv_removeCRLF'] = false;
1394 * @global boolean $cfg['Export']['excel_columns']
1396 $cfg['Export']['excel_columns'] = false;
1401 * @global string $cfg['Export']['excel_null']
1403 $cfg['Export']['excel_null'] = 'NULL';
1408 * @global string $cfg['Export']['excel_edition']
1410 $cfg['Export']['excel_edition'] = 'win';
1415 * @global string $cfg['Export']['excel_removeCRLF']
1417 $cfg['Export']['excel_removeCRLF'] = false;
1422 * @global string $cfg['Export']['excel_structure_or_data']
1424 $cfg['Export']['excel_structure_or_data'] = 'data';
1429 * @global string $cfg['Export']['latex_structure_or_data']
1431 $cfg['Export']['latex_structure_or_data'] = 'structure_and_data';
1436 * @global boolean $cfg['Export']['latex_columns']
1438 $cfg['Export']['latex_columns'] = true;
1443 * @global boolean $cfg['Export']['latex_relation']
1445 $cfg['Export']['latex_relation'] = true;
1450 * @global boolean $cfg['Export']['latex_comments']
1452 $cfg['Export']['latex_comments'] = true;
1457 * @global boolean $cfg['Export']['latex_mime']
1459 $cfg['Export']['latex_mime'] = true;
1464 * @global string $cfg['Export']['latex_null']
1466 $cfg['Export']['latex_null'] = '\textit{NULL}';
1471 * @global boolean $cfg['Export']['latex_caption']
1473 $cfg['Export']['latex_caption'] = true;
1478 * @global string $cfg['Export']['latex_structure_caption']
1480 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1485 * @global string $cfg['Export']['latex_structure_continued_caption']
1487 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
1492 * @global string $cfg['Export']['latex_data_caption']
1494 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1499 * @global string $cfg['Export']['latex_data_continued_caption']
1501 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1506 * @global string $cfg['Export']['latex_data_label']
1508 $cfg['Export']['latex_data_label'] = 'tab:@TABLE@-data';
1513 * @global string $cfg['Export']['latex_structure_label']
1515 $cfg['Export']['latex_structure_label'] = 'tab:@TABLE@-structure';
1520 * @global string $cfg['Export']['mediawiki_structure_or_data']
1522 $cfg['Export']['mediawiki_structure_or_data'] = 'data';
1527 * @global string $cfg['Export']['ods_structure_or_data']
1529 $cfg['Export']['ods_structure_or_data'] = 'data';
1534 * @global string $cfg['Export']['pdf_structure_or_data']
1536 $cfg['Export']['pdf_structure_or_data'] = 'data';
1541 * @global string $cfg['Export']['php_array_structure_or_data']
1543 $cfg['Export']['php_array_structure_or_data'] = 'data';
1548 * @global string $cfg['Export']['json_structure_or_data']
1550 $cfg['Export']['json_structure_or_data'] = 'data';
1555 * @global string $cfg['Export']['sql_structure_or_data']
1557 $cfg['Export']['sql_structure_or_data'] = 'structure_and_data';
1562 * @global string $cfg['Export']['sql_compatibility']
1564 $cfg['Export']['sql_compatibility'] = 'NONE';
1567 * Whether to include comments in SQL export.
1569 * @global string $cfg['Export']['sql_include_comments']
1571 $cfg['Export']['sql_include_comments'] = true;
1576 * @global boolean $cfg['Export']['sql_disable_fk']
1578 $cfg['Export']['sql_disable_fk'] = false;
1583 * @global boolean $cfg['Export']['sql_use_transaction']
1585 $cfg['Export']['sql_use_transaction'] = false;
1590 * @global boolean $cfg['Export']['sql_drop_database']
1592 $cfg['Export']['sql_drop_database'] = false;
1597 * @global boolean $cfg['Export']['sql_drop_table']
1599 $cfg['Export']['sql_drop_table'] = false;
1604 * true by default for correct behavior when dealing with exporting
1605 * of VIEWs and the stand-in table
1606 * @global boolean $cfg['Export']['sql_if_not_exists']
1608 $cfg['Export']['sql_if_not_exists'] = true;
1613 * @global boolean $cfg['Export']['sql_procedure_function']
1615 $cfg['Export']['sql_procedure_function'] = true;
1620 * @global boolean $cfg['Export']['sql_auto_increment']
1622 $cfg['Export']['sql_auto_increment'] = true;
1627 * @global boolean $cfg['Export']['sql_backquotes']
1629 $cfg['Export']['sql_backquotes'] = true;
1634 * @global boolean $cfg['Export']['sql_dates']
1636 $cfg['Export']['sql_dates'] = false;
1641 * @global boolean $cfg['Export']['sql_relation']
1643 $cfg['Export']['sql_relation'] = false;
1648 * @global boolean $cfg['Export']['sql_delayed']
1650 $cfg['Export']['sql_delayed'] = false;
1655 * @global boolean $cfg['Export']['sql_ignore']
1657 $cfg['Export']['sql_ignore'] = false;
1660 * Export time in UTC.
1662 * @global boolean $cfg['Export']['sql_utc_time']
1664 $cfg['Export']['sql_utc_time'] = true;
1669 * @global boolean $cfg['Export']['sql_hex_for_blob']
1671 $cfg['Export']['sql_hex_for_blob'] = true;
1674 * insert/update/replace
1676 * @global string $cfg['Export']['sql_type']
1678 $cfg['Export']['sql_type'] = 'INSERT';
1683 * @global integer $cfg['Export']['sql_max_query_size']
1685 $cfg['Export']['sql_max_query_size'] = 50000;
1690 * @global boolean $cfg['Export']['sql_comments']
1692 $cfg['Export']['sql_comments'] = false;
1697 * @global boolean $cfg['Export']['sql_mime']
1699 $cfg['Export']['sql_mime'] = false;
1702 * \n is replaced by new line
1704 * @global string $cfg['Export']['sql_header_comment']
1706 $cfg['Export']['sql_header_comment'] = '';
1711 * @global boolean $cfg['Export']['sql_create_table_statements']
1713 $cfg['Export']['sql_create_table_statements'] = true;
1716 * Whether to use complete inserts, extended inserts, both, or neither
1718 * @global string $cfg['Export']['sql_insert_syntax']
1720 $cfg['Export']['sql_insert_syntax'] = 'both';
1725 * @global string $cfg['Export']['pdf_report_title']
1727 $cfg['Export']['pdf_report_title'] = '';
1732 *@global string $cfg['Export']['xml_structure_or_data']
1734 $cfg['Export']['xml_structure_or_data'] = 'data';
1737 * Export schema for each structure
1739 * @global string $cfg['Export']['xml_export_struc']
1741 $cfg['Export']['xml_export_struc'] = true;
1746 * @global string $cfg['Export']['xml_export_functions']
1748 $cfg['Export']['xml_export_functions'] = true;
1753 * @global string $cfg['Export']['xml_export_procedures']
1755 $cfg['Export']['xml_export_procedures'] = true;
1758 * Export schema for each table
1760 * @global string $cfg['Export']['xml_export_tables']
1762 $cfg['Export']['xml_export_tables'] = true;
1767 * @global string $cfg['Export']['xml_export_triggers']
1769 $cfg['Export']['xml_export_triggers'] = true;
1774 * @global string $cfg['Export']['xml_export_views']
1776 $cfg['Export']['xml_export_views'] = true;
1779 * Export contents data
1781 * @global string $cfg['Export']['xml_export_contents']
1783 $cfg['Export']['xml_export_contents'] = true;
1788 * @global string $cfg['Export']['yaml_structure_or_data']
1790 $cfg['Export']['yaml_structure_or_data'] = 'data';
1792 /*******************************************************************************
1795 $cfg['Import'] = array();
1800 * @global string $cfg['Import']['format']
1802 $cfg['Import']['format'] = 'sql';
1805 * Default charset for import.
1807 * @global string $cfg['Import']['charset']
1809 $cfg['Import']['charset'] = '';
1814 * @global boolean $cfg['Import']['allow_interrupt']
1816 $cfg['Import']['allow_interrupt'] = true;
1821 * @global integer $cfg['Import']['skip_queries']
1823 $cfg['Import']['skip_queries'] = 0;
1828 * @global string $cfg['Import']['sql_compatibility']
1830 $cfg['Import']['sql_compatibility'] = 'NONE';
1835 * @global string $cfg['Import']['sql_no_auto_value_on_zero']
1837 $cfg['Import']['sql_no_auto_value_on_zero'] = true;
1842 * @global boolean $cfg['Import']['csv_replace']
1844 $cfg['Import']['csv_replace'] = false;
1849 * @global boolean $cfg['Import']['csv_ignore']
1851 $cfg['Import']['csv_ignore'] = false;
1856 * @global string $cfg['Import']['csv_terminated']
1858 $cfg['Import']['csv_terminated'] = ',';
1863 * @global string $cfg['Import']['csv_enclosed']
1865 $cfg['Import']['csv_enclosed'] = '"';
1870 * @global string $cfg['Import']['csv_escaped']
1872 $cfg['Import']['csv_escaped'] = '\\';
1877 * @global string $cfg['Import']['csv_new_line']
1879 $cfg['Import']['csv_new_line'] = 'auto';
1884 * @global string $cfg['Import']['csv_columns']
1886 $cfg['Import']['csv_columns'] = '';
1891 * @global string $cfg['Import']['csv_col_names']
1893 $cfg['Import']['csv_col_names'] = false;
1898 * @global boolean $cfg['Import']['ldi_replace']
1900 $cfg['Import']['ldi_replace'] = false;
1905 * @global boolean $cfg['Import']['ldi_ignore']
1907 $cfg['Import']['ldi_ignore'] = false;
1912 * @global string $cfg['Import']['ldi_terminated']
1914 $cfg['Import']['ldi_terminated'] = ';';
1919 * @global string $cfg['Import']['ldi_enclosed']
1921 $cfg['Import']['ldi_enclosed'] = '"';
1926 * @global string $cfg['Import']['ldi_escaped']
1928 $cfg['Import']['ldi_escaped'] = '\\';
1933 * @global string $cfg['Import']['ldi_new_line']
1935 $cfg['Import']['ldi_new_line'] = 'auto';
1940 * @global string $cfg['Import']['ldi_columns']
1942 $cfg['Import']['ldi_columns'] = '';
1945 * 'auto' for auto-detection, true or false for forcing
1947 * @global string $cfg['Import']['ldi_local_option']
1949 $cfg['Import']['ldi_local_option'] = 'auto';
1954 * @global string $cfg['Import']['ods_col_names']
1956 $cfg['Import']['ods_col_names'] = false;
1961 * @global string $cfg['Import']['ods_empty_rows']
1963 $cfg['Import']['ods_empty_rows'] = true;
1968 * @global string $cfg['Import']['ods_recognize_percentages']
1970 $cfg['Import']['ods_recognize_percentages'] = true;
1975 * @global string $cfg['Import']['ods_recognize_currency']
1977 $cfg['Import']['ods_recognize_currency'] = true;
1982 * @global string $cfg['Import']['xml_col_names']
1984 $cfg['Import']['xls_col_names'] = false;
1989 * @global string $cfg['Import']['xml_empty_rows']
1991 $cfg['Import']['xls_empty_rows'] = true;
1996 * @global string $cfg['Import']['xlsx_col_names']
1998 $cfg['Import']['xlsx_col_names'] = false;
2001 * Link to the official MySQL documentation.
2002 * Be sure to include no trailing slash on the path.
2003 * See http://dev.mysql.com/doc/ for more information
2004 * about MySQL manuals and their types.
2006 * @global string $cfg['MySQLManualBase']
2008 $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
2011 * Type of MySQL documentation:
2012 * viewable - "viewable online", current one used on MySQL website
2013 * searchable - "Searchable, with user comments"
2014 * chapters - "HTML, one page per chapter"
2015 * chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
2016 * big - "HTML, all on one page"
2017 * old - old style used in phpMyAdmin 2.3.0 and sooner
2018 * none - do not show documentation links
2020 * @global string $cfg['MySQLManualType']
2022 $cfg['MySQLManualType'] = 'viewable';
2025 /*******************************************************************************
2032 * @global array $cfg['PDFPageSizes']
2034 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
2039 * @global string $cfg['PDFDefaultPageSize']
2041 $cfg['PDFDefaultPageSize'] = 'A4';
2044 /*******************************************************************************
2045 * Language and character set conversion settings
2049 * Default language to use, if not browser-defined or user-defined
2051 * @global string $cfg['DefaultLang']
2053 $cfg['DefaultLang'] = 'en';
2056 * Default connection collation
2058 * @global string $cfg['DefaultConnectionCollation']
2060 $cfg['DefaultConnectionCollation'] = 'utf8_general_ci';
2063 * Force: always use this language
2064 * $cfg['Lang'] = 'en';
2066 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
2069 * @global string $cfg['FilterLanguages']
2071 $cfg['FilterLanguages'] = '';
2074 * You can select here which functions will be used for character set conversion.
2075 * Possible values are:
2076 * auto - automatically use available one (first is tested iconv, then
2078 * iconv - use iconv or libiconv functions
2079 * recode - use recode_string function
2080 * none - disable encoding conversion
2082 * @global string $cfg['RecodingEngine']
2084 $cfg['RecodingEngine'] = 'auto';
2087 * Specify some parameters for iconv used in character set conversion. See iconv
2088 * documentation for details:
2089 * http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
2091 * @global string $cfg['IconvExtraParams']
2093 $cfg['IconvExtraParams'] = '//TRANSLIT';
2096 * Available character sets for MySQL conversion. currently contains all which could
2097 * be found in lang/* files and few more.
2098 * Character sets will be shown in same order as here listed, so if you frequently
2099 * use some of these move them to the top.
2101 * @global array $cfg['AvailableCharsets']
2103 $cfg['AvailableCharsets'] = array(
2138 /*******************************************************************************
2139 * Customization & design
2141 * The graphical settings are now located in themes/theme-name/layout.inc.php
2145 * enable the left panel pointer
2146 * (used when LeftFrameLight is false)
2147 * see also LeftPointerColor
2150 * @global boolean $cfg['LeftPointerEnable']
2152 $cfg['LeftPointerEnable'] = true;
2155 * enable the browse pointer
2156 * see also BrowsePointerColor
2159 * @global boolean $cfg['BrowsePointerEnable']
2161 $cfg['BrowsePointerEnable'] = true;
2164 * enable the browse marker
2165 * see also BrowseMarkerColor
2168 * @global boolean $cfg['BrowseMarkerEnable']
2170 $cfg['BrowseMarkerEnable'] = true;
2173 * textarea size (columns) in edit mode
2174 * (this value will be emphasized (*2) for SQL
2175 * query textareas and (*1.25) for query window)
2177 * @global integer $cfg['TextareaCols']
2179 $cfg['TextareaCols'] = 40;
2182 * textarea size (rows) in edit mode
2184 * @global integer $cfg['TextareaRows']
2186 $cfg['TextareaRows'] = 15;
2189 * double size of textarea size for LONGTEXT columns
2191 * @global boolean $cfg['LongtextDoubleTextarea']
2193 $cfg['LongtextDoubleTextarea'] = true;
2196 * auto-select when clicking in the textarea of the query-box
2198 * @global boolean $cfg['TextareaAutoSelect']
2200 $cfg['TextareaAutoSelect'] = false;
2203 * textarea size (columns) for CHAR/VARCHAR
2205 * @global integer $cfg['CharTextareaCols']
2207 $cfg['CharTextareaCols'] = 40;
2210 * textarea size (rows) for CHAR/VARCHAR
2212 * @global integer $cfg['CharTextareaRows']
2214 $cfg['CharTextareaRows'] = 2;
2217 * Max field data length in browse mode for all non-numeric fields
2219 * @global integer $cfg['LimitChars']
2221 $cfg['LimitChars'] = 50;
2224 * show edit/delete links on left side of browse
2225 * (or at the top with vertical browse)
2227 * @global boolean $cfg['ModifyDeleteAtLeft']
2229 $cfg['ModifyDeleteAtLeft'] = true;
2232 * show edit/delete links on right side of browse
2233 * (or at the bottom with vertical browse)
2235 * @global boolean $cfg['ModifyDeleteAtRight']
2237 $cfg['ModifyDeleteAtRight'] = false;
2240 * default display direction (horizontal|vertical|horizontalflipped)
2242 * @global string $cfg['DefaultDisplay']
2244 $cfg['DefaultDisplay'] = 'horizontal';
2247 * default display direction for altering/creating columns (tbl_properties)
2248 * (horizontal|vertical|<number>)
2249 * number indicates maximum number for which vertical model is used
2251 * @global integer $cfg['DefaultPropDisplay']
2253 $cfg['DefaultPropDisplay'] = 3;
2256 * table-header rotation via faking or CSS? (css|fake|auto)
2257 * NOTE: CSS only works in IE browsers!
2259 * @global string $cfg['HeaderFlipType']
2261 $cfg['HeaderFlipType'] = 'auto';
2264 * shows stored relation-comments in 'browse' mode.
2266 * @global boolean $cfg['ShowBrowseComments']
2268 $cfg['ShowBrowseComments'] = true;
2271 * shows stored relation-comments in 'table property' mode.
2273 * @global boolean $cfg['ShowPropertyComments']
2275 $cfg['ShowPropertyComments']= true;
2278 * repeat header names every X cells? (0 = deactivate)
2280 * @global integer $cfg['RepeatCells']
2282 $cfg['RepeatCells'] = 100;
2285 * Set to true if Edit link should open the query to edit in the query window
2286 * (assuming JavaScript is enabled), and to false if we should edit in the right panel
2288 * @global boolean $cfg['EditInWindow']
2290 $cfg['EditInWindow'] = true;
2293 * Width of Query window
2295 * @global integer $cfg['QueryWindowWidth']
2297 $cfg['QueryWindowWidth'] = 550;
2300 * Height of Query window
2302 * @global integer $cfg['QueryWindowHeight']
2304 $cfg['QueryWindowHeight'] = 310;
2307 * Set to true if you want DB-based query history.If false, this utilizes
2308 * JS-routines to display query history (lost by window close)
2310 * @global boolean $cfg['QueryHistoryDB']
2312 $cfg['QueryHistoryDB'] = false;
2315 * which tab to display in the querywindow on startup
2316 * (sql|files|history|full)
2318 * @global string $cfg['QueryWindowDefTab']
2320 $cfg['QueryWindowDefTab'] = 'sql';
2323 * When using DB-based query history, how many entries should be kept?
2325 * @global integer $cfg['QueryHistoryMax']
2327 $cfg['QueryHistoryMax'] = 25;
2330 * Use MIME-Types (stored in column comments table) for
2332 * @global boolean $cfg['BrowseMIME']
2334 $cfg['BrowseMIME'] = true;
2337 * When approximate count < this, PMA will get exact count for table rows.
2339 * @global integer $cfg['MaxExactCount']
2341 $cfg['MaxExactCount'] = 20000;
2344 * Zero means that no row count is done for views; see the doc
2346 * @global integer $cfg['MaxExactCountViews']
2348 $cfg['MaxExactCountViews'] = 0;
2351 * Sort table and database in natural order
2353 * @global boolean $cfg['NaturalOrder']
2355 $cfg['NaturalOrder'] = true;
2358 * Initial state for sliders
2361 * @global string $cfg['InitialSlidersState']
2363 $cfg['InitialSlidersState'] = 'closed';
2366 * User preferences: disallow these settings
2367 * For possible setting names look in libraries/config/user_preferences.forms.php
2369 * @global array $cfg['UserprefsDisallow']
2371 $cfg['UserprefsDisallow'] = array();
2374 * User preferences: enable the Developer tab
2376 $cfg['UserprefsDeveloperTab'] = false;
2378 /*******************************************************************************
2379 * Window title settings
2383 * title of browser window when a table is selected
2385 * @global string $cfg['TitleTable']
2387 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2390 * title of browser window when a database is selected
2392 * @global string $cfg['TitleDatabase']
2394 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2397 * title of browser window when a server is selected
2399 * @global string $cfg['TitleServer']
2401 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2404 * title of browser window when nothing is selected
2405 * @global string $cfg['TitleDefault']
2407 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2410 * show some icons for warning, error and information messages (true|false)?
2412 * @global boolean $cfg['ErrorIconic']
2414 $cfg['ErrorIconic'] = true;
2417 * show icons in list on main page and on menu tabs (true|false)?
2419 * @global boolean $cfg['MainPageIconic']
2421 $cfg['MainPageIconic'] = true;
2424 * show help button instead of Documentation text (true|false)?
2426 * @global boolean $cfg['ReplaceHelpImg']
2428 $cfg['ReplaceHelpImg'] = true;
2431 /*******************************************************************************
2436 * using themes manager please set up here the path to 'themes' else leave empty
2438 * @global string $cfg['ThemePath']
2440 $cfg['ThemePath'] = './themes';
2443 * if you want to use selectable themes and if ThemesPath not empty
2444 * set it to true, else set it to false (default is false);
2446 * @global boolean $cfg['ThemeManager']
2448 $cfg['ThemeManager'] = true;
2451 * set up default theme, if ThemePath not empty you can set up here an valid
2452 * path to themes or 'original' for the original pma-theme
2454 * @global string $cfg['ThemeDefault']
2456 $cfg['ThemeDefault'] = 'original';
2459 * allow different theme for each configured server
2461 * @global boolean $cfg['ThemePerServer']
2463 $cfg['ThemePerServer'] = false;
2466 /*******************************************************************************
2471 * Default query for table
2473 * @global string $cfg['DefaultQueryTable']
2475 $cfg['DefaultQueryTable'] = 'SELECT * FROM @TABLE@ WHERE 1';
2478 * Default query for database
2480 * @global string $cfg['DefaultQueryDatabase']
2482 $cfg['DefaultQueryDatabase'] = '';
2485 /*******************************************************************************
2486 * SQL Query box settings
2487 * These are the links display in all of the SQL Query boxes
2489 * @global array $cfg['SQLQuery']
2491 $cfg['SQLQuery'] = array();
2494 * Edit link to change a query
2496 * @global boolean $cfg['SQLQuery']['Edit']
2498 $cfg['SQLQuery']['Edit'] = true;
2501 * EXPLAIN on SELECT queries
2503 * @global boolean $cfg['SQLQuery']['Explain']
2505 $cfg['SQLQuery']['Explain'] = true;
2508 * Wrap a query in PHP
2510 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2512 $cfg['SQLQuery']['ShowAsPHP'] = true;
2515 * Validate a query (see $cfg['SQLValidator'] as well)
2517 * @global boolean $cfg['SQLQuery']['Validate']
2519 $cfg['SQLQuery']['Validate'] = false;
2522 * Refresh the results page
2524 * @global boolean $cfg['SQLQuery']['Refresh']
2526 $cfg['SQLQuery']['Refresh'] = true;
2529 /*******************************************************************************
2530 * Web server upload/save/import directories
2534 * Directory for uploaded files that can be executed by phpMyAdmin.
2535 * For example './upload'. Leave empty for no upload directory support.
2536 * Use %u for username inclusion.
2538 * @global string $cfg['UploadDir']
2540 $cfg['UploadDir'] = '';
2543 * Directory where phpMyAdmin can save exported data on server.
2544 * For example './save'. Leave empty for no save directory support.
2545 * Use %u for username inclusion.
2547 * @global string $cfg['SaveDir']
2549 $cfg['SaveDir'] = '';
2552 * Directory where phpMyAdmin can save temporary files.
2553 * This is needed for MS Excel export, see documentation how to enable that.
2555 * @global string $cfg['TempDir']
2557 $cfg['TempDir'] = '';
2565 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2566 * which is the only safe way to determine GD version.
2568 * @global string $cfg['GD2Available']
2570 $cfg['GD2Available'] = 'auto';
2573 * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
2575 * @global array $cfg['TrustedProxies']
2577 $cfg['TrustedProxies'] = array();
2580 * We normally check the permissions on the configuration file to ensure
2581 * it's not world writable. However, phpMyAdmin could be installed on
2582 * a NTFS filesystem mounted on a non-Windows server, in which case the
2583 * permissions seems wrong but in fact cannot be detected. In this case
2584 * a sysadmin would set the following to false.
2586 $cfg['CheckConfigurationPermissions'] = true;
2589 * Limit for length of URL in links. When length would be above this limit, it
2590 * is replaced by form with button.
2591 * This is required as some web servers (IIS) have problems with long URLs.
2593 $cfg['LinkLengthLimit'] = 2000;
2595 /*******************************************************************************
2596 * SQL Parser Settings
2598 * @global array $cfg['SQP']
2600 $cfg['SQP'] = array();
2603 * Pretty-printing style to use on queries (html, text, none)
2605 * @global string $cfg['SQP']['fmtType']
2607 $cfg['SQP']['fmtType'] = 'html';
2610 * Amount to indent each level (floats are valid)
2612 * @global integer $cfg['SQP']['fmtInd']
2614 $cfg['SQP']['fmtInd'] = '1';
2617 * Units for indenting each level (CSS Types - {em, px, pt})
2619 * @global string $cfg['SQP']['fmtIndUnit']
2621 $cfg['SQP']['fmtIndUnit'] = 'em';
2624 /*******************************************************************************
2625 * If you wish to use the SQL Validator service, you should be aware of the
2627 * All SQL statements are stored anonymously for statistical purposes.
2628 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
2629 * All rights reserved.
2631 * @global array $cfg['SQLValidator']
2633 $cfg['SQLValidator'] = array();
2636 * Make the SQL Validator available
2638 * @global boolean $cfg['SQLValidator']['use']
2640 $cfg['SQLValidator']['use'] = false;
2643 * If you have a custom username, specify it here (defaults to anonymous)
2645 * @global string $cfg['SQLValidator']['username']
2647 $cfg['SQLValidator']['username'] = '';
2650 * Password for username
2652 * @global string $cfg['SQLValidator']['password']
2654 $cfg['SQLValidator']['password'] = '';
2657 /*******************************************************************************
2660 * @global array $cfg['DBG']
2662 $cfg['DBG'] = array();
2665 * Output executed queries and their execution times
2667 * @global boolean $cfg['DBG']['sql']
2669 $cfg['DBG']['sql'] = false;
2672 /*******************************************************************************
2678 * VARCHAR, TINYINT, TEXT and DATE are listed first, based on estimated popularity
2680 * @global array $cfg['ColumnTypes']
2682 $cfg['ColumnTypes'] = array(
2709 'DATE and TIME' => array(
2747 'GEOMETRYCOLLECTION',
2754 * @global array $cfg['AttributeTypes']
2756 $cfg['AttributeTypes'] = array(
2760 'UNSIGNED ZEROFILL',
2761 'on update CURRENT_TIMESTAMP',
2765 if ($cfg['ShowFunctionFields']) {
2767 * Available functions
2769 * @global array $cfg['Functions']
2771 $cfg['Functions'] = array(
2844 * Which column types will be mapped to which Group?
2846 * @global array $cfg['RestrictColumnTypes']
2848 $cfg['RestrictColumnTypes'] = array(
2849 'TINYINT' => 'FUNC_NUMBER',
2850 'SMALLINT' => 'FUNC_NUMBER',
2851 'MEDIUMINT' => 'FUNC_NUMBER',
2852 'INT' => 'FUNC_NUMBER',
2853 'BIGINT' => 'FUNC_NUMBER',
2854 'DECIMAL' => 'FUNC_NUMBER',
2855 'FLOAT' => 'FUNC_NUMBER',
2856 'DOUBLE' => 'FUNC_NUMBER',
2857 'REAL' => 'FUNC_NUMBER',
2858 'BIT' => 'FUNC_NUMBER',
2859 'BOOLEAN' => 'FUNC_NUMBER',
2860 'SERIAL' => 'FUNC_NUMBER',
2862 'DATE' => 'FUNC_DATE',
2863 'DATETIME' => 'FUNC_DATE',
2864 'TIMESTAMP' => 'FUNC_DATE',
2865 'TIME' => 'FUNC_DATE',
2866 'YEAR' => 'FUNC_DATE',
2868 'CHAR' => 'FUNC_CHAR',
2869 'VARCHAR' => 'FUNC_CHAR',
2870 'TINYTEXT' => 'FUNC_CHAR',
2871 'TEXT' => 'FUNC_CHAR',
2872 'MEDIUMTEXT' => 'FUNC_CHAR',
2873 'LONGTEXT' => 'FUNC_CHAR',
2874 'BINARY' => 'FUNC_CHAR',
2875 'VARBINARY' => 'FUNC_CHAR',
2876 'TINYBLOB' => 'FUNC_CHAR',
2877 'MEDIUMBLOB' => 'FUNC_CHAR',
2878 'BLOB' => 'FUNC_CHAR',
2879 'LONGBLOB' => 'FUNC_CHAR',
2883 'GEOMETRY' => 'FUNC_SPATIAL',
2884 'POINT' => 'FUNC_SPATIAL',
2885 'LINESTRING' => 'FUNC_SPATIAL',
2886 'POLYGON' => 'FUNC_SPATIAL',
2887 'MULTIPOINT' => 'FUNC_SPATIAL',
2888 'MULTILINESTRING' => 'FUNC_SPATIAL',
2889 'MULTIPOLYGON' => 'FUNC_SPATIAL',
2890 'GEOMETRYCOLLECTION' => 'FUNC_SPATIAL',
2895 * Map above defined groups to any function
2897 * @global array $cfg['RestrictFunctions']
2899 $cfg['RestrictFunctions'] = array(
2900 'FUNC_CHAR' => array(
2926 'FUNC_DATE' => array(
2941 'FUNC_NUMBER' => array(
2978 'FUNC_SPATIAL' => array(
3001 * Default functions for above defined groups
3003 * @global array $cfg['DefaultFunctions']
3005 $cfg['DefaultFunctions'] = array(
3008 'FUNC_NUMBER' => '',
3009 'first_timestamp' => 'NOW',
3010 'pk_char36' => 'UUID',
3019 * @global array $cfg['NumOperators']
3021 $cfg['NumOperators'] = array(
3039 * @global array $cfg['TextOperators']
3041 $cfg['TextOperators'] = array(
3061 * @global array $cfg['EnumOperators']
3063 $cfg['EnumOperators'] = array(
3071 * @global array $cfg['SetOperators']
3073 $cfg['SetOperators'] = array(
3081 * @global array $cfg['NullOperators']
3083 $cfg['NullOperators'] = array(
3091 * @global array $cfg['UnaryOperators']
3093 $cfg['UnaryOperators'] = array(