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'] = true;
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 * maximum number of db's displayed in left frame and database list
493 * @global integer $cfg['MaxDbList']
495 $cfg['MaxDbList'] = 100;
498 * maximum number of tables displayed in table list
500 * @global integer $cfg['MaxTableList']
502 $cfg['MaxTableList'] = 250;
505 * maximum number of characters when a SQL query is displayed
507 * @global integer $cfg['MaxCharactersInDisplayedSQL']
509 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
512 * use GZIP output buffering if possible (true|false|'auto')
514 * @global string $cfg['OBGzip']
516 $cfg['OBGzip'] = 'auto';
519 * use persistent connections to MySQL database
521 * @global boolean $cfg['PersistentConnections']
523 $cfg['PersistentConnections'] = false;
526 * whether to force using HTTPS
528 * @global boolean $cfg['ForceSSL']
530 $cfg['ForceSSL'] = false;
533 * maximum execution time in seconds (0 for no limit)
535 * @global integer $cfg['ExecTimeLimit']
537 $cfg['ExecTimeLimit'] = 300;
540 * Path for storing session data (session_save_path PHP parameter).
542 * @global integer $cfg['SessionSavePath']
544 $cfg['SessionSavePath'] = '';
547 * maximum allocated bytes ('0' for no limit)
548 * this is a string because '16M' is a valid value; we must put here
549 * a string as the default value so that /setup accepts strings
551 * @global string $cfg['MemoryLimit']
553 $cfg['MemoryLimit'] = '0';
556 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
558 * @global boolean $cfg['SkipLockedTables']
560 $cfg['SkipLockedTables'] = false;
563 * show SQL queries as run
565 * @global boolean $cfg['ShowSQL']
567 $cfg['ShowSQL'] = true;
570 * show a 'Drop database' link to normal users
572 * @global boolean $cfg['AllowUserDropDatabase']
574 $cfg['AllowUserDropDatabase'] = false;
577 * confirm some commands that can result in loss of data
578 * (see "need_confirm" in the parser)
580 * @global boolean $cfg['Confirm']
582 $cfg['Confirm'] = true;
585 * recall previous login in cookie authentication mode or not
587 * @global boolean $cfg['LoginCookieRecall']
589 $cfg['LoginCookieRecall'] = true;
592 * validity of cookie login (in seconds; 1440 matches php.ini's
593 * session.gc_maxlifetime)
595 * @global integer $cfg['LoginCookieValidity']
597 $cfg['LoginCookieValidity'] = 1440;
600 * how long login cookie should be stored (in seconds)
602 * @global integer $cfg['LoginCookieStore']
604 $cfg['LoginCookieStore'] = 0;
607 * whether to delete all login cookies on logout
609 * @global boolean $cfg['LoginCookieDeleteAll']
611 $cfg['LoginCookieDeleteAll'] = true;
614 * whether to enable the "database search" feature or not
616 * @global boolean $cfg['UseDbSearch']
618 $cfg['UseDbSearch'] = true;
621 * if set to true, PMA continues computing multiple-statement queries
622 * even if one of the queries failed
624 * @global boolean $cfg['IgnoreMultiSubmitErrors']
626 $cfg['IgnoreMultiSubmitErrors'] = false;
629 * if set to true, PMA will show the affected rows of EACH statement on
630 * multiple-statement queries. See the libraries/import.php file for
631 * hard coded defaults on how many queries a statement may contain!
633 * @global boolean $cfg['VerboseMultiSubmit']
635 $cfg['VerboseMultiSubmit'] = true;
638 * allow login to any user entered server in cookie based authentication
640 * @global boolean $cfg['AllowArbitraryServer']
642 $cfg['AllowArbitraryServer'] = false;
645 /*******************************************************************************
646 * Error handler configuration
648 * this configures phpMyAdmin's own error handler, it is used to avoid information
649 * disclosure, gather errors for logging, reporting and displaying
651 * @global array $cfg['Error_Handler']
653 $cfg['Error_Handler'] = array();
656 * whether to display errors or not
658 * this does not affect errors of type E_USER_*
660 * @global boolean $cfg['Error_Handler']['display']
662 $cfg['Error_Handler']['display'] = false;
665 * (NOT IMPLEMENTED YET)
666 * where to log errors, false or empty to disable
669 * // EXAMPLE log to std PHP error log
670 * $cfg['Error_Handler']['log'] = array(0);
671 * // EXAMPLE mail errors
672 * $cfg['Error_Handler']['log'] = array(1, 'admin@example.org');
673 * // EXAMPLE append to specific file
674 * $cfg['Error_Handler']['log'] = array(3, '/var/log/phpmyadmin_error.log');
677 * @see http://php.net/error_log
678 * @global string $cfg['Error_Handler']['log']
680 //$cfg['Error_Handler']['log'] = false;
683 * gather all errors in session to be displayed on a error reporting page
684 * for viewing and/or sending to phpMyAdmin developer team
686 * @global boolean $cfg['Error_Handler']['gather']
688 $cfg['Error_Handler']['gather'] = false;
691 /*******************************************************************************
696 * use a select-based menu and display only the current tables in the left frame.
698 * @global boolean $cfg['LeftFrameLight']
700 $cfg['LeftFrameLight'] = true;
703 * turn the select-based light menu into a tree
705 * @global boolean $cfg['LeftFrameDBTree']
707 $cfg['LeftFrameDBTree'] = true;
710 * the separator to sub-tree the select-based light menu tree
712 * @global string $cfg['LeftFrameDBSeparator']
714 $cfg['LeftFrameDBSeparator'] = '_';
717 * Which string will be used to generate table prefixes
718 * to split/nest tables into multiple categories
720 * @global string $cfg['LeftFrameTableSeparator']
722 $cfg['LeftFrameTableSeparator']= '__';
725 * How many sublevels should be displayed when splitting up tables by the above Separator
727 * @global integer $cfg['LeftFrameTableLevel']
729 $cfg['LeftFrameTableLevel'] = 1;
732 * display table comment as tooltip in left frame
734 * @global boolean $cfg['ShowTooltip']
736 $cfg['ShowTooltip'] = true;
739 * if ShowToolTip is enabled, this defines that table/db comments
741 * @global boolean $cfg['ShowTooltipAliasDB']
743 $cfg['ShowTooltipAliasDB'] = false;
746 * are shown (in the left menu and db_structure) instead of table/db names.
747 * Setting ShowTooltipAliasTB to 'nested' will only use the Aliases for nested
748 * descriptors, not the table itself.
750 * @global boolean $cfg['ShowTooltipAliasTB']
752 $cfg['ShowTooltipAliasTB'] = false;
755 * display logo at top of left frame
757 * @global boolean $cfg['LeftDisplayLogo']
759 $cfg['LeftDisplayLogo'] = true;
762 * where should logo link point to (can also contain an external URL)
764 * @global string $cfg['LeftLogoLink']
766 $cfg['LeftLogoLink'] = 'main.php';
769 * whether to open the linked page in the main window ('main') or
770 * in a new window ('new')
772 * @global string $cfg['LeftLogoLinkWindow']
774 $cfg['LeftLogoLinkWindow'] = 'main';
777 * display a JavaScript table filter in the left frame
778 * when more then x tables are present
780 * @global boolean $cfg['LeftDisplayTableFilterMinimum']
782 $cfg['LeftDisplayTableFilterMinimum'] = 30;
785 * display server choice at top of left frame
787 * @global boolean $cfg['LeftDisplayServers']
789 $cfg['LeftDisplayServers'] = false;
792 * server choice as links
794 * @global boolean $cfg['DisplayServersList']
796 $cfg['DisplayServersList'] = false;
799 * database choice in light as links
801 * @global boolean $cfg['DisplayDatabasesList']
803 $cfg['DisplayDatabasesList'] = 'auto';
806 * target of the navigation panel quick access icon
809 * 'tbl_structure.php' = fields list
810 * 'tbl_sql.php' = SQL form
811 * 'tbl_select.php' = search page
812 * 'tbl_change.php' = insert row page
813 * 'sql.php' = browse page
815 * @global string $cfg['LeftDefaultTabTable']
817 $cfg['LeftDefaultTabTable'] = 'tbl_structure.php';
820 /*******************************************************************************
821 * In the main frame, at startup...
825 * allow to display statistics and space usage in the pages about database
826 * details and table properties
828 * @global boolean $cfg['ShowStats']
830 $cfg['ShowStats'] = true;
835 * @global boolean $cfg['ShowPhpInfo']
837 $cfg['ShowPhpInfo'] = false;
840 * show MySQL server and web server information
842 * @global boolean $cfg['ShowServerInfo']
844 $cfg['ShowServerInfo'] = true;
847 * show change password link
849 * @global boolean $cfg['ShowChgPassword']
851 $cfg['ShowChgPassword'] = true;
854 * show create database form
856 * @global boolean $cfg['ShowCreateDb']
858 $cfg['ShowCreateDb'] = true;
861 * suggest a new DB name if possible (false = keep empty)
863 * @global boolean $cfg['SuggestDBName']
865 $cfg['SuggestDBName'] = true;
868 /*******************************************************************************
873 * Use icons instead of text for the navigation bar buttons
874 * and on right panel top menu (server db table) (true|false|'both')
876 * @global string $cfg['NavigationBarIconic']
878 $cfg['NavigationBarIconic'] = true;
881 * Defines whether a user should be displayed a "show all (records)"
882 * button in browse mode or not.
884 * @global boolean $cfg['ShowAll']
886 $cfg['ShowAll'] = false;
889 * Number of rows displayed when browsing a result set. If the result
890 * set contains more rows, "Previous" and "Next".
892 * @global integer $cfg['MaxRows']
894 $cfg['MaxRows'] = 30;
897 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
898 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
899 * ascending order else-)
901 * @global string $cfg['Order']
903 $cfg['Order'] = 'SMART';
906 * default for 'Show binary contents as HEX'
908 * @global string $cfg['DisplayBinaryAsHex']
910 $cfg['DisplayBinaryAsHex'] = true;
913 /*******************************************************************************
918 * disallow editing of binary fields
920 * false allow editing
921 * 'blob' allow editing except for BLOB fields
922 * 'all' disallow editing
924 * @global string $cfg['ProtectBinary']
926 $cfg['ProtectBinary'] = 'blob';
929 * Display the function fields in edit/insert mode
931 * @global boolean $cfg['ShowFunctionFields']
933 $cfg['ShowFunctionFields'] = true;
936 * Display the type fields in edit/insert mode
938 * @global boolean $cfg['ShowFieldTypesInDataEditView']
940 $cfg['ShowFieldTypesInDataEditView'] = true;
943 * Which editor should be used for CHAR/VARCHAR fields:
944 * input - allows limiting of input length
945 * textarea - allows newlines in fields
947 * @global string $cfg['CharEditing']
949 $cfg['CharEditing'] = 'input';
952 * How many rows can be inserted at one time
954 * @global integer $cfg['InsertRows']
956 $cfg['InsertRows'] = 2;
959 * Sort order for items in a foreign-key drop-down list.
960 * 'content' is the referenced data, 'id' is the key value.
962 * @global array $cfg['ForeignKeyDropdownOrder']
964 $cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
967 * A drop-down list will be used if fewer items are present
969 * @global integer $cfg['ForeignKeyMaxLimit']
971 $cfg['ForeignKeyMaxLimit'] = 100;
974 /*******************************************************************************
975 * For the export features...
979 * Allow for the use of zip compression (requires zip support to be enabled)
981 * @global boolean $cfg['ZipDump']
983 $cfg['ZipDump'] = true;
986 * Allow for the use of gzip compression (requires zlib)
988 * @global boolean $cfg['GZipDump']
990 $cfg['GZipDump'] = true;
993 * Allow for the use of bzip2 compression (requires bz2 extension)
995 * @global boolean $cfg['BZipDump']
997 $cfg['BZipDump'] = true;
1000 * Will compress gzip/bzip2 exports on the fly without the need for much memory.
1001 * If you encounter problems with created gzip/bzip2 files disable this feature.
1003 * @global boolean $cfg['CompressOnFly']
1005 $cfg['CompressOnFly'] = true;
1008 /*******************************************************************************
1009 * Tabs display settings
1013 * Use graphically less intense menu tabs
1015 * @global boolean $cfg['LightTabs']
1017 $cfg['LightTabs'] = false;
1020 * Use icons instead of text for the table display of a database (true|false|'both')
1022 * @global boolean $cfg['PropertiesIconic']
1024 $cfg['PropertiesIconic'] = 'both';
1027 * How many columns should be used for table display of a database?
1028 * (a value larger than 1 results in some information being hidden)
1030 * @global integer $cfg['PropertiesNumColumns']
1032 $cfg['PropertiesNumColumns'] = 1;
1036 * 'main.php' = the welcome page
1037 * (recommended for multiuser setups)
1038 * 'server_databases.php' = list of databases
1039 * 'server_status.php' = runtime information
1040 * 'server_variables.php' = MySQL server variables
1041 * 'server_privileges.php' = user management
1042 * 'server_processlist.php' = process list
1044 * @global string $cfg['DefaultTabServer']
1046 $cfg['DefaultTabServer'] = 'main.php';
1050 * 'db_structure.php' = tables list
1051 * 'db_sql.php' = SQL form
1052 * 'db_search.php' = search query
1053 * 'db_operations.php' = operations on database
1055 * @global string $cfg['DefaultTabDatabase']
1057 $cfg['DefaultTabDatabase'] = 'db_structure.php';
1061 * 'tbl_structure.php' = fields list
1062 * 'tbl_sql.php' = SQL form
1063 * 'tbl_select.php' = search page
1064 * 'tbl_change.php' = insert row page
1065 * 'sql.php' = browse page
1067 * @global string $cfg['DefaultTabTable']
1069 $cfg['DefaultTabTable'] = 'sql.php';
1071 /*******************************************************************************
1074 $cfg['Export'] = array();
1077 * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xls/xml/yaml
1079 * @global string $cfg['Export']['format']
1081 $cfg['Export']['format'] = 'sql';
1084 * quick/custom/custom-no-form
1086 * @global string $cfg['Export']['format']
1088 $cfg['Export']['method'] = 'quick';
1091 * none/zip/gzip/bzip2
1093 * @global string $cfg['Export']['compression']
1095 $cfg['Export']['compression'] = 'none';
1100 * @global boolean $cfg['Export']['asfile']
1102 $cfg['Export']['asfile'] = true;
1107 * @global string $cfg['Export']['charset']
1109 $cfg['Export']['charset'] = '';
1114 * @global boolean $cfg['Export']['onserver']
1116 $cfg['Export']['onserver'] = false;
1121 * @global boolean $cfg['Export']['onserver_overwrite']
1123 $cfg['Export']['onserver_overwrite'] = false;
1128 * @global boolean $cfg['Export']['quick_export_onserver']
1130 $cfg['Export']['quick_export_onserver'] = false;
1135 * @global boolean $cfg['Export']['quick_export_onserver_overwrite']
1137 $cfg['Export']['quick_export_onserver_overwrite'] = false;
1142 * @global boolean $cfg['Export']['remember_file_template']
1144 $cfg['Export']['remember_file_template'] = true;
1149 * @global string $cfg['Export']['file_template_table']
1151 $cfg['Export']['file_template_table'] = '@TABLE@';
1156 * @global string $cfg['Export']['file_template_database']
1158 $cfg['Export']['file_template_database'] = '@DATABASE@';
1163 * @global string $cfg['Export']['file_template_server']
1165 $cfg['Export']['file_template_server'] = '@SERVER@';
1170 * @global string $cfg['Export']['codegen_structure_or_data']
1172 $cfg['Export']['codegen_structure_or_data'] = 'data';
1177 * @global $cfg['Export']['codegen_format']
1179 $cfg['Export']['codegen_format'] = 0;
1184 * @global boolean $cfg['Export']['ods_columns']
1186 $cfg['Export']['ods_columns'] = false;
1191 * @global string $cfg['Export']['ods_null']
1193 $cfg['Export']['ods_null'] = 'NULL';
1198 * @global string $cfg['Export']['odt_structure_or_data']
1200 $cfg['Export']['odt_structure_or_data'] = 'structure_and_data';
1205 * @global boolean $cfg['Export']['odt_columns']
1207 $cfg['Export']['odt_columns'] = true;
1212 * @global boolean $cfg['Export']['odt_relation']
1214 $cfg['Export']['odt_relation'] = true;
1219 * @global boolean $cfg['Export']['odt_comments']
1221 $cfg['Export']['odt_comments'] = true;
1226 * @global boolean $cfg['Export']['odt_mime']
1228 $cfg['Export']['odt_mime'] = true;
1233 * @global string $cfg['Export']['odt_null']
1235 $cfg['Export']['odt_null'] = 'NULL';
1240 * @global boolean $cfg['Export']['htmlword_structure_or_data']
1242 $cfg['Export']['htmlword_structure_or_data'] = 'structure_and_data';
1247 * @global boolean $cfg['Export']['htmlword_columns']
1249 $cfg['Export']['htmlword_columns'] = false;
1254 * @global string $cfg['Export']['htmlword_null']
1256 $cfg['Export']['htmlword_null'] = 'NULL';
1261 * @global string $cfg['Export']['texytext_structure_or_data']
1263 $cfg['Export']['texytext_structure_or_data'] = 'structure_and_data';
1268 * @global boolean $cfg['Export']['texytext_columns']
1270 $cfg['Export']['texytext_columns'] = FALSE;
1275 * @global string $cfg['Export']['texytext_null']
1277 $cfg['Export']['texytext_null'] = 'NULL';
1282 * @global boolean $cfg['Export']['xls_columns']
1284 $cfg['Export']['xls_columns'] = false;
1289 * @global string $cfg['Export']['xls_structure_or_data']
1291 $cfg['Export']['xls_structure_or_data'] = 'data';
1296 * @global string $cfg['Export']['xls_null']
1298 $cfg['Export']['xls_null'] = 'NULL';
1303 * @global boolean $cfg['Export']['xlsx_columns']
1305 $cfg['Export']['xlsx_columns'] = false;
1310 * @global string $cfg['Export']['xlsx_structure_or_data']
1312 $cfg['Export']['xlsx_structure_or_data'] = 'data';
1317 * @global string $cfg['Export']['xlsx_null']
1319 $cfg['Export']['xlsx_null'] = 'NULL';
1324 * @global boolean $cfg['Export']['csv_columns']
1326 $cfg['Export']['csv_columns'] = false;
1331 * @global string $cfg['Export']['csv_structure_or_data']
1333 $cfg['Export']['csv_structure_or_data'] = 'data';
1338 * @global string $cfg['Export']['csv_null']
1340 $cfg['Export']['csv_null'] = 'NULL';
1345 * @global string $cfg['Export']['csv_separator']
1347 $cfg['Export']['csv_separator'] = ',';
1352 * @global string $cfg['Export']['csv_enclosed']
1354 $cfg['Export']['csv_enclosed'] = '"';
1359 * @global string $cfg['Export']['csv_escaped']
1361 $cfg['Export']['csv_escaped'] = '\\';
1366 * @global string $cfg['Export']['csv_terminated']
1368 $cfg['Export']['csv_terminated'] = 'AUTO';
1373 * @global string $cfg['Export']['csv_removeCRLF']
1375 $cfg['Export']['csv_removeCRLF'] = false;
1380 * @global boolean $cfg['Export']['excel_columns']
1382 $cfg['Export']['excel_columns'] = false;
1387 * @global string $cfg['Export']['excel_null']
1389 $cfg['Export']['excel_null'] = 'NULL';
1394 * @global string $cfg['Export']['excel_edition']
1396 $cfg['Export']['excel_edition'] = 'win';
1401 * @global string $cfg['Export']['excel_removeCRLF']
1403 $cfg['Export']['excel_removeCRLF'] = false;
1408 * @global string $cfg['Export']['excel_structure_or_data']
1410 $cfg['Export']['excel_structure_or_data'] = 'data';
1415 * @global string $cfg['Export']['latex_structure_or_data']
1417 $cfg['Export']['latex_structure_or_data'] = 'structure_and_data';
1422 * @global boolean $cfg['Export']['latex_columns']
1424 $cfg['Export']['latex_columns'] = true;
1429 * @global boolean $cfg['Export']['latex_relation']
1431 $cfg['Export']['latex_relation'] = true;
1436 * @global boolean $cfg['Export']['latex_comments']
1438 $cfg['Export']['latex_comments'] = true;
1443 * @global boolean $cfg['Export']['latex_mime']
1445 $cfg['Export']['latex_mime'] = true;
1450 * @global string $cfg['Export']['latex_null']
1452 $cfg['Export']['latex_null'] = '\textit{NULL}';
1457 * @global boolean $cfg['Export']['latex_caption']
1459 $cfg['Export']['latex_caption'] = true;
1464 * @global string $cfg['Export']['latex_structure_caption']
1466 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1471 * @global string $cfg['Export']['latex_structure_continued_caption']
1473 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
1478 * @global string $cfg['Export']['latex_data_caption']
1480 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1485 * @global string $cfg['Export']['latex_data_continued_caption']
1487 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1492 * @global string $cfg['Export']['latex_data_label']
1494 $cfg['Export']['latex_data_label'] = 'tab:@TABLE@-data';
1499 * @global string $cfg['Export']['latex_structure_label']
1501 $cfg['Export']['latex_structure_label'] = 'tab:@TABLE@-structure';
1506 * @global string $cfg['Export']['mediawiki_structure_or_data']
1508 $cfg['Export']['mediawiki_structure_or_data'] = 'data';
1513 * @global string $cfg['Export']['ods_structure_or_data']
1515 $cfg['Export']['ods_structure_or_data'] = 'data';
1520 * @global string $cfg['Export']['pdf_structure_or_data']
1522 $cfg['Export']['pdf_structure_or_data'] = 'data';
1527 * @global string $cfg['Export']['php_array_structure_or_data']
1529 $cfg['Export']['php_array_structure_or_data'] = 'data';
1534 * @global string $cfg['Export']['json_structure_or_data']
1536 $cfg['Export']['json_structure_or_data'] = 'data';
1541 * @global string $cfg['Export']['sql_structure_or_data']
1543 $cfg['Export']['sql_structure_or_data'] = 'structure_and_data';
1548 * @global string $cfg['Export']['sql_compatibility']
1550 $cfg['Export']['sql_compatibility'] = 'NONE';
1553 * Whether to include comments in SQL export.
1555 * @global string $cfg['Export']['sql_include_comments']
1557 $cfg['Export']['sql_include_comments'] = true;
1562 * @global boolean $cfg['Export']['sql_disable_fk']
1564 $cfg['Export']['sql_disable_fk'] = false;
1569 * @global boolean $cfg['Export']['sql_use_transaction']
1571 $cfg['Export']['sql_use_transaction'] = false;
1576 * @global boolean $cfg['Export']['sql_drop_database']
1578 $cfg['Export']['sql_drop_database'] = false;
1583 * @global boolean $cfg['Export']['sql_drop_table']
1585 $cfg['Export']['sql_drop_table'] = false;
1590 * true by default for correct behavior when dealing with exporting
1591 * of VIEWs and the stand-in table
1592 * @global boolean $cfg['Export']['sql_if_not_exists']
1594 $cfg['Export']['sql_if_not_exists'] = true;
1599 * @global boolean $cfg['Export']['sql_procedure_function']
1601 $cfg['Export']['sql_procedure_function'] = true;
1606 * @global boolean $cfg['Export']['sql_auto_increment']
1608 $cfg['Export']['sql_auto_increment'] = true;
1613 * @global boolean $cfg['Export']['sql_backquotes']
1615 $cfg['Export']['sql_backquotes'] = true;
1620 * @global boolean $cfg['Export']['sql_dates']
1622 $cfg['Export']['sql_dates'] = false;
1627 * @global boolean $cfg['Export']['sql_relation']
1629 $cfg['Export']['sql_relation'] = false;
1634 * @global boolean $cfg['Export']['sql_delayed']
1636 $cfg['Export']['sql_delayed'] = false;
1641 * @global boolean $cfg['Export']['sql_ignore']
1643 $cfg['Export']['sql_ignore'] = false;
1646 * Export time in UTC.
1648 * @global boolean $cfg['Export']['sql_utc_time']
1650 $cfg['Export']['sql_utc_time'] = true;
1655 * @global boolean $cfg['Export']['sql_hex_for_blob']
1657 $cfg['Export']['sql_hex_for_blob'] = true;
1660 * insert/update/replace
1662 * @global string $cfg['Export']['sql_type']
1664 $cfg['Export']['sql_type'] = 'INSERT';
1669 * @global integer $cfg['Export']['sql_max_query_size']
1671 $cfg['Export']['sql_max_query_size'] = 50000;
1676 * @global boolean $cfg['Export']['sql_comments']
1678 $cfg['Export']['sql_comments'] = false;
1683 * @global boolean $cfg['Export']['sql_mime']
1685 $cfg['Export']['sql_mime'] = false;
1688 * \n is replaced by new line
1690 * @global string $cfg['Export']['sql_header_comment']
1692 $cfg['Export']['sql_header_comment'] = '';
1697 * @global boolean $cfg['Export']['sql_create_table_statements']
1699 $cfg['Export']['sql_create_table_statements'] = true;
1702 * Whether to use complete inserts, extended inserts, both, or neither
1704 * @global string $cfg['Export']['sql_insert_syntax']
1706 $cfg['Export']['sql_insert_syntax'] = 'both';
1711 * @global string $cfg['Export']['pdf_report_title']
1713 $cfg['Export']['pdf_report_title'] = '';
1718 *@global string $cfg['Export']['xml_structure_or_data']
1720 $cfg['Export']['xml_structure_or_data'] = 'data';
1723 * Export schema for each structure
1725 * @global string $cfg['Export']['xml_export_struc']
1727 $cfg['Export']['xml_export_struc'] = true;
1732 * @global string $cfg['Export']['xml_export_functions']
1734 $cfg['Export']['xml_export_functions'] = true;
1739 * @global string $cfg['Export']['xml_export_procedures']
1741 $cfg['Export']['xml_export_procedures'] = true;
1744 * Export schema for each table
1746 * @global string $cfg['Export']['xml_export_tables']
1748 $cfg['Export']['xml_export_tables'] = true;
1753 * @global string $cfg['Export']['xml_export_triggers']
1755 $cfg['Export']['xml_export_triggers'] = true;
1760 * @global string $cfg['Export']['xml_export_views']
1762 $cfg['Export']['xml_export_views'] = true;
1765 * Export contents data
1767 * @global string $cfg['Export']['xml_export_contents']
1769 $cfg['Export']['xml_export_contents'] = true;
1774 * @global string $cfg['Export']['yaml_structure_or_data']
1776 $cfg['Export']['yaml_structure_or_data'] = 'data';
1778 /*******************************************************************************
1781 $cfg['Import'] = array();
1786 * @global string $cfg['Import']['format']
1788 $cfg['Import']['format'] = 'sql';
1791 * Default charset for import.
1793 * @global string $cfg['Import']['charset']
1795 $cfg['Import']['charset'] = '';
1800 * @global boolean $cfg['Import']['allow_interrupt']
1802 $cfg['Import']['allow_interrupt'] = true;
1807 * @global integer $cfg['Import']['skip_queries']
1809 $cfg['Import']['skip_queries'] = 0;
1814 * @global string $cfg['Import']['sql_compatibility']
1816 $cfg['Import']['sql_compatibility'] = 'NONE';
1821 * @global string $cfg['Import']['sql_no_auto_value_on_zero']
1823 $cfg['Import']['sql_no_auto_value_on_zero'] = true;
1828 * @global boolean $cfg['Import']['csv_replace']
1830 $cfg['Import']['csv_replace'] = false;
1835 * @global boolean $cfg['Import']['csv_ignore']
1837 $cfg['Import']['csv_ignore'] = false;
1842 * @global string $cfg['Import']['csv_terminated']
1844 $cfg['Import']['csv_terminated'] = ',';
1849 * @global string $cfg['Import']['csv_enclosed']
1851 $cfg['Import']['csv_enclosed'] = '"';
1856 * @global string $cfg['Import']['csv_escaped']
1858 $cfg['Import']['csv_escaped'] = '\\';
1863 * @global string $cfg['Import']['csv_new_line']
1865 $cfg['Import']['csv_new_line'] = 'auto';
1870 * @global string $cfg['Import']['csv_columns']
1872 $cfg['Import']['csv_columns'] = '';
1877 * @global string $cfg['Import']['csv_col_names']
1879 $cfg['Import']['csv_col_names'] = false;
1884 * @global boolean $cfg['Import']['ldi_replace']
1886 $cfg['Import']['ldi_replace'] = false;
1891 * @global boolean $cfg['Import']['ldi_ignore']
1893 $cfg['Import']['ldi_ignore'] = false;
1898 * @global string $cfg['Import']['ldi_terminated']
1900 $cfg['Import']['ldi_terminated'] = ';';
1905 * @global string $cfg['Import']['ldi_enclosed']
1907 $cfg['Import']['ldi_enclosed'] = '"';
1912 * @global string $cfg['Import']['ldi_escaped']
1914 $cfg['Import']['ldi_escaped'] = '\\';
1919 * @global string $cfg['Import']['ldi_new_line']
1921 $cfg['Import']['ldi_new_line'] = 'auto';
1926 * @global string $cfg['Import']['ldi_columns']
1928 $cfg['Import']['ldi_columns'] = '';
1931 * 'auto' for auto-detection, true or false for forcing
1933 * @global string $cfg['Import']['ldi_local_option']
1935 $cfg['Import']['ldi_local_option'] = 'auto';
1940 * @global string $cfg['Import']['ods_col_names']
1942 $cfg['Import']['ods_col_names'] = false;
1947 * @global string $cfg['Import']['ods_empty_rows']
1949 $cfg['Import']['ods_empty_rows'] = true;
1954 * @global string $cfg['Import']['ods_recognize_percentages']
1956 $cfg['Import']['ods_recognize_percentages'] = true;
1961 * @global string $cfg['Import']['ods_recognize_currency']
1963 $cfg['Import']['ods_recognize_currency'] = true;
1968 * @global string $cfg['Import']['xml_col_names']
1970 $cfg['Import']['xls_col_names'] = false;
1975 * @global string $cfg['Import']['xml_empty_rows']
1977 $cfg['Import']['xls_empty_rows'] = true;
1982 * @global string $cfg['Import']['xlsx_col_names']
1984 $cfg['Import']['xlsx_col_names'] = false;
1987 * Link to the official MySQL documentation.
1988 * Be sure to include no trailing slash on the path.
1989 * See http://dev.mysql.com/doc/ for more information
1990 * about MySQL manuals and their types.
1992 * @global string $cfg['MySQLManualBase']
1994 $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
1997 * Type of MySQL documentation:
1998 * viewable - "viewable online", current one used on MySQL website
1999 * searchable - "Searchable, with user comments"
2000 * chapters - "HTML, one page per chapter"
2001 * chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
2002 * big - "HTML, all on one page"
2003 * old - old style used in phpMyAdmin 2.3.0 and sooner
2004 * none - do not show documentation links
2006 * @global string $cfg['MySQLManualType']
2008 $cfg['MySQLManualType'] = 'viewable';
2011 /*******************************************************************************
2018 * @global array $cfg['PDFPageSizes']
2020 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
2025 * @global string $cfg['PDFDefaultPageSize']
2027 $cfg['PDFDefaultPageSize'] = 'A4';
2030 /*******************************************************************************
2031 * Language and character set conversion settings
2035 * Default language to use, if not browser-defined or user-defined
2037 * @global string $cfg['DefaultLang']
2039 $cfg['DefaultLang'] = 'en';
2042 * Default connection collation
2044 * @global string $cfg['DefaultConnectionCollation']
2046 $cfg['DefaultConnectionCollation'] = 'utf8_general_ci';
2049 * Force: always use this language
2050 * $cfg['Lang'] = 'en';
2052 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
2055 * @global string $cfg['FilterLanguages']
2057 $cfg['FilterLanguages'] = '';
2060 * You can select here which functions will be used for character set conversion.
2061 * Possible values are:
2062 * auto - automatically use available one (first is tested iconv, then
2064 * iconv - use iconv or libiconv functions
2065 * recode - use recode_string function
2066 * none - disable encoding conversion
2068 * @global string $cfg['RecodingEngine']
2070 $cfg['RecodingEngine'] = 'auto';
2073 * Specify some parameters for iconv used in character set conversion. See iconv
2074 * documentation for details:
2075 * http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
2077 * @global string $cfg['IconvExtraParams']
2079 $cfg['IconvExtraParams'] = '//TRANSLIT';
2082 * Available character sets for MySQL conversion. currently contains all which could
2083 * be found in lang/* files and few more.
2084 * Character sets will be shown in same order as here listed, so if you frequently
2085 * use some of these move them to the top.
2087 * @global array $cfg['AvailableCharsets']
2089 $cfg['AvailableCharsets'] = array(
2124 /*******************************************************************************
2125 * Customization & design
2127 * The graphical settings are now located in themes/theme-name/layout.inc.php
2131 * enable the left panel pointer
2132 * (used when LeftFrameLight is false)
2133 * see also LeftPointerColor
2136 * @global boolean $cfg['LeftPointerEnable']
2138 $cfg['LeftPointerEnable'] = true;
2141 * enable the browse pointer
2142 * see also BrowsePointerColor
2145 * @global boolean $cfg['BrowsePointerEnable']
2147 $cfg['BrowsePointerEnable'] = true;
2150 * enable the browse marker
2151 * see also BrowseMarkerColor
2154 * @global boolean $cfg['BrowseMarkerEnable']
2156 $cfg['BrowseMarkerEnable'] = true;
2159 * textarea size (columns) in edit mode
2160 * (this value will be emphasized (*2) for SQL
2161 * query textareas and (*1.25) for query window)
2163 * @global integer $cfg['TextareaCols']
2165 $cfg['TextareaCols'] = 40;
2168 * textarea size (rows) in edit mode
2170 * @global integer $cfg['TextareaRows']
2172 $cfg['TextareaRows'] = 15;
2175 * double size of textarea size for LONGTEXT columns
2177 * @global boolean $cfg['LongtextDoubleTextarea']
2179 $cfg['LongtextDoubleTextarea'] = true;
2182 * auto-select when clicking in the textarea of the query-box
2184 * @global boolean $cfg['TextareaAutoSelect']
2186 $cfg['TextareaAutoSelect'] = false;
2189 * textarea size (columns) for CHAR/VARCHAR
2191 * @global integer $cfg['CharTextareaCols']
2193 $cfg['CharTextareaCols'] = 40;
2196 * textarea size (rows) for CHAR/VARCHAR
2198 * @global integer $cfg['CharTextareaRows']
2200 $cfg['CharTextareaRows'] = 2;
2203 * Max field data length in browse mode for all non-numeric fields
2205 * @global integer $cfg['LimitChars']
2207 $cfg['LimitChars'] = 50;
2210 * show edit/delete links on left side of browse
2211 * (or at the top with vertical browse)
2213 * @global boolean $cfg['ModifyDeleteAtLeft']
2215 $cfg['ModifyDeleteAtLeft'] = true;
2218 * show edit/delete links on right side of browse
2219 * (or at the bottom with vertical browse)
2221 * @global boolean $cfg['ModifyDeleteAtRight']
2223 $cfg['ModifyDeleteAtRight'] = false;
2226 * default display direction (horizontal|vertical|horizontalflipped)
2228 * @global string $cfg['DefaultDisplay']
2230 $cfg['DefaultDisplay'] = 'horizontal';
2233 * default display direction for altering/creating columns (tbl_properties)
2234 * (horizontal|vertical|<number>)
2235 * number indicates maximum number for which vertical model is used
2237 * @global integer $cfg['DefaultPropDisplay']
2239 $cfg['DefaultPropDisplay'] = 3;
2242 * table-header rotation via faking or CSS? (css|fake|auto)
2243 * NOTE: CSS only works in IE browsers!
2245 * @global string $cfg['HeaderFlipType']
2247 $cfg['HeaderFlipType'] = 'auto';
2250 * shows stored relation-comments in 'browse' mode.
2252 * @global boolean $cfg['ShowBrowseComments']
2254 $cfg['ShowBrowseComments'] = true;
2257 * shows stored relation-comments in 'table property' mode.
2259 * @global boolean $cfg['ShowPropertyComments']
2261 $cfg['ShowPropertyComments']= true;
2264 * repeat header names every X cells? (0 = deactivate)
2266 * @global integer $cfg['RepeatCells']
2268 $cfg['RepeatCells'] = 100;
2271 * Set to true if Edit link should open the query to edit in the query window
2272 * (assuming JavaScript is enabled), and to false if we should edit in the right panel
2274 * @global boolean $cfg['EditInWindow']
2276 $cfg['EditInWindow'] = true;
2279 * Width of Query window
2281 * @global integer $cfg['QueryWindowWidth']
2283 $cfg['QueryWindowWidth'] = 550;
2286 * Height of Query window
2288 * @global integer $cfg['QueryWindowHeight']
2290 $cfg['QueryWindowHeight'] = 310;
2293 * Set to true if you want DB-based query history.If false, this utilizes
2294 * JS-routines to display query history (lost by window close)
2296 * @global boolean $cfg['QueryHistoryDB']
2298 $cfg['QueryHistoryDB'] = false;
2301 * which tab to display in the querywindow on startup
2302 * (sql|files|history|full)
2304 * @global string $cfg['QueryWindowDefTab']
2306 $cfg['QueryWindowDefTab'] = 'sql';
2309 * When using DB-based query history, how many entries should be kept?
2311 * @global integer $cfg['QueryHistoryMax']
2313 $cfg['QueryHistoryMax'] = 25;
2316 * Use MIME-Types (stored in column comments table) for
2318 * @global boolean $cfg['BrowseMIME']
2320 $cfg['BrowseMIME'] = true;
2323 * When approximate count < this, PMA will get exact count for table rows.
2325 * @global integer $cfg['MaxExactCount']
2327 $cfg['MaxExactCount'] = 20000;
2330 * Zero means that no row count is done for views; see the doc
2332 * @global integer $cfg['MaxExactCountViews']
2334 $cfg['MaxExactCountViews'] = 0;
2337 * Sort table and database in natural order
2339 * @global boolean $cfg['NaturalOrder']
2341 $cfg['NaturalOrder'] = true;
2344 * Initial state for sliders
2347 * @global string $cfg['InitialSlidersState']
2349 $cfg['InitialSlidersState'] = 'closed';
2352 * User preferences: disallow these settings
2353 * For possible setting names look in libraries/config/user_preferences.forms.php
2355 * @global array $cfg['UserprefsDisallow']
2357 $cfg['UserprefsDisallow'] = array();
2360 * User preferences: enable the Developer tab
2362 $cfg['UserprefsDeveloperTab'] = false;
2364 /*******************************************************************************
2365 * Window title settings
2369 * title of browser window when a table is selected
2371 * @global string $cfg['TitleTable']
2373 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2376 * title of browser window when a database is selected
2378 * @global string $cfg['TitleDatabase']
2380 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2383 * title of browser window when a server is selected
2385 * @global string $cfg['TitleServer']
2387 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2390 * title of browser window when nothing is selected
2391 * @global string $cfg['TitleDefault']
2393 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2396 * show some icons for warning, error and information messages (true|false)?
2398 * @global boolean $cfg['ErrorIconic']
2400 $cfg['ErrorIconic'] = true;
2403 * show icons in list on main page and on menu tabs (true|false)?
2405 * @global boolean $cfg['MainPageIconic']
2407 $cfg['MainPageIconic'] = true;
2410 * show help button instead of Documentation text (true|false)?
2412 * @global boolean $cfg['ReplaceHelpImg']
2414 $cfg['ReplaceHelpImg'] = true;
2417 /*******************************************************************************
2422 * using themes manager please set up here the path to 'themes' else leave empty
2424 * @global string $cfg['ThemePath']
2426 $cfg['ThemePath'] = './themes';
2429 * if you want to use selectable themes and if ThemesPath not empty
2430 * set it to true, else set it to false (default is false);
2432 * @global boolean $cfg['ThemeManager']
2434 $cfg['ThemeManager'] = true;
2437 * set up default theme, if ThemePath not empty you can set up here an valid
2438 * path to themes or 'original' for the original pma-theme
2440 * @global string $cfg['ThemeDefault']
2442 $cfg['ThemeDefault'] = 'original';
2445 * allow different theme for each configured server
2447 * @global boolean $cfg['ThemePerServer']
2449 $cfg['ThemePerServer'] = false;
2452 /*******************************************************************************
2457 * Default query for table
2459 * @global string $cfg['DefaultQueryTable']
2461 $cfg['DefaultQueryTable'] = 'SELECT * FROM @TABLE@ WHERE 1';
2464 * Default query for database
2466 * @global string $cfg['DefaultQueryDatabase']
2468 $cfg['DefaultQueryDatabase'] = '';
2471 /*******************************************************************************
2472 * SQL Query box settings
2473 * These are the links display in all of the SQL Query boxes
2475 * @global array $cfg['SQLQuery']
2477 $cfg['SQLQuery'] = array();
2480 * Edit link to change a query
2482 * @global boolean $cfg['SQLQuery']['Edit']
2484 $cfg['SQLQuery']['Edit'] = true;
2487 * EXPLAIN on SELECT queries
2489 * @global boolean $cfg['SQLQuery']['Explain']
2491 $cfg['SQLQuery']['Explain'] = true;
2494 * Wrap a query in PHP
2496 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2498 $cfg['SQLQuery']['ShowAsPHP'] = true;
2501 * Validate a query (see $cfg['SQLValidator'] as well)
2503 * @global boolean $cfg['SQLQuery']['Validate']
2505 $cfg['SQLQuery']['Validate'] = false;
2508 * Refresh the results page
2510 * @global boolean $cfg['SQLQuery']['Refresh']
2512 $cfg['SQLQuery']['Refresh'] = true;
2515 /*******************************************************************************
2516 * Web server upload/save/import directories
2520 * Directory for uploaded files that can be executed by phpMyAdmin.
2521 * For example './upload'. Leave empty for no upload directory support.
2522 * Use %u for username inclusion.
2524 * @global string $cfg['UploadDir']
2526 $cfg['UploadDir'] = '';
2529 * Directory where phpMyAdmin can save exported data on server.
2530 * For example './save'. Leave empty for no save directory support.
2531 * Use %u for username inclusion.
2533 * @global string $cfg['SaveDir']
2535 $cfg['SaveDir'] = '';
2538 * Directory where phpMyAdmin can save temporary files.
2539 * This is needed for MS Excel export, see documentation how to enable that.
2541 * @global string $cfg['TempDir']
2543 $cfg['TempDir'] = '';
2551 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2552 * which is the only safe way to determine GD version.
2554 * @global string $cfg['GD2Available']
2556 $cfg['GD2Available'] = 'auto';
2559 * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
2561 * @global array $cfg['TrustedProxies']
2563 $cfg['TrustedProxies'] = array();
2566 * We normally check the permissions on the configuration file to ensure
2567 * it's not world writable. However, phpMyAdmin could be installed on
2568 * a NTFS filesystem mounted on a non-Windows server, in which case the
2569 * permissions seems wrong but in fact cannot be detected. In this case
2570 * a sysadmin would set the following to false.
2572 $cfg['CheckConfigurationPermissions'] = true;
2575 * Limit for length of URL in links. When length would be above this limit, it
2576 * is replaced by form with button.
2577 * This is required as some web servers (IIS) have problems with long URLs.
2579 $cfg['LinkLengthLimit'] = 1000;
2581 /*******************************************************************************
2582 * SQL Parser Settings
2584 * @global array $cfg['SQP']
2586 $cfg['SQP'] = array();
2589 * Pretty-printing style to use on queries (html, text, none)
2591 * @global string $cfg['SQP']['fmtType']
2593 $cfg['SQP']['fmtType'] = 'html';
2596 * Amount to indent each level (floats are valid)
2598 * @global integer $cfg['SQP']['fmtInd']
2600 $cfg['SQP']['fmtInd'] = '1';
2603 * Units for indenting each level (CSS Types - {em, px, pt})
2605 * @global string $cfg['SQP']['fmtIndUnit']
2607 $cfg['SQP']['fmtIndUnit'] = 'em';
2610 /*******************************************************************************
2611 * If you wish to use the SQL Validator service, you should be aware of the
2613 * All SQL statements are stored anonymously for statistical purposes.
2614 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
2615 * All rights reserved.
2617 * @global array $cfg['SQLValidator']
2619 $cfg['SQLValidator'] = array();
2622 * Make the SQL Validator available
2624 * @global boolean $cfg['SQLValidator']['use']
2626 $cfg['SQLValidator']['use'] = false;
2629 * If you have a custom username, specify it here (defaults to anonymous)
2631 * @global string $cfg['SQLValidator']['username']
2633 $cfg['SQLValidator']['username'] = '';
2636 * Password for username
2638 * @global string $cfg['SQLValidator']['password']
2640 $cfg['SQLValidator']['password'] = '';
2643 /*******************************************************************************
2646 * @global array $cfg['DBG']
2648 $cfg['DBG'] = array();
2651 * Output executed queries and their execution times
2653 * @global boolean $cfg['DBG']['sql']
2655 $cfg['DBG']['sql'] = false;
2658 /*******************************************************************************
2664 * VARCHAR, TINYINT, TEXT and DATE are listed first, based on estimated popularity
2666 * @global array $cfg['ColumnTypes']
2668 $cfg['ColumnTypes'] = array(
2695 'DATE and TIME' => array(
2733 'GEOMETRYCOLLECTION',
2740 * @global array $cfg['AttributeTypes']
2742 $cfg['AttributeTypes'] = array(
2746 'UNSIGNED ZEROFILL',
2747 'on update CURRENT_TIMESTAMP',
2751 if ($cfg['ShowFunctionFields']) {
2753 * Available functions
2755 * @global array $cfg['Functions']
2757 $cfg['Functions'] = array(
2830 * Which column types will be mapped to which Group?
2832 * @global array $cfg['RestrictColumnTypes']
2834 $cfg['RestrictColumnTypes'] = array(
2835 'TINYINT' => 'FUNC_NUMBER',
2836 'SMALLINT' => 'FUNC_NUMBER',
2837 'MEDIUMINT' => 'FUNC_NUMBER',
2838 'INT' => 'FUNC_NUMBER',
2839 'BIGINT' => 'FUNC_NUMBER',
2840 'DECIMAL' => 'FUNC_NUMBER',
2841 'FLOAT' => 'FUNC_NUMBER',
2842 'DOUBLE' => 'FUNC_NUMBER',
2843 'REAL' => 'FUNC_NUMBER',
2844 'BIT' => 'FUNC_NUMBER',
2845 'BOOLEAN' => 'FUNC_NUMBER',
2846 'SERIAL' => 'FUNC_NUMBER',
2848 'DATE' => 'FUNC_DATE',
2849 'DATETIME' => 'FUNC_DATE',
2850 'TIMESTAMP' => 'FUNC_DATE',
2851 'TIME' => 'FUNC_DATE',
2852 'YEAR' => 'FUNC_DATE',
2854 'CHAR' => 'FUNC_CHAR',
2855 'VARCHAR' => 'FUNC_CHAR',
2856 'TINYTEXT' => 'FUNC_CHAR',
2857 'TEXT' => 'FUNC_CHAR',
2858 'MEDIUMTEXT' => 'FUNC_CHAR',
2859 'LONGTEXT' => 'FUNC_CHAR',
2860 'BINARY' => 'FUNC_CHAR',
2861 'VARBINARY' => 'FUNC_CHAR',
2862 'TINYBLOB' => 'FUNC_CHAR',
2863 'MEDIUMBLOB' => 'FUNC_CHAR',
2864 'BLOB' => 'FUNC_CHAR',
2865 'LONGBLOB' => 'FUNC_CHAR',
2869 'GEOMETRY' => 'FUNC_SPATIAL',
2870 'POINT' => 'FUNC_SPATIAL',
2871 'LINESTRING' => 'FUNC_SPATIAL',
2872 'POLYGON' => 'FUNC_SPATIAL',
2873 'MULTIPOINT' => 'FUNC_SPATIAL',
2874 'MULTILINESTRING' => 'FUNC_SPATIAL',
2875 'MULTIPOLYGON' => 'FUNC_SPATIAL',
2876 'GEOMETRYCOLLECTION' => 'FUNC_SPATIAL',
2881 * Map above defined groups to any function
2883 * @global array $cfg['RestrictFunctions']
2885 $cfg['RestrictFunctions'] = array(
2886 'FUNC_CHAR' => array(
2912 'FUNC_DATE' => array(
2927 'FUNC_NUMBER' => array(
2964 'FUNC_SPATIAL' => array(
2987 * Default functions for above defined groups
2989 * @global array $cfg['DefaultFunctions']
2991 $cfg['DefaultFunctions'] = array(
2994 'FUNC_NUMBER' => '',
2995 'first_timestamp' => 'NOW',
2996 'pk_char36' => 'UUID',
3005 * @global array $cfg['NumOperators']
3007 $cfg['NumOperators'] = array(
3025 * @global array $cfg['TextOperators']
3027 $cfg['TextOperators'] = array(
3047 * @global array $cfg['EnumOperators']
3049 $cfg['EnumOperators'] = array(
3057 * @global array $cfg['SetOperators']
3059 $cfg['SetOperators'] = array(
3067 * @global array $cfg['NullOperators']
3069 $cfg['NullOperators'] = array(
3077 * @global array $cfg['UnaryOperators']
3079 $cfg['UnaryOperators'] = array(