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
24 * Your phpMyAdmin URL.
26 * Complete the variable below with the full URL ie
27 * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
29 * It must contain characters that are valid for a URL, and the path is
30 * case sensitive on some Web servers, for example Unix-based servers.
32 * In most cases you can leave this variable empty, as the correct value
33 * will be detected automatically. However, we recommend that you do
34 * test to see that the auto-detection code works in your system. A good
35 * test is to browse a table, then edit a row and save it. There will be
36 * an error message if phpMyAdmin cannot auto-detect the correct value.
38 * @global string $cfg['PmaAbsoluteUri']
40 $cfg['PmaAbsoluteUri'] = '';
43 * Disable the default warning that is displayed on the DB Details Structure page if
44 * any of the required Tables for the relation features could not be found
46 * @global boolean $cfg['PmaNoRelation_DisableWarning']
48 $cfg['PmaNoRelation_DisableWarning'] = false;
51 * Disable the default warning that is displayed if Suhosin is detected
53 * @global boolean $cfg['SuhosinDisableWarning']
55 $cfg['SuhosinDisableWarning'] = false;
58 * Disable the default warning that is displayed if mcrypt is missing for
59 * cookie authentication.
61 * @global boolean $cfg['McryptDisableWarning']
63 $cfg['McryptDisableWarning'] = false;
66 * Allows phpMyAdmin to be included from a document located on
67 * another domain; setting this to true is a potential security hole
69 * @global boolean $cfg['AllowThirdPartyFraming']
71 $cfg['AllowThirdPartyFraming'] = false;
74 * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
75 * at least one server configuration uses 'cookie' auth_type, enter here a
76 * pass phrase that will be used by blowfish. The maximum length seems to be 46
79 * @global string $cfg['blowfish_secret']
81 $cfg['blowfish_secret'] = '';
84 /*******************************************************************************
85 * Server(s) configuration
87 * The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
88 * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
89 * to ''. If you want more than one server, just copy following section
90 * (including $i incrementation) several times. There is no need to define
91 * full server array, just define values you need to change.
93 * @global array $cfg['Servers']
95 $cfg['Servers'] = array();
100 * MySQL hostname or IP address
102 * @global string $cfg['Servers'][$i]['host']
104 $cfg['Servers'][$i]['host'] = 'localhost';
107 * MySQL port - leave blank for default port
109 * @global string $cfg['Servers'][$i]['port']
111 $cfg['Servers'][$i]['port'] = '';
114 * Path to the socket - leave blank for default socket
116 * @global string $cfg['Servers'][$i]['socket']
118 $cfg['Servers'][$i]['socket'] = '';
121 * Use SSL for connecting to MySQL server?
123 * @global boolean $cfg['Servers'][$i]['ssl']
125 $cfg['Servers'][$i]['ssl'] = false;
128 * How to connect to MySQL server ('tcp' or 'socket')
130 * @global string $cfg['Servers'][$i]['connect_type']
132 $cfg['Servers'][$i]['connect_type'] = 'tcp';
135 * The PHP MySQL extension to use ('mysql' or 'mysqli')
137 * @global string $cfg['Servers'][$i]['extension']
139 $cfg['Servers'][$i]['extension'] = 'mysql';
141 /* added for blobstreaming */
142 $cfg['Servers'][$i]['bs_garbage_threshold'] = '';
143 $cfg['Servers'][$i]['bs_repository_threshold'] = '';
144 $cfg['Servers'][$i]['bs_temp_blob_timeout'] = '';
145 $cfg['Servers'][$i]['bs_temp_log_threshold'] = '';
148 * Use compressed protocol for the MySQL connection (requires PHP >= 4.3.0)
150 * @global boolean $cfg['Servers'][$i]['compress']
152 $cfg['Servers'][$i]['compress'] = false;
155 * MySQL control user settings (this user must have read-only
156 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
157 * used for all relational features (pmadb)
159 * @global string $cfg['Servers'][$i]['controluser']
161 $cfg['Servers'][$i]['controluser'] = '';
164 * MySQL control user settings (this user must have read-only
165 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
166 * used for all relational features (pmadb)
168 * @global string $cfg['Servers'][$i]['controlpass']
170 $cfg['Servers'][$i]['controlpass'] = '';
173 * Authentication method (valid choices: config, http, signon or cookie)
175 * @global string $cfg['Servers'][$i]['auth_type']
177 $cfg['Servers'][$i]['auth_type'] = 'cookie';
180 * HTTP Basic Auth Realm name to display (only used with 'HTTP' auth_type)
182 * @global string $cfg['Servers'][$i]['auth_http_realm']
184 $cfg['Servers'][$i]['auth_http_realm'] = '';
187 * File containing Swekey ids and login names (see /contrib);
188 * leave empty to deactivate Swekey hardware authentication
190 * @global string $cfg['Servers'][$i]['auth_swekey_config']
192 $cfg['Servers'][$i]['auth_swekey_config'] = '';
197 * @global string $cfg['Servers'][$i]['user']
199 $cfg['Servers'][$i]['user'] = 'root';
202 * MySQL password (only needed with 'config' auth_type)
204 * @global string $cfg['Servers'][$i]['password']
206 $cfg['Servers'][$i]['password'] = '';
209 * Session to use for 'signon' authentication method
211 * @global string $cfg['Servers'][$i]['SignonSession']
213 $cfg['Servers'][$i]['SignonSession'] = '';
216 * URL where to redirect user to login for 'signon' authentication method
218 * @global string $cfg['Servers'][$i]['SignonURL']
220 $cfg['Servers'][$i]['SignonURL'] = '';
223 * URL where to redirect user after logout
225 * @global string $cfg['Servers'][$i]['LogoutURL']
227 $cfg['Servers'][$i]['LogoutURL'] = '';
230 * Whether to try to connect without password
232 * @global boolean $cfg['Servers'][$i]['nopassword']
234 $cfg['Servers'][$i]['nopassword'] = false;
237 * If set to a db-name, only this db is displayed in left frame
238 * It may also be an array of db-names, where sorting order is relevant.
240 * @global string $cfg['Servers'][$i]['only_db']
242 $cfg['Servers'][$i]['only_db'] = '';
245 * Database name to be hidden from listings
247 * @global string $cfg['Servers'][$i]['hide_db']
249 $cfg['Servers'][$i]['hide_db'] = '';
252 * Verbose name for this host - leave blank to show the hostname
253 * (for HTTP authentication, all non-US-ASCII characters will be stripped)
255 * @global string $cfg['Servers'][$i]['verbose']
257 $cfg['Servers'][$i]['verbose'] = '';
260 * Database used for Relation, Bookmark and PDF Features
261 * (see scripts/create_tables.sql)
262 * - leave blank for no support
263 * SUGGESTED: 'phpmyadmin'
265 * @global string $cfg['Servers'][$i]['pmadb']
267 $cfg['Servers'][$i]['pmadb'] = '';
271 * - leave blank for no bookmark support
272 * SUGGESTED: 'pma_bookmark'
274 * @global string $cfg['Servers'][$i]['bookmarktable']
276 $cfg['Servers'][$i]['bookmarktable'] = '';
279 * table to describe the relation between links (see doc)
280 * - leave blank for no relation-links support
281 * SUGGESTED: 'pma_relation'
283 * @global string $cfg['Servers'][$i]['relation']
285 $cfg['Servers'][$i]['relation'] = '';
288 * table to describe the display fields
289 * - leave blank for no display fields support
290 * SUGGESTED: 'pma_table_info'
292 * @global string $cfg['Servers'][$i]['table_info']
294 $cfg['Servers'][$i]['table_info'] = '';
297 * table to describe the tables position for the PDF schema
298 * - leave blank for no PDF schema support
299 * SUGGESTED: 'pma_table_coords'
301 * @global string $cfg['Servers'][$i]['table_coords']
303 $cfg['Servers'][$i]['table_coords'] = '';
306 * table to describe pages of relationpdf
307 * - leave blank if you don't want to use this
308 * SUGGESTED: 'pma_pdf_pages'
310 * @global string $cfg['Servers'][$i]['pdf_pages']
312 $cfg['Servers'][$i]['pdf_pages'] = '';
315 * table to store column information
316 * - leave blank for no column comments/mime types
317 * SUGGESTED: 'pma_column_info'
319 * @global string $cfg['Servers'][$i]['column_info']
321 $cfg['Servers'][$i]['column_info'] = '';
324 * table to store SQL history
325 * - leave blank for no SQL query history
326 * SUGGESTED: 'pma_history'
328 * @global string $cfg['Servers'][$i]['history']
330 $cfg['Servers'][$i]['history'] = '';
333 * table to store the coordinates for Designer
334 * - leave blank for no Designer feature
335 * SUGGESTED: 'pma_designer_coords'
337 * @global string $cfg['Servers'][$i]['designer_coords']
339 $cfg['Servers'][$i]['designer_coords'] = '';
342 * table to store SQL tracking
343 * - leave blank for no SQL tracking
344 * SUGGESTED: 'pma_tracking'
346 * @global string $cfg['Servers'][$i]['tracking']
348 $cfg['Servers'][$i]['tracking'] = '';
351 * set to false if you know that your pma_* tables are up to date.
352 * This prevents compatibility checks and thereby increases performance.
354 * @global boolean $cfg['Servers'][$i]['verbose_check']
356 $cfg['Servers'][$i]['verbose_check'] = true;
359 * whether to allow root login
361 * @global boolean $cfg['Servers'][$i]['AllowRoot']
363 $cfg['Servers'][$i]['AllowRoot'] = true;
366 * whether to allow login of any user without a password
368 * @global boolean $cfg['Servers'][$i]['AllowNoPassword']
370 $cfg['Servers'][$i]['AllowNoPassword'] = false;
373 * Host authentication order, leave blank to not use
375 * @global string $cfg['Servers'][$i]['AllowDeny']['order']
377 $cfg['Servers'][$i]['AllowDeny']['order'] = '';
380 * Host authentication rules, leave blank for defaults
382 * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
384 $cfg['Servers'][$i]['AllowDeny']['rules'] = array();
387 * Disable use of INFORMATION_SCHEMA
389 * @see http://sf.net/support/tracker.php?aid=1849494
390 * @see http://bugs.mysql.com/19588
391 * @global boolean $cfg['Servers'][$i]['DisableIS']
393 $cfg['Servers'][$i]['DisableIS'] = true;
396 * SQL command to fetch available databases
398 * by default most user will be fine with SHOW DATABASES,
399 * for servers with a huge amount of databases it is possible to
400 * define a command which executes faster but with less information
402 * especially when accessing database servers from ISPs changing this command
403 * can result in a great speed improvement
405 * false will disable fetching databases from the server, only databases in
406 * $cfg['Servers'][$i]['only_db'] will be displayed
408 * #user# will be replaced by current user
412 * "SHOW DATABASES LIKE '#user#\_%'"
413 * 'SELECT DISTINCT TABLE_SCHEMA FROM information_schema.SCHEMA_PRIVILEGES'
414 * 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA'
417 * @global array $cfg['Servers'][$i]['ShowDatabasesCommand']
419 $cfg['Servers'][$i]['ShowDatabasesCommand'] = 'SHOW DATABASES';
422 * Whether to count tables when showing database list
424 * @global array $cfg['Servers'][$i]['CountTables']
426 $cfg['Servers'][$i]['CountTables'] = true;
429 * Whether the tracking mechanism creates versions for tables and views automatically.
431 * @global bool $cfg['Servers'][$i]['tracking_version_auto_create']
434 $cfg['Servers'][$i]['tracking_version_auto_create'] = false;
437 * Defines the list of statements the auto-creation uses for new versions.
439 * @global string $cfg['Servers'][$i]['tracking_default_statements']
442 $cfg['Servers'][$i]['tracking_default_statements'] = 'CREATE TABLE,ALTER TABLE,DROP TABLE,RENAME TABLE,' .
443 'CREATE INDEX,DROP INDEX,' .
444 'INSERT,UPDATE,DELETE,TRUNCATE,REPLACE,' .
445 'CREATE VIEW,ALTER VIEW,DROP VIEW,' .
446 'CREATE DATABASE,ALTER DATABASE,DROP DATABASE';
449 * Whether a DROP VIEW IF EXISTS statement will be added as first line to the log when creating a view.
451 * @global bool $cfg['Servers'][$i]['tracking_add_drop_view']
454 $cfg['Servers'][$i]['tracking_add_drop_view'] = true;
457 * Whether a DROP TABLE IF EXISTS statement will be added as first line to the log when creating a table.
459 * @global bool $cfg['Servers'][$i]['tracking_add_drop_table']
462 $cfg['Servers'][$i]['tracking_add_drop_table'] = true;
465 * Whether a DROP DATABASE IF EXISTS statement will be added as first line to the log when creating a database.
467 * @global bool $cfg['Servers'][$i]['tracking_add_drop_database']
470 $cfg['Servers'][$i]['tracking_add_drop_database'] = true;
473 * Default server (0 = no default server)
475 * If you have more than one server configured, you can set $cfg['ServerDefault']
476 * to any one of them to auto-connect to that server when phpMyAdmin is started,
477 * or set it to 0 to be given a list of servers without logging in
478 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
479 * set to that server.
481 * @global integer $cfg['ServerDefault']
483 $cfg['ServerDefault'] = 1;
486 * Other core phpMyAdmin settings
489 * maximum number of db's displayed in left frame and database list
491 * @global integer $cfg['MaxDbList']
493 $cfg['MaxDbList'] = 100;
496 * maximum number of tables displayed in table list
498 * @global integer $cfg['MaxTableList']
500 $cfg['MaxTableList'] = 250;
503 * maximum number of characters when a SQL query is displayed
505 * @global integer $cfg['MaxCharactersInDisplayedSQL']
507 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
510 * use GZIP output buffering if possible (true|false|'auto')
512 * @global string $cfg['OBGzip']
514 $cfg['OBGzip'] = 'auto';
517 * use persistent connections to MySQL database
519 * @global boolean $cfg['PersistentConnections']
521 $cfg['PersistentConnections'] = false;
524 * whether to force using HTTPS
526 * @global boolean $cfg['ForceSSL']
528 $cfg['ForceSSL'] = false;
531 * maximum execution time in seconds (0 for no limit)
533 * @global integer $cfg['ExecTimeLimit']
535 $cfg['ExecTimeLimit'] = 300;
538 * Path for storing session data (session_save_path PHP parameter).
540 * @global integer $cfg['SessionSavePath']
542 $cfg['SessionSavePath'] = '';
545 * maximum allocated bytes (0 for no limit)
547 * @global integer $cfg['MemoryLimit']
549 $cfg['MemoryLimit'] = 0;
552 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
554 * @global boolean $cfg['SkipLockedTables']
556 $cfg['SkipLockedTables'] = false;
559 * show SQL queries as run
561 * @global boolean $cfg['ShowSQL']
563 $cfg['ShowSQL'] = true;
566 * show a 'Drop database' link to normal users
568 * @global boolean $cfg['AllowUserDropDatabase']
570 $cfg['AllowUserDropDatabase'] = false;
573 * confirm some commands that can result in loss of data
574 * (see "need_confirm" in the parser)
576 * @global boolean $cfg['Confirm']
578 $cfg['Confirm'] = true;
581 * recall previous login in cookie authentication mode or not
583 * @global boolean $cfg['LoginCookieRecall']
585 $cfg['LoginCookieRecall'] = true;
588 * validity of cookie login (in seconds)
590 * @global integer $cfg['LoginCookieValidity']
592 $cfg['LoginCookieValidity'] = 1440;
595 * how long login cookie should be stored (in seconds)
597 * @global integer $cfg['LoginCookieStore']
599 $cfg['LoginCookieStore'] = 0;
602 * whether to delete all login cookies on logout
604 * @global boolean $cfg['LoginCookieDeleteAll']
606 $cfg['LoginCookieDeleteAll'] = true;
609 * whether to enable the "database search" feature or not
611 * @global boolean $cfg['UseDbSearch']
613 $cfg['UseDbSearch'] = true;
616 * if set to true, PMA continues computing multiple-statement queries
617 * even if one of the queries failed
619 * @global boolean $cfg['IgnoreMultiSubmitErrors']
621 $cfg['IgnoreMultiSubmitErrors'] = false;
624 * if set to true, PMA will show the affected rows of EACH statement on
625 * multiple-statement queries. See the libraries/import.php file for
626 * hard coded defaults on how many queries a statement may contain!
628 * @global boolean $cfg['VerboseMultiSubmit']
630 $cfg['VerboseMultiSubmit'] = true;
633 * allow login to any user entered server in cookie based authentication
635 * @global boolean $cfg['AllowArbitraryServer']
637 $cfg['AllowArbitraryServer'] = false;
640 /*******************************************************************************
641 * Error handler configuration
643 * this configures phpMyAdmin's own error handler, it is used to avoid information
644 * disclosure, gather errors for logging, reporting and displaying
646 * @global array $cfg['Error_Handler']
648 $cfg['Error_Handler'] = array();
651 * whether to display errors or not
653 * this does not affect errors of type E_USER_*
655 * @global boolean $cfg['Error_Handler']['display']
657 $cfg['Error_Handler']['display'] = false;
660 * (NOT IMPLEMENTED YET)
661 * where to log errors, false or empty to disable
664 * // EXAMPLE log to std PHP error log
665 * $cfg['Error_Handler']['log'] = array(0);
666 * // EXAMPLE mail errors
667 * $cfg['Error_Handler']['log'] = array(1, 'admin@example.org');
668 * // EXAMPLE append to specific file
669 * $cfg['Error_Handler']['log'] = array(3, '/var/log/phpmyadmin_error.log');
672 * @see http://php.net/error_log
673 * @global string $cfg['Error_Handler']['log']
675 //$cfg['Error_Handler']['log'] = false;
678 * gather all errors in session to be displayed on a error reporting page
679 * for viewing and/or sending to phpMyAdmin developer team
681 * @global boolean $cfg['Error_Handler']['gather']
683 $cfg['Error_Handler']['gather'] = false;
686 /*******************************************************************************
691 * use a select-based menu and display only the current tables in the left frame.
693 * @global boolean $cfg['LeftFrameLight']
695 $cfg['LeftFrameLight'] = true;
698 * turn the select-based light menu into a tree
700 * @global boolean $cfg['LeftFrameDBTree']
702 $cfg['LeftFrameDBTree'] = true;
705 * the separator to sub-tree the select-based light menu tree
707 * @global string $cfg['LeftFrameDBSeparator']
709 $cfg['LeftFrameDBSeparator'] = '_';
712 * Which string will be used to generate table prefixes
713 * to split/nest tables into multiple categories
715 * @global string $cfg['LeftFrameTableSeparator']
717 $cfg['LeftFrameTableSeparator']= '__';
720 * How many sublevels should be displayed when splitting up tables by the above Separator
722 * @global integer $cfg['LeftFrameTableLevel']
724 $cfg['LeftFrameTableLevel'] = 1;
727 * display table comment as tooltip in left frame
729 * @global boolean $cfg['ShowTooltip']
731 $cfg['ShowTooltip'] = true;
734 * if ShowToolTip is enabled, this defines that table/db comments
736 * @global boolean $cfg['ShowTooltipAliasDB']
738 $cfg['ShowTooltipAliasDB'] = false;
741 * are shown (in the left menu and db_structure) instead of table/db names.
742 * Setting ShowTooltipAliasTB to 'nested' will only use the Aliases for nested
743 * descriptors, not the table itself.
745 * @global boolean $cfg['ShowTooltipAliasTB']
747 $cfg['ShowTooltipAliasTB'] = false;
750 * display logo at top of left frame
752 * @global boolean $cfg['LeftDisplayLogo']
754 $cfg['LeftDisplayLogo'] = true;
757 * where should logo link point to (can also contain an external URL)
759 * @global string $cfg['LeftLogoLink']
761 $cfg['LeftLogoLink'] = 'main.php';
764 * whether to open the linked page in the main window ('main') or
765 * in a new window ('new')
767 * @global string $cfg['LeftLogoLinkWindow']
769 $cfg['LeftLogoLinkWindow'] = 'main';
772 * display server choice at top of left frame
774 * @global boolean $cfg['LeftDisplayServers']
776 $cfg['LeftDisplayServers'] = false;
779 * server choice as links
781 * @global boolean $cfg['DisplayServersList']
783 $cfg['DisplayServersList'] = false;
786 * database choice in light as links
788 * @global boolean $cfg['DisplayDatabasesList']
790 $cfg['DisplayDatabasesList'] = 'auto';
793 * target of the navigation panel quick access icon
796 * 'tbl_structure.php' = fields list
797 * 'tbl_sql.php' = SQL form
798 * 'tbl_select.php' = search page
799 * 'tbl_change.php' = insert row page
800 * 'sql.php' = browse page
802 * @global string $cfg['LeftDefaultTabTable']
804 $cfg['LeftDefaultTabTable'] = 'tbl_structure.php';
807 /*******************************************************************************
808 * In the main frame, at startup...
812 * allow to display statistics and space usage in the pages about database
813 * details and table properties
815 * @global boolean $cfg['ShowStats']
817 $cfg['ShowStats'] = true;
822 * @global boolean $cfg['ShowPhpInfo']
824 $cfg['ShowPhpInfo'] = false;
827 * show MySQL server and web server information
829 * @global boolean $cfg['ShowServerInfo']
831 $cfg['ShowServerInfo'] = true;
834 * show change password link
836 * @global boolean $cfg['ShowChgPassword']
838 $cfg['ShowChgPassword'] = true;
841 * show create database form
843 * @global boolean $cfg['ShowCreateDb']
845 $cfg['ShowCreateDb'] = true;
848 * suggest a new DB name if possible (false = keep empty)
850 * @global boolean $cfg['SuggestDBName']
852 $cfg['SuggestDBName'] = true;
855 /*******************************************************************************
860 * Use icons instead of text for the navigation bar buttons
861 * and on right panel top menu (server db table) (true|false|'both')
863 * @global string $cfg['NavigationBarIconic']
865 $cfg['NavigationBarIconic'] = true;
868 * Defines whether a user should be displayed a "show all (records)"
869 * button in browse mode or not.
871 * @global boolean $cfg['ShowAll']
873 $cfg['ShowAll'] = false;
876 * Number of rows displayed when browsing a result set. If the result
877 * set contains more rows, "Previous" and "Next".
879 * @global integer $cfg['MaxRows']
881 $cfg['MaxRows'] = 30;
884 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
885 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
886 * ascending order else-)
888 * @global string $cfg['Order']
890 $cfg['Order'] = 'SMART';
893 * default for 'Show binary contents as HEX'
895 * @global string $cfg['DisplayBinaryAsHex']
897 $cfg['DisplayBinaryAsHex'] = true;
900 /*******************************************************************************
905 * disallow editing of binary fields
907 * false allow editing
908 * 'blob' allow editing except for BLOB fields
909 * 'all' disallow editing
911 * @global string $cfg['ProtectBinary']
913 $cfg['ProtectBinary'] = 'blob';
916 * Display the function fields in edit/insert mode
918 * @global boolean $cfg['ShowFunctionFields']
920 $cfg['ShowFunctionFields'] = true;
923 * Display the type fields in edit/insert mode
925 * @global boolean $cfg['ShowFieldTypesInDataEditView']
927 $cfg['ShowFieldTypesInDataEditView'] = true;
930 * Which editor should be used for CHAR/VARCHAR fields:
931 * input - allows limiting of input length
932 * textarea - allows newlines in fields
934 * @global string $cfg['CharEditing']
936 $cfg['CharEditing'] = 'input';
939 * How many rows can be inserted at one time
941 * @global integer $cfg['InsertRows']
943 $cfg['InsertRows'] = 2;
946 * Sort order for items in a foreign-key drop-down list.
947 * 'content' is the referenced data, 'id' is the key value.
949 * @global array $cfg['ForeignKeyDropdownOrder']
951 $cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
954 * A drop-down list will be used if fewer items are present
956 * @global integer $cfg['ForeignKeyMaxLimit']
958 $cfg['ForeignKeyMaxLimit'] = 100;
961 /*******************************************************************************
962 * For the export features...
966 * Allow for the use of zip compression (requires zip support to be enabled)
968 * @global boolean $cfg['ZipDump']
970 $cfg['ZipDump'] = true;
973 * Allow for the use of gzip compression (requires zlib)
975 * @global boolean $cfg['GZipDump']
977 $cfg['GZipDump'] = true;
980 * Allow for the use of bzip2 compression (requires bz2 extension)
982 * @global boolean $cfg['BZipDump']
984 $cfg['BZipDump'] = true;
987 * Will compress gzip/bzip2 exports on the fly without the need for much memory.
988 * If you encounter problems with created gzip/bzip2 files disable this feature.
990 * @global boolean $cfg['CompressOnFly']
992 $cfg['CompressOnFly'] = true;
995 /*******************************************************************************
996 * Tabs display settings
1000 * Use graphically less intense menu tabs
1002 * @global boolean $cfg['LightTabs']
1004 $cfg['LightTabs'] = false;
1007 * Use icons instead of text for the table display of a database (true|false|'both')
1009 * @global boolean $cfg['PropertiesIconic']
1011 $cfg['PropertiesIconic'] = true;
1014 * How many columns should be used for table display of a database?
1015 * (a value larger than 1 results in some information being hidden)
1017 * @global integer $cfg['PropertiesNumColumns']
1019 $cfg['PropertiesNumColumns'] = 1;
1023 * 'main.php' = the welcome page
1024 * (recommended for multiuser setups)
1025 * 'server_databases.php' = list of databases
1026 * 'server_status.php' = runtime information
1027 * 'server_variables.php' = MySQL server variables
1028 * 'server_privileges.php' = user management
1029 * 'server_processlist.php' = process list
1031 * @global string $cfg['DefaultTabServer']
1033 $cfg['DefaultTabServer'] = 'main.php';
1037 * 'db_structure.php' = tables list
1038 * 'db_sql.php' = SQL form
1039 * 'db_search.php' = search query
1040 * 'db_operations.php' = operations on database
1042 * @global string $cfg['DefaultTabDatabase']
1044 $cfg['DefaultTabDatabase'] = 'db_structure.php';
1048 * 'tbl_structure.php' = fields list
1049 * 'tbl_sql.php' = SQL form
1050 * 'tbl_select.php' = search page
1051 * 'tbl_change.php' = insert row page
1052 * 'sql.php' = browse page
1054 * @global string $cfg['DefaultTabTable']
1056 $cfg['DefaultTabTable'] = 'sql.php';
1059 * Mapping between script filenames and translation keys
1061 * Lookup can be performed by PMA_getTitleForTarget()
1063 * @global string $cfg['DefaultTabTranslationMapping']
1065 $cfg['DefaultTabTranslationMapping'] = array(
1067 // Values for $cfg['DefaultTabTable']
1068 'tbl_structure.php' => 'strStructure',
1069 'tbl_sql.php' => 'strSQL',
1070 'tbl_select.php' => 'strSearch',
1071 'tbl_change.php' => 'strInsert',
1072 'sql.php' => 'strBrowse',
1074 // Values for $cfg['DefaultTabDatabase']
1075 'db_structure.php' => 'strStructure',
1076 'db_sql.php' => 'strSQL',
1077 'db_search.php' => 'strSearch',
1078 'db_operations.php' => 'strOperations',
1081 /*******************************************************************************
1084 $cfg['Export'] = array();
1087 * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xls/xml/yaml
1089 * @global string $cfg['Export']['format']
1091 $cfg['Export']['format'] = 'sql';
1094 * none/zip/gzip/bzip2
1096 * @global string $cfg['Export']['compression']
1098 $cfg['Export']['compression'] = 'none';
1103 * @global boolean $cfg['Export']['asfile']
1105 $cfg['Export']['asfile'] = true;
1110 * @global string $cfg['Export']['charset']
1112 $cfg['Export']['charset'] = '';
1117 * @global boolean $cfg['Export']['onserver']
1119 $cfg['Export']['onserver'] = false;
1124 * @global boolean $cfg['Export']['onserver_overwrite']
1126 $cfg['Export']['onserver_overwrite'] = false;
1131 * @global boolean $cfg['Export']['remember_file_template']
1133 $cfg['Export']['remember_file_template'] = true;
1138 * @global string $cfg['Export']['file_template_table']
1140 $cfg['Export']['file_template_table'] = '__TABLE__';
1145 * @global string $cfg['Export']['file_template_database']
1147 $cfg['Export']['file_template_database'] = '__DB__';
1152 * @global string $cfg['Export']['file_template_server']
1154 $cfg['Export']['file_template_server'] = '__SERVER__';
1159 * @global boolean $cfg['Export']['ods_columns']
1161 $cfg['Export']['ods_columns'] = false;
1166 * @global string $cfg['Export']['ods_null']
1168 $cfg['Export']['ods_null'] = 'NULL';
1173 * @global boolean $cfg['Export']['odt_structure']
1175 $cfg['Export']['odt_structure'] = true;
1180 * @global boolean $cfg['Export']['odt_data']
1182 $cfg['Export']['odt_data'] = true;
1187 * @global boolean $cfg['Export']['odt_columns']
1189 $cfg['Export']['odt_columns'] = true;
1194 * @global boolean $cfg['Export']['odt_relation']
1196 $cfg['Export']['odt_relation'] = true;
1201 * @global boolean $cfg['Export']['odt_comments']
1203 $cfg['Export']['odt_comments'] = true;
1208 * @global boolean $cfg['Export']['odt_mime']
1210 $cfg['Export']['odt_mime'] = true;
1215 * @global string $cfg['Export']['odt_null']
1217 $cfg['Export']['odt_null'] = 'NULL';
1222 * @global boolean $cfg['Export']['htmlword_structure']
1224 $cfg['Export']['htmlword_structure'] = true;
1229 * @global boolean $cfg['Export']['htmlword_data']
1231 $cfg['Export']['htmlword_data'] = true;
1236 * @global boolean $cfg['Export']['htmlword_columns']
1238 $cfg['Export']['htmlword_columns'] = false;
1243 * @global string $cfg['Export']['htmlword_null']
1245 $cfg['Export']['htmlword_null'] = 'NULL';
1250 * @global boolean $cfg['Export']['texytext_structure']
1252 $cfg['Export']['texytext_structure'] = TRUE;
1257 * @global boolean $cfg['Export']['texytext_data']
1259 $cfg['Export']['texytext_data'] = TRUE;
1264 * @global boolean $cfg['Export']['texytext_columns']
1266 $cfg['Export']['texytext_columns'] = FALSE;
1271 * @global string $cfg['Export']['texytext_null']
1273 $cfg['Export']['texytext_null'] = 'NULL';
1278 * @global boolean $cfg['Export']['xls_columns']
1280 $cfg['Export']['xls_columns'] = false;
1285 * @global string $cfg['Export']['xls_null']
1287 $cfg['Export']['xls_null'] = 'NULL';
1292 * @global boolean $cfg['Export']['xlsx_columns']
1294 $cfg['Export']['xlsx_columns'] = false;
1299 * @global string $cfg['Export']['xlsx_null']
1301 $cfg['Export']['xlsx_null'] = 'NULL';
1306 * @global boolean $cfg['Export']['csv_columns']
1308 $cfg['Export']['csv_columns'] = false;
1313 * @global string $cfg['Export']['csv_null']
1315 $cfg['Export']['csv_null'] = 'NULL';
1320 * @global string $cfg['Export']['csv_separator']
1322 $cfg['Export']['csv_separator'] = ';';
1327 * @global string $cfg['Export']['csv_enclosed']
1329 $cfg['Export']['csv_enclosed'] = '"';
1334 * @global string $cfg['Export']['csv_escaped']
1336 $cfg['Export']['csv_escaped'] = '\\';
1341 * @global string $cfg['Export']['csv_terminated']
1343 $cfg['Export']['csv_terminated'] = 'AUTO';
1348 * @global boolean $cfg['Export']['excel_columns']
1350 $cfg['Export']['excel_columns'] = false;
1355 * @global string $cfg['Export']['excel_null']
1357 $cfg['Export']['excel_null'] = 'NULL';
1362 * @global string $cfg['Export']['excel_edition']
1364 $cfg['Export']['excel_edition'] = 'win';
1369 * @global boolean $cfg['Export']['latex_structure']
1371 $cfg['Export']['latex_structure'] = true;
1376 * @global boolean $cfg['Export']['latex_data']
1378 $cfg['Export']['latex_data'] = true;
1383 * @global boolean $cfg['Export']['latex_columns']
1385 $cfg['Export']['latex_columns'] = true;
1390 * @global boolean $cfg['Export']['latex_relation']
1392 $cfg['Export']['latex_relation'] = true;
1397 * @global boolean $cfg['Export']['latex_comments']
1399 $cfg['Export']['latex_comments'] = true;
1404 * @global boolean $cfg['Export']['latex_mime']
1406 $cfg['Export']['latex_mime'] = true;
1411 * @global string $cfg['Export']['latex_null']
1413 $cfg['Export']['latex_null'] = '\textit{NULL}';
1418 * @global boolean $cfg['Export']['latex_caption']
1420 $cfg['Export']['latex_caption'] = true;
1425 * @global string $cfg['Export']['latex_structure_caption']
1427 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1432 * @global string $cfg['Export']['latex_structure_continued_caption']
1434 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
1439 * @global string $cfg['Export']['latex_data_caption']
1441 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1446 * @global string $cfg['Export']['latex_data_continued_caption']
1448 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1453 * @global string $cfg['Export']['latex_data_label']
1455 $cfg['Export']['latex_data_label'] = 'tab:__TABLE__-data';
1460 * @global string $cfg['Export']['latex_structure_label']
1462 $cfg['Export']['latex_structure_label'] = 'tab:__TABLE__-structure';
1467 * @global boolean $cfg['Export']['sql_structure']
1469 $cfg['Export']['sql_structure'] = true;
1474 * @global boolean $cfg['Export']['sql_data']
1476 $cfg['Export']['sql_data'] = true;
1481 * @global string $cfg['Export']['sql_compatibility']
1483 $cfg['Export']['sql_compatibility'] = 'NONE';
1486 * Whether to include comments in SQL export.
1488 * @global string $cfg['Export']['sql_include_comments']
1490 $cfg['Export']['sql_include_comments'] = true;
1495 * @global boolean $cfg['Export']['sql_disable_fk']
1497 $cfg['Export']['sql_disable_fk'] = false;
1502 * @global boolean $cfg['Export']['sql_use_transaction']
1504 $cfg['Export']['sql_use_transaction'] = false;
1509 * @global boolean $cfg['Export']['sql_drop_database']
1511 $cfg['Export']['sql_drop_database'] = false;
1516 * @global boolean $cfg['Export']['sql_drop_table']
1518 $cfg['Export']['sql_drop_table'] = false;
1523 * true by default for correct behavior when dealing with exporting
1524 * of VIEWs and the stand-in table
1525 * @global boolean $cfg['Export']['sql_if_not_exists']
1527 $cfg['Export']['sql_if_not_exists'] = true;
1532 * @global boolean $cfg['Export']['sql_procedure_function']
1534 $cfg['Export']['sql_procedure_function'] = false;
1539 * @global boolean $cfg['Export']['sql_auto_increment']
1541 $cfg['Export']['sql_auto_increment'] = true;
1546 * @global boolean $cfg['Export']['sql_backquotes']
1548 $cfg['Export']['sql_backquotes'] = true;
1553 * @global boolean $cfg['Export']['sql_dates']
1555 $cfg['Export']['sql_dates'] = false;
1560 * @global boolean $cfg['Export']['sql_relation']
1562 $cfg['Export']['sql_relation'] = false;
1567 * @global boolean $cfg['Export']['sql_columns']
1569 $cfg['Export']['sql_columns'] = true;
1574 * @global boolean $cfg['Export']['sql_delayed']
1576 $cfg['Export']['sql_delayed'] = false;
1581 * @global boolean $cfg['Export']['sql_ignore']
1583 $cfg['Export']['sql_ignore'] = false;
1586 * Export time in UTC.
1588 * @global boolean $cfg['Export']['sql_utc_time']
1590 $cfg['Export']['sql_utc_time'] = true;
1595 * @global boolean $cfg['Export']['sql_hex_for_blob']
1597 $cfg['Export']['sql_hex_for_blob'] = true;
1600 * insert/update/replace
1602 * @global string $cfg['Export']['sql_type']
1604 $cfg['Export']['sql_type'] = 'insert';
1609 * @global boolean $cfg['Export']['sql_extended']
1611 $cfg['Export']['sql_extended'] = true;
1616 * @global integer $cfg['Export']['sql_max_query_size']
1618 $cfg['Export']['sql_max_query_size'] = 50000;
1623 * @global boolean $cfg['Export']['sql_comments']
1625 $cfg['Export']['sql_comments'] = false;
1630 * @global boolean $cfg['Export']['sql_mime']
1632 $cfg['Export']['sql_mime'] = false;
1635 * \n is replaced by new line
1637 * @global string $cfg['Export']['sql_header_comment']
1639 $cfg['Export']['sql_header_comment'] = '';
1644 * @global boolean $cfg['Export']['pdf_structure']
1646 $cfg['Export']['pdf_structure'] = false;
1651 * @global boolean $cfg['Export']['pdf_data']
1653 $cfg['Export']['pdf_data'] = true;
1658 * @global string $cfg['Export']['pdf_report_title']
1660 $cfg['Export']['pdf_report_title'] = '';
1663 * Export schema for each structure
1665 * @global string $cfg['Export']['xml_export_struc']
1667 $cfg['Export']['xml_export_struc'] = true;
1672 * @global string $cfg['Export']['xml_export_functions']
1674 $cfg['Export']['xml_export_functions'] = true;
1679 * @global string $cfg['Export']['xml_export_procedures']
1681 $cfg['Export']['xml_export_procedures'] = true;
1684 * Export schema for each table
1686 * @global string $cfg['Export']['xml_export_tables']
1688 $cfg['Export']['xml_export_tables'] = true;
1693 * @global string $cfg['Export']['xml_export_triggers']
1695 $cfg['Export']['xml_export_triggers'] = true;
1700 * @global string $cfg['Export']['xml_export_views']
1702 $cfg['Export']['xml_export_views'] = true;
1705 * Export contents data
1707 * @global string $cfg['Export']['xml_export_contents']
1709 $cfg['Export']['xml_export_contents'] = true;
1712 /*******************************************************************************
1715 $cfg['Import'] = array();
1720 * @global string $cfg['Import']['format']
1722 $cfg['Import']['format'] = 'sql';
1725 * Default charset for import.
1727 * @global string $cfg['Import']['charset']
1729 $cfg['Import']['charset'] = '';
1734 * @global boolean $cfg['Import']['allow_interrupt']
1736 $cfg['Import']['allow_interrupt'] = true;
1741 * @global integer $cfg['Import']['skip_queries']
1743 $cfg['Import']['skip_queries'] = '0';
1748 * @global string $cfg['Import']['sql_compatibility']
1750 $cfg['Import']['sql_compatibility'] = 'NONE';
1755 * @global string $cfg['Import']['sql_no_auto_value_on_zero']
1757 $cfg['Import']['sql_no_auto_value_on_zero'] = true;
1762 * @global boolean $cfg['Import']['csv_replace']
1764 $cfg['Import']['csv_replace'] = false;
1769 * @global string $cfg['Import']['csv_terminated']
1771 $cfg['Import']['csv_terminated'] = ';';
1776 * @global string $cfg['Import']['csv_enclosed']
1778 $cfg['Import']['csv_enclosed'] = '"';
1783 * @global string $cfg['Import']['csv_escaped']
1785 $cfg['Import']['csv_escaped'] = '\\';
1790 * @global string $cfg['Import']['csv_new_line']
1792 $cfg['Import']['csv_new_line'] = 'auto';
1797 * @global string $cfg['Import']['csv_columns']
1799 $cfg['Import']['csv_columns'] = '';
1804 * @global string $cfg['Import']['csv_col_names']
1806 $cfg['Import']['csv_col_names'] = false;
1811 * @global boolean $cfg['Import']['ldi_replace']
1813 $cfg['Import']['ldi_replace'] = false;
1818 * @global string $cfg['Import']['ldi_terminated']
1820 $cfg['Import']['ldi_terminated'] = ';';
1825 * @global string $cfg['Import']['ldi_enclosed']
1827 $cfg['Import']['ldi_enclosed'] = '"';
1832 * @global string $cfg['Import']['ldi_escaped']
1834 $cfg['Import']['ldi_escaped'] = '\\';
1839 * @global string $cfg['Import']['ldi_new_line']
1841 $cfg['Import']['ldi_new_line'] = 'auto';
1846 * @global string $cfg['Import']['ldi_columns']
1848 $cfg['Import']['ldi_columns'] = '';
1851 * 'auto' for auto-detection, true or false for forcing
1853 * @global string $cfg['Import']['ldi_local_option']
1855 $cfg['Import']['ldi_local_option'] = 'auto';
1860 * @global string $cfg['Import']['ods_col_names']
1862 $cfg['Import']['ods_col_names'] = false;
1867 * @global string $cfg['Import']['ods_empty_rows']
1869 $cfg['Import']['ods_empty_rows'] = true;
1874 * @global string $cfg['Import']['ods_recognize_percentages']
1876 $cfg['Import']['ods_recognize_percentages'] = true;
1881 * @global string $cfg['Import']['ods_recognize_currency']
1883 $cfg['Import']['ods_recognize_currency'] = true;
1888 * @global string $cfg['Import']['xml_col_names']
1890 $cfg['Import']['xls_col_names'] = false;
1895 * @global string $cfg['Import']['xml_empty_rows']
1897 $cfg['Import']['xls_empty_rows'] = true;
1900 * Link to the official MySQL documentation.
1901 * Be sure to include no trailing slash on the path.
1902 * See http://dev.mysql.com/doc/ for more information
1903 * about MySQL manuals and their types.
1905 * @global string $cfg['MySQLManualBase']
1907 $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
1910 * Type of MySQL documentation:
1911 * viewable - "viewable online", current one used on MySQL website
1912 * searchable - "Searchable, with user comments"
1913 * chapters - "HTML, one page per chapter"
1914 * chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
1915 * big - "HTML, all on one page"
1916 * old - old style used in phpMyAdmin 2.3.0 and sooner
1917 * none - do not show documentation links
1919 * @global string $cfg['MySQLManualType']
1921 $cfg['MySQLManualType'] = 'viewable';
1924 /*******************************************************************************
1931 * @global array $cfg['PDFPageSizes']
1933 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
1938 * @global string $cfg['PDFDefaultPageSize']
1940 $cfg['PDFDefaultPageSize'] = 'A4';
1943 /*******************************************************************************
1944 * Language and character set conversion settings
1948 * Default language to use, if not browser-defined or user-defined
1950 * @global string $cfg['DefaultLang']
1952 $cfg['DefaultLang'] = 'en';
1955 * Default connection collation
1957 * @global string $cfg['DefaultConnectionCollation']
1959 $cfg['DefaultConnectionCollation'] = 'utf8_general_ci';
1962 * Force: always use this language - must be defined in
1963 * libraries/select_lang.lib.php
1964 * $cfg['Lang'] = 'en';
1966 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
1969 * @global string $cfg['FilterLanguages']
1971 $cfg['FilterLanguages'] = '';
1974 * Default character set to use for recoding of MySQL queries, does not take
1975 * any effect when character sets recoding is switched off by
1976 * $cfg['AllowAnywhereRecoding'] or in language file
1977 * (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
1979 * @global string $cfg['DefaultCharset']
1981 $cfg['DefaultCharset'] = 'utf-8';
1984 * Allow character set recoding of MySQL queries, must be also enabled in language
1985 * file to make harder using other language files than Unicode.
1986 * Default value is false to avoid problems on servers without the iconv
1989 * @global boolean $cfg['AllowAnywhereRecoding']
1991 $cfg['AllowAnywhereRecoding'] = false;
1994 * You can select here which functions will be used for character set conversion.
1995 * Possible values are:
1996 * auto - automatically use available one (first is tested iconv, then
1998 * iconv - use iconv or libiconv functions
1999 * recode - use recode_string function
2001 * @global string $cfg['RecodingEngine']
2003 $cfg['RecodingEngine'] = 'auto';
2006 * Specify some parameters for iconv used in character set conversion. See iconv
2007 * documentation for details:
2008 * http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
2010 * @global string $cfg['IconvExtraParams']
2012 $cfg['IconvExtraParams'] = '//TRANSLIT';
2015 * Available character sets for MySQL conversion. currently contains all which could
2016 * be found in lang/* files and few more.
2017 * Character sets will be shown in same order as here listed, so if you frequently
2018 * use some of these move them to the top.
2020 * @global array $cfg['AvailableCharsets']
2022 $cfg['AvailableCharsets'] = array(
2057 /*******************************************************************************
2058 * Customization & design
2060 * The graphical settings are now located in themes/theme-name/layout.inc.php
2064 * enable the left panel pointer
2065 * (used when LeftFrameLight is false)
2066 * see also LeftPointerColor
2069 * @global boolean $cfg['LeftPointerEnable']
2071 $cfg['LeftPointerEnable'] = true;
2074 * enable the browse pointer
2075 * see also BrowsePointerColor
2078 * @global boolean $cfg['BrowsePointerEnable']
2080 $cfg['BrowsePointerEnable'] = true;
2083 * enable the browse marker
2084 * see also BrowseMarkerColor
2087 * @global boolean $cfg['BrowseMarkerEnable']
2089 $cfg['BrowseMarkerEnable'] = true;
2092 * textarea size (columns) in edit mode
2093 * (this value will be emphasized (*2) for SQL
2094 * query textareas and (*1.25) for query window)
2096 * @global integer $cfg['TextareaCols']
2098 $cfg['TextareaCols'] = 40;
2101 * textarea size (rows) in edit mode
2103 * @global integer $cfg['TextareaRows']
2105 $cfg['TextareaRows'] = 15;
2108 * double size of textarea size for LONGTEXT fields
2110 * @global boolean $cfg['LongtextDoubleTextarea']
2112 $cfg['LongtextDoubleTextarea'] = true;
2115 * auto-select when clicking in the textarea of the query-box
2117 * @global boolean $cfg['TextareaAutoSelect']
2119 $cfg['TextareaAutoSelect'] = false;
2122 * textarea size (columns) for CHAR/VARCHAR
2124 * @global integer $cfg['CharTextareaCols']
2126 $cfg['CharTextareaCols'] = 40;
2129 * textarea size (rows) for CHAR/VARCHAR
2131 * @global integer $cfg['CharTextareaRows']
2133 $cfg['CharTextareaRows'] = 2;
2136 * Enable Ctrl+Arrows moving between fields when editing?
2138 * @global boolean $cfg['CtrlArrowsMoving']
2140 $cfg['CtrlArrowsMoving'] = true;
2143 * Max field data length in browse mode for all non-numeric fields
2145 * @global integer $cfg['LimitChars']
2147 $cfg['LimitChars'] = 50;
2150 * show edit/delete links on left side of browse
2151 * (or at the top with vertical browse)
2153 * @global boolean $cfg['ModifyDeleteAtLeft']
2155 $cfg['ModifyDeleteAtLeft'] = true;
2158 * show edit/delete links on right side of browse
2159 * (or at the bottom with vertical browse)
2161 * @global boolean $cfg['ModifyDeleteAtRight']
2163 $cfg['ModifyDeleteAtRight'] = false;
2166 * default display direction (horizontal|vertical|horizontalflipped)
2168 * @global string $cfg['DefaultDisplay']
2170 $cfg['DefaultDisplay'] = 'horizontal';
2173 * default display direction for altering/creating columns (tbl_properties)
2174 * (horizontal|vertical|<number>)
2175 * number indicates maximal number for which vertical model is used
2177 * @global integer $cfg['DefaultPropDisplay']
2179 $cfg['DefaultPropDisplay'] = 3;
2182 * table-header rotation via faking or CSS? (css|fake|auto)
2183 * NOTE: CSS only works in IE browsers!
2185 * @global string $cfg['HeaderFlipType']
2187 $cfg['HeaderFlipType'] = 'auto';
2190 * shows stored relation-comments in 'browse' mode.
2192 * @global boolean $cfg['ShowBrowseComments']
2194 $cfg['ShowBrowseComments'] = true;
2197 * shows stored relation-comments in 'table property' mode.
2199 * @global boolean $cfg['ShowPropertyComments']
2201 $cfg['ShowPropertyComments']= true;
2204 * repeat header names every X cells? (0 = deactivate)
2206 * @global integer $cfg['RepeatCells']
2208 $cfg['RepeatCells'] = 100;
2211 * Set to true if Edit link should open the query to edit in the query window
2212 * (assuming JavaScript is enabled), and to false if we should edit in the right panel
2214 * @global boolean $cfg['EditInWindow']
2216 $cfg['EditInWindow'] = true;
2219 * Width of Query window
2221 * @global integer $cfg['QueryWindowWidth']
2223 $cfg['QueryWindowWidth'] = 550;
2226 * Height of Query window
2228 * @global integer $cfg['QueryWindowHeight']
2230 $cfg['QueryWindowHeight'] = 310;
2233 * Set to true if you want DB-based query history.If false, this utilizes
2234 * JS-routines to display query history (lost by window close)
2236 * @global boolean $cfg['QueryHistoryDB']
2238 $cfg['QueryHistoryDB'] = false;
2241 * which tab to display in the querywindow on startup
2242 * (sql|files|history|full)
2244 * @global string $cfg['QueryWindowDefTab']
2246 $cfg['QueryWindowDefTab'] = 'sql';
2249 * When using DB-based query history, how many entries should be kept?
2251 * @global integer $cfg['QueryHistoryMax']
2253 $cfg['QueryHistoryMax'] = 25;
2256 * Use MIME-Types (stored in column comments table) for
2258 * @global boolean $cfg['BrowseMIME']
2260 $cfg['BrowseMIME'] = true;
2263 * When approximate count < this, PMA will get exact count for table rows.
2265 * @global integer $cfg['MaxExactCount']
2267 $cfg['MaxExactCount'] = 20000;
2270 * Zero means that no row count is done for views; see the doc
2272 * @global integer $cfg['MaxExactCountViews']
2274 $cfg['MaxExactCountViews'] = 0;
2277 * Utilize DHTML/JS capabilities to allow WYSIWYG editing of
2278 * the PDF page editor. Requires an IE6/Gecko based browser.
2280 * @global boolean $cfg['WYSIWYG-PDF']
2282 $cfg['WYSIWYG-PDF'] = true;
2285 * Sort table and database in natural order
2287 * @global boolean $cfg['NaturalOrder']
2289 $cfg['NaturalOrder'] = true;
2292 * Initial state for sliders
2295 * @global string $cfg['InitialSlidersState']
2297 $cfg['InitialSlidersState'] = 'closed';
2301 //-----------------------------------------------------------------------------
2302 // custom-setup by mkkeck: 2004-05-04
2303 // some specials for new icons and scrolling
2305 * @todo We need to rearrange these variables.
2309 /*******************************************************************************
2310 * Window title settings
2314 * title of browser window when a table is selected
2316 * @global string $cfg['TitleTable']
2318 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2321 * title of browser window when a database is selected
2323 * @global string $cfg['TitleDatabase']
2325 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2328 * title of browser window when a server is selected
2330 * @global string $cfg['TitleServer']
2332 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2335 * title of browser window when nothing is selected
2336 * @global string $cfg['TitleDefault']
2338 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2341 * show some icons for warning, error and information messages (true|false)?
2343 * @global boolean $cfg['ErrorIconic']
2345 $cfg['ErrorIconic'] = true;
2348 * show icons in list on main page and on menu tabs (true|false)?
2350 * @global boolean $cfg['MainPageIconic']
2352 $cfg['MainPageIconic'] = true;
2355 * show help button instead of strDocu (true|false)?
2357 * @global boolean $cfg['ReplaceHelpImg']
2359 $cfg['ReplaceHelpImg'] = true;
2362 /*******************************************************************************
2367 * using themes manager please set up here the path to 'themes' else leave empty
2369 * @global string $cfg['ThemePath']
2371 $cfg['ThemePath'] = './themes';
2374 * if you want to use selectable themes and if ThemesPath not empty
2375 * set it to true, else set it to false (default is false);
2377 * @global boolean $cfg['ThemeManager']
2379 $cfg['ThemeManager'] = true;
2382 * set up default theme, if ThemePath not empty you can set up here an valid
2383 * path to themes or 'original' for the original pma-theme
2385 * @global string $cfg['ThemeDefault']
2387 $cfg['ThemeDefault'] = 'original';
2390 * allow different theme for each configured server
2392 * @global boolean $cfg['ThemePerServer']
2394 $cfg['ThemePerServer'] = false;
2397 /*******************************************************************************
2403 * %d will be replaced by the database name.
2404 * %t will be replaced by the table name.
2405 * %f will be replaced by a list of field names.
2406 * (%t and %f only applies to DefaultQueryTable)
2408 * @global string $cfg['DefaultQueryTable']
2410 $cfg['DefaultQueryTable'] = 'SELECT * FROM %t WHERE 1';
2414 * %d will be replaced by the database name.
2415 * %t will be replaced by the table name.
2416 * %f will be replaced by a list of field names.
2417 * (%t and %f only applies to DefaultQueryTable)
2419 * @global string $cfg['DefaultQueryDatabase']
2421 $cfg['DefaultQueryDatabase'] = '';
2424 /*******************************************************************************
2425 * SQL Query box settings
2426 * These are the links display in all of the SQL Query boxes
2428 * @global array $cfg['SQLQuery']
2430 $cfg['SQLQuery'] = array();
2433 * Edit link to change a query
2435 * @global boolean $cfg['SQLQuery']['Edit']
2437 $cfg['SQLQuery']['Edit'] = true;
2440 * EXPLAIN on SELECT queries
2442 * @global boolean $cfg['SQLQuery']['Explain']
2444 $cfg['SQLQuery']['Explain'] = true;
2447 * Wrap a query in PHP
2449 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2451 $cfg['SQLQuery']['ShowAsPHP'] = true;
2454 * Validate a query (see $cfg['SQLValidator'] as well)
2456 * @global boolean $cfg['SQLQuery']['Validate']
2458 $cfg['SQLQuery']['Validate'] = false;
2461 * Refresh the results page
2463 * @global boolean $cfg['SQLQuery']['Refresh']
2465 $cfg['SQLQuery']['Refresh'] = true;
2468 /*******************************************************************************
2469 * Web server upload/save/import directories
2473 * Directory for uploaded files that can be executed by phpMyAdmin.
2474 * For example './upload'. Leave empty for no upload directory support.
2475 * Use %u for username inclusion.
2477 * @global string $cfg['UploadDir']
2479 $cfg['UploadDir'] = '';
2482 * Directory where phpMyAdmin can save exported data on server.
2483 * For example './save'. Leave empty for no save directory support.
2484 * Use %u for username inclusion.
2486 * @global string $cfg['SaveDir']
2488 $cfg['SaveDir'] = '';
2491 * Directory where phpMyAdmin can save temporary files.
2492 * This is needed for MS Excel export, see documentation how to enable that.
2494 * @global string $cfg['TempDir']
2496 $cfg['TempDir'] = '';
2504 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2505 * which is the only safe way to determine GD version.
2507 * @global string $cfg['GD2Available']
2509 $cfg['GD2Available'] = 'auto';
2512 * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
2514 * @global array $cfg['TrustedProxies']
2516 $cfg['TrustedProxies'] = array();
2519 * We normally check the permissions on the configuration file to ensure
2520 * it's not world writable. However, phpMyAdmin could be installed on
2521 * a NTFS filesystem mounted on a non-Windows server, in which case the
2522 * permissions seems wrong but in fact cannot be detected. In this case
2523 * a sysadmin would set the following to false.
2525 $cfg['CheckConfigurationPermissions'] = true;
2528 * Limit for length of URL in links. When length would be above this limit, it
2529 * is replaced by form with button.
2530 * This is required as some web servers (IIS) have problems with long URLs.
2532 $cfg['LinkLengthLimit'] = 1000;
2534 /*******************************************************************************
2535 * SQL Parser Settings
2537 * @global array $cfg['SQP']
2539 $cfg['SQP'] = array();
2542 * Pretty-printing style to use on queries (html, text, none)
2544 * @global string $cfg['SQP']['fmtType']
2546 $cfg['SQP']['fmtType'] = 'html';
2549 * Amount to indent each level (floats are valid)
2551 * @global integer $cfg['SQP']['fmtInd']
2553 $cfg['SQP']['fmtInd'] = '1';
2556 * Units for indenting each level (CSS Types - {em, px, pt})
2558 * @global string $cfg['SQP']['fmtIndUnit']
2560 $cfg['SQP']['fmtIndUnit'] = 'em';
2563 /*******************************************************************************
2564 * If you wish to use the SQL Validator service, you should be aware of the
2566 * All SQL statements are stored anonymously for statistical purposes.
2567 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
2568 * All rights reserved.
2570 * @global array $cfg['SQLValidator']
2572 $cfg['SQLValidator'] = array();
2575 * Make the SQL Validator available
2577 * @global boolean $cfg['SQLValidator']['use']
2579 $cfg['SQLValidator']['use'] = false;
2582 * If you have a custom username, specify it here (defaults to anonymous)
2584 * @global string $cfg['SQLValidator']['username']
2586 $cfg['SQLValidator']['username'] = '';
2589 * Password for username
2591 * @global string $cfg['SQLValidator']['password']
2593 $cfg['SQLValidator']['password'] = '';
2596 /*******************************************************************************
2599 * @global array $cfg['DBG']
2601 $cfg['DBG'] = array();
2604 * Output executed queries and their execution times
2606 * @global boolean $cfg['DBG']['sql']
2608 $cfg['DBG']['sql'] = false;
2611 * Make the DBG stuff available
2612 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
2614 * @global boolean $cfg['DBG']['php']
2616 $cfg['DBG']['php'] = false;
2619 * Produce profiling results of PHP
2621 * @global boolean $cfg['DBG']['profile']['enable']
2623 $cfg['DBG']['profile']['enable'] = false;
2626 * Threshold of long running code to display
2627 * Anything below the threshold is not displayed
2629 * @global float $cfg['DBG']['profile']['threshold']
2631 $cfg['DBG']['profile']['threshold'] = 0.5;
2634 /*******************************************************************************
2640 * VARCHAR, TINYINT, TEXT and DATE are listed first, based on estimated popularity
2642 * @global array $cfg['ColumnTypes']
2644 $cfg['ColumnTypes'] = array(
2671 'DATE and TIME' => array(
2709 'GEOMETRYCOLLECTION',
2716 * @global array $cfg['AttributeTypes']
2718 $cfg['AttributeTypes'] = array(
2722 'UNSIGNED ZEROFILL',
2723 'on update CURRENT_TIMESTAMP',
2727 if ($cfg['ShowFunctionFields']) {
2729 * Available functions
2731 * @global array $cfg['Functions']
2733 $cfg['Functions'] = array(
2806 * Which column types will be mapped to which Group?
2808 * @global array $cfg['RestrictColumnTypes']
2810 $cfg['RestrictColumnTypes'] = array(
2811 'TINYINT' => 'FUNC_NUMBER',
2812 'SMALLINT' => 'FUNC_NUMBER',
2813 'MEDIUMINT' => 'FUNC_NUMBER',
2814 'INT' => 'FUNC_NUMBER',
2815 'BIGINT' => 'FUNC_NUMBER',
2816 'DECIMAL' => 'FUNC_NUMBER',
2817 'FLOAT' => 'FUNC_NUMBER',
2818 'DOUBLE' => 'FUNC_NUMBER',
2819 'REAL' => 'FUNC_NUMBER',
2820 'BIT' => 'FUNC_NUMBER',
2821 'BOOLEAN' => 'FUNC_NUMBER',
2822 'SERIAL' => 'FUNC_NUMBER',
2824 'DATE' => 'FUNC_DATE',
2825 'DATETIME' => 'FUNC_DATE',
2826 'TIMESTAMP' => 'FUNC_DATE',
2827 'TIME' => 'FUNC_DATE',
2828 'YEAR' => 'FUNC_DATE',
2830 'CHAR' => 'FUNC_CHAR',
2831 'VARCHAR' => 'FUNC_CHAR',
2832 'TINYTEXT' => 'FUNC_CHAR',
2833 'TEXT' => 'FUNC_CHAR',
2834 'MEDIUMTEXT' => 'FUNC_CHAR',
2835 'LONGTEXT' => 'FUNC_CHAR',
2836 'BINARY' => 'FUNC_CHAR',
2837 'VARBINARY' => 'FUNC_CHAR',
2838 'TINYBLOB' => 'FUNC_CHAR',
2839 'MEDIUMBLOB' => 'FUNC_CHAR',
2840 'BLOB' => 'FUNC_CHAR',
2841 'LONGBLOB' => 'FUNC_CHAR',
2845 'GEOMETRY' => 'FUNC_SPATIAL',
2846 'POINT' => 'FUNC_SPATIAL',
2847 'LINESTRING' => 'FUNC_SPATIAL',
2848 'POLYGON' => 'FUNC_SPATIAL',
2849 'MULTIPOINT' => 'FUNC_SPATIAL',
2850 'MULTILINESTRING' => 'FUNC_SPATIAL',
2851 'MULTIPOLYGON' => 'FUNC_SPATIAL',
2852 'GEOMETRYCOLLECTION' => 'FUNC_SPATIAL',
2857 * Map above defined groups to any function
2859 * @global array $cfg['RestrictFunctions']
2861 $cfg['RestrictFunctions'] = array(
2862 'FUNC_CHAR' => array(
2888 'FUNC_DATE' => array(
2903 'FUNC_NUMBER' => array(
2940 'FUNC_SPATIAL' => array(
2963 * Default functions for above defined groups
2965 * @global array $cfg['DefaultFunctions']
2967 $cfg['DefaultFunctions'] = array(
2970 'FUNC_NUMBER' => '',
2971 'first_timestamp' => 'NOW',
2972 'pk_char36' => 'UUID',
2981 * @global array $cfg['NumOperators']
2983 $cfg['NumOperators'] = array(
3001 * @global array $cfg['TextOperators']
3003 $cfg['TextOperators'] = array(
3023 * @global array $cfg['EnumOperators']
3025 $cfg['EnumOperators'] = array(
3033 * @global array $cfg['SetOperators']
3035 $cfg['SetOperators'] = array(
3043 * @global array $cfg['NullOperators']
3045 $cfg['NullOperators'] = array(
3053 * @global array $cfg['UnaryOperators']
3055 $cfg['UnaryOperators'] = array(