typos
[phpmyadmin/dkf.git] / libraries / config.default.php
blobb1fef17abb568c49fc1c26fd0d954a2fb707105b
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * <code>
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 !!
10 * </code>
12 * DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
14 * phpMyAdmin default configuration, you can copy values from here to your
15 * config.inc.php
17 * All directives are explained in Documentation.html
19 * @version $Id$
20 * @package phpMyAdmin
23 /**
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'] = '';
42 /**
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;
50 /**
51 * Disable the default warning that is displayed if Suhosin is detected
53 * @global boolean $cfg['SuhosinDisableWarning']
55 $cfg['SuhosinDisableWarning'] = false;
57 /**
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;
65 /**
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;
73 /**
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
77 * characters.
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();
97 $i = 1;
99 /**
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 /* rajk - 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 * 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'] = '';
188 * MySQL user
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'] = '';
263 * Bookmark table
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 * set to false if you know that your pma_* tables are up to date.
345 * This prevents compatibility checks and thereby increases performance.
347 * @global boolean $cfg['Servers'][$i]['verbose_check']
349 $cfg['Servers'][$i]['verbose_check'] = true;
352 * whether to allow root login
354 * @global boolean $cfg['Servers'][$i]['AllowRoot']
356 $cfg['Servers'][$i]['AllowRoot'] = true;
359 * whether to allow login of any user without a password
361 * @global boolean $cfg['Servers'][$i]['AllowNoPassword']
363 $cfg['Servers'][$i]['AllowNoPassword'] = false;
366 * Host authentication order, leave blank to not use
368 * @global string $cfg['Servers'][$i]['AllowDeny']['order']
370 $cfg['Servers'][$i]['AllowDeny']['order'] = '';
373 * Host authentication rules, leave blank for defaults
375 * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
377 $cfg['Servers'][$i]['AllowDeny']['rules'] = array();
380 * Disable use of INFORMATION_SCHEMA
382 * @see http://sf.net/support/tracker.php?aid=1849494
383 * @see http://bugs.mysql.com/19588
384 * @global boolean $cfg['Servers'][$i]['DisableIS']
386 $cfg['Servers'][$i]['DisableIS'] = true;
389 * SQL command to fetch available databases
391 * by default most user will be fine with SHOW DATABASES,
392 * for servers with a huge amount of databases it is possible to
393 * define a command which executes faster but with less information
395 * especially when accessing database servers from ISPs changing this command
396 * can result in a great speed improvement
398 * false will disable fetching databases from the server, only databases in
399 * $cfg['Servers'][$i]['only_db'] will be displayed
401 * #user# will be replaced by current user
403 * examples:
404 * 'SHOW DATABASES'
405 * "SHOW DATABASES LIKE '#user#\_%'"
406 * 'SELECT DISTINCT TABLE_SCHEMA FROM information_schema.SCHEMA_PRIVILEGES'
407 * 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA'
408 * false
410 * @global array $cfg['Servers'][$i]['ShowDatabasesCommand']
412 $cfg['Servers'][$i]['ShowDatabasesCommand'] = 'SHOW DATABASES';
415 * Whether to count tables when showing database list
417 * @global array $cfg['Servers'][$i]['CountTables']
419 $cfg['Servers'][$i]['CountTables'] = true;
422 * Whether the tracking mechanism creates versions for tables and views automatically.
424 * @global bool $cfg['Servers'][$i]['tracking_version_auto_create']
427 $cfg['Servers'][$i]['tracking_version_auto_create'] = false;
430 * Defines the list of statements the auto-creation uses for new versions.
432 * @global string $cfg['Servers'][$i]['tracking_default_statements']
435 $cfg['Servers'][$i]['tracking_default_statements'] = 'CREATE TABLE,ALTER TABLE,DROP TABLE,RENAME TABLE,' .
436 'CREATE INDEX,DROP INDEX,' .
437 'INSERT,UPDATE,DELETE,TRUNCATE,REPLACE,' .
438 'CREATE VIEW,ALTER VIEW,DROP VIEW,' .
439 'CREATE DATABASE,ALTER DATABASE,DROP DATABASE';
442 * Whether a DROP VIEW IF EXISTS statement will be added as first line to the log when creating a view.
444 * @global bool $cfg['Servers'][$i]['tracking_add_drop_view']
447 $cfg['Servers'][$i]['tracking_add_drop_view'] = true;
450 * Whether a DROP TABLE IF EXISTS statement will be added as first line to the log when creating a table.
452 * @global bool $cfg['Servers'][$i]['tracking_add_drop_table']
455 $cfg['Servers'][$i]['tracking_add_drop_table'] = true;
458 * Whether a DROP DATABASE IF EXISTS statement will be added as first line to the log when creating a database.
460 * @global bool $cfg['Servers'][$i]['tracking_add_drop_database']
463 $cfg['Servers'][$i]['tracking_add_drop_database'] = true;
466 * Whether a DROP DATABASE IF EXISTS statement will be added as first line to the log when creating a database.
468 * @global bool $cfg['Servers'][$i]['tracking_version_drop_database']
471 $cfg['Servers'][$i]['tracking_version_drop_database'] = true;
474 * Default server (0 = no default server)
476 * If you have more than one server configured, you can set $cfg['ServerDefault']
477 * to any one of them to auto-connect to that server when phpMyAdmin is started,
478 * or set it to 0 to be given a list of servers without logging in
479 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
480 * set to that server.
482 * @global integer $cfg['ServerDefault']
484 $cfg['ServerDefault'] = 1;
487 * Other core phpMyAdmin settings
490 * maximum number of db's displayed in left frame and database list
492 * @global integer $cfg['MaxDbList']
494 $cfg['MaxDbList'] = 100;
497 * maximum number of tables displayed in table list
499 * @global integer $cfg['MaxTableList']
501 $cfg['MaxTableList'] = 250;
504 * maximum number of characters when a SQL query is displayed
506 * @global integer $cfg['MaxCharactersInDisplayedSQL']
508 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
511 * use GZIP output buffering if possible (true|false|'auto')
513 * @global string $cfg['OBGzip']
515 $cfg['OBGzip'] = 'auto';
518 * use persistent connections to MySQL database
520 * @global boolean $cfg['PersistentConnections']
522 $cfg['PersistentConnections'] = false;
525 * whether to force using HTTPS
527 * @global boolean $cfg['ForceSSL']
529 $cfg['ForceSSL'] = false;
532 * maximum execution time in seconds (0 for no limit)
534 * @global integer $cfg['ExecTimeLimit']
536 $cfg['ExecTimeLimit'] = 300;
539 * maximum allocated bytes (0 for no limit)
541 * @global integer $cfg['MemoryLimit']
543 $cfg['MemoryLimit'] = 0;
546 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
548 * @global boolean $cfg['SkipLockedTables']
550 $cfg['SkipLockedTables'] = false;
553 * show SQL queries as run
555 * @global boolean $cfg['ShowSQL']
557 $cfg['ShowSQL'] = true;
560 * show a 'Drop database' link to normal users
562 * @global boolean $cfg['AllowUserDropDatabase']
564 $cfg['AllowUserDropDatabase'] = false;
567 * confirm 'DROP TABLE' & 'DROP DATABASE'
569 * @global boolean $cfg['Confirm']
571 $cfg['Confirm'] = true;
574 * recall previous login in cookie authentication mode or not
576 * @global boolean $cfg['LoginCookieRecall']
578 $cfg['LoginCookieRecall'] = true;
581 * validity of cookie login (in seconds)
583 * @global integer $cfg['LoginCookieValidity']
585 $cfg['LoginCookieValidity'] = 1440;
588 * how long login cookie should be stored (in seconds)
590 * @global integer $cfg['LoginCookieStore']
592 $cfg['LoginCookieStore'] = 0;
595 * whether to delete all login cookies on logout
597 * @global boolean $cfg['LoginCookieDeleteAll']
599 $cfg['LoginCookieDeleteAll'] = true;
602 * whether to enable the "database search" feature or not
604 * @global boolean $cfg['UseDbSearch']
606 $cfg['UseDbSearch'] = true;
609 * if set to true, PMA continues computing multiple-statement queries
610 * even if one of the queries failed
612 * @global boolean $cfg['IgnoreMultiSubmitErrors']
614 $cfg['IgnoreMultiSubmitErrors'] = false;
617 * if set to true, PMA will show the affected rows of EACH statement on
618 * multiple-statement queries. See the libraries/import.php file for
619 * hard coded defaults on how many queries a statement may contain!
621 * @global boolean $cfg['VerboseMultiSubmit']
623 $cfg['VerboseMultiSubmit'] = true;
626 * allow login to any user entered server in cookie based authentication
628 * @global boolean $cfg['AllowArbitraryServer']
630 $cfg['AllowArbitraryServer'] = false;
633 /*******************************************************************************
634 * Error handler configuration
636 * this configures phpMyAdmin's own error handler, it is used to avoid information
637 * disclosure, gather errors for logging, reporting and displaying
639 * @global array $cfg['Error_Handler']
641 $cfg['Error_Handler'] = array();
644 * whether to display errors or not
646 * this does not affect errors of type E_USER_*
648 * @global boolean $cfg['Error_Handler']['display']
650 $cfg['Error_Handler']['display'] = false;
653 * (NOT IMPLEMENTED YET)
654 * where to log errors, false or empty to disable
656 * <code>
657 * // EXAMPLE log to std PHP error log
658 * $cfg['Error_Handler']['log'] = array(0);
659 * // EXAMPLE mail errors
660 * $cfg['Error_Handler']['log'] = array(1, 'admin@example.org');
661 * // EXAMPLE append to specific file
662 * $cfg['Error_Handler']['log'] = array(3, '/var/log/phpmyadmin_error.log');
663 * </code>
665 * @see http://php.net/error_log
666 * @global string $cfg['Error_Handler']['log']
668 //$cfg['Error_Handler']['log'] = false;
671 * gather all errors in session to be displayed on a error reporting page
672 * for viewing and/or sending to phpMyAdmin developer team
674 * @global boolean $cfg['Error_Handler']['gather']
676 $cfg['Error_Handler']['gather'] = false;
679 /*******************************************************************************
680 * Left frame setup
684 * use a select-based menu and display only the current tables in the left frame.
686 * @global boolean $cfg['LeftFrameLight']
688 $cfg['LeftFrameLight'] = true;
691 * turn the select-based light menu into a tree
693 * @global boolean $cfg['LeftFrameDBTree']
695 $cfg['LeftFrameDBTree'] = true;
698 * the separator to sub-tree the select-based light menu tree
700 * @global string $cfg['LeftFrameDBSeparator']
702 $cfg['LeftFrameDBSeparator'] = '_';
705 * Which string will be used to generate table prefixes
706 * to split/nest tables into multiple categories
708 * @global string $cfg['LeftFrameTableSeparator']
710 $cfg['LeftFrameTableSeparator']= '__';
713 * How many sublevels should be displayed when splitting up tables by the above Separator
715 * @global integer $cfg['LeftFrameTableLevel']
717 $cfg['LeftFrameTableLevel'] = 1;
720 * display table comment as tooltip in left frame
722 * @global boolean $cfg['ShowTooltip']
724 $cfg['ShowTooltip'] = true;
727 * if ShowToolTip is enabled, this defines that table/db comments
729 * @global boolean $cfg['ShowTooltipAliasDB']
731 $cfg['ShowTooltipAliasDB'] = false;
734 * are shown (in the left menu and db_structure) instead of table/db names.
735 * Setting ShowTooltipAliasTB to 'nested' will only use the Aliases for nested
736 * descriptors, not the table itself.
738 * @global boolean $cfg['ShowTooltipAliasTB']
740 $cfg['ShowTooltipAliasTB'] = false;
743 * display logo at top of left frame
745 * @global boolean $cfg['LeftDisplayLogo']
747 $cfg['LeftDisplayLogo'] = true;
750 * where should logo link point to (can also contain an external URL)
752 * @global string $cfg['LeftLogoLink']
754 $cfg['LeftLogoLink'] = 'main.php';
757 * whether to open the linked page in the main window ('main') or
758 * in a new window ('new')
760 * @global string $cfg['LeftLogoLinkWindow']
762 $cfg['LeftLogoLinkWindow'] = 'main';
765 * display server choice at top of left frame
767 * @global boolean $cfg['LeftDisplayServers']
769 $cfg['LeftDisplayServers'] = false;
772 * server choice as links
774 * @global boolean $cfg['DisplayServersList']
776 $cfg['DisplayServersList'] = false;
779 * database choice in light as links
781 * @global boolean $cfg['DisplayDatabasesList']
783 $cfg['DisplayDatabasesList'] = 'auto';
786 * target of the navigation panel quick access icon
788 * Possible values:
789 * 'tbl_structure.php' = fields list
790 * 'tbl_sql.php' = SQL form
791 * 'tbl_select.php' = search page
792 * 'tbl_change.php' = insert row page
793 * 'sql.php' = browse page
795 * @global string $cfg['LeftDefaultTabTable']
797 $cfg['LeftDefaultTabTable'] = 'tbl_structure.php';
800 /*******************************************************************************
801 * In the main frame, at startup...
805 * allow to display statistics and space usage in the pages about database
806 * details and table properties
808 * @global boolean $cfg['ShowStats']
810 $cfg['ShowStats'] = true;
813 * show PHP info link
815 * @global boolean $cfg['ShowPhpInfo']
817 $cfg['ShowPhpInfo'] = false;
820 * show MySQL server and web server information
822 * @global boolean $cfg['ShowServerInfo']
824 $cfg['ShowServerInfo'] = true;
827 * show change password link
829 * @global boolean $cfg['ShowChgPassword']
831 $cfg['ShowChgPassword'] = true;
834 * show create database form
836 * @global boolean $cfg['ShowCreateDb']
838 $cfg['ShowCreateDb'] = true;
841 * suggest a new DB name if possible (false = keep empty)
843 * @global boolean $cfg['SuggestDBName']
845 $cfg['SuggestDBName'] = true;
848 /*******************************************************************************
849 * In browse mode...
853 * Use icons instead of text for the navigation bar buttons
854 * and on right panel top menu (server db table) (true|false|'both')
856 * @global string $cfg['NavigationBarIconic']
858 $cfg['NavigationBarIconic'] = true;
861 * allows to display all the rows
863 * @global boolean $cfg['ShowAll']
865 $cfg['ShowAll'] = false;
868 * maximum number of rows to display
870 * @global integer $cfg['MaxRows']
872 $cfg['MaxRows'] = 30;
875 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
876 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
877 * ascending order else-)
879 * @global string $cfg['Order']
881 $cfg['Order'] = 'ASC';
884 * default for 'Show binary contents as HEX'
886 * @global string $cfg['DisplayBinaryAsHex']
888 $cfg['DisplayBinaryAsHex'] = true;
891 /*******************************************************************************
892 * In edit mode...
896 * disallow editing of binary fields
897 * valid values are:
898 * false allow editing
899 * 'blob' allow editing except for BLOB fields
900 * 'all' disallow editing
902 * @global string $cfg['ProtectBinary']
904 $cfg['ProtectBinary'] = 'blob';
907 * Display the function fields in edit/insert mode
909 * @global boolean $cfg['ShowFunctionFields']
911 $cfg['ShowFunctionFields'] = true;
914 * Which editor should be used for CHAR/VARCHAR fields:
915 * input - allows limiting of input length
916 * textarea - allows newlines in fields
918 * @global string $cfg['CharEditing']
920 $cfg['CharEditing'] = 'input';
923 * How many rows can be inserted at one time
925 * @global integer $cfg['InsertRows']
927 $cfg['InsertRows'] = 2;
930 * Sort order for items in a foreign-key drop-down list.
931 * 'content' is the referenced data, 'id' is the key value.
933 * @global array $cfg['ForeignKeyDropdownOrder']
935 $cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
938 * A drop-down list will be used if fewer items are present
940 * @global integer $cfg['ForeignKeyMaxLimit']
942 $cfg['ForeignKeyMaxLimit'] = 100;
945 /*******************************************************************************
946 * For the export features...
950 * Allow for the use of zip compression (requires zip support to be enabled)
952 * @global boolean $cfg['ZipDump']
954 $cfg['ZipDump'] = true;
957 * Allow for the use of gzip compression (requires zlib)
959 * @global boolean $cfg['GZipDump']
961 $cfg['GZipDump'] = true;
964 * Allow for the use of bzip2 compression (requires bz2 extension)
966 * @global boolean $cfg['BZipDump']
968 $cfg['BZipDump'] = true;
971 * Will compress gzip/bzip2 exports on the fly without the need for much memory.
972 * If you encounter problems with created gzip/bzip2 files disable this feature.
974 * @global boolean $cfg['CompressOnFly']
976 $cfg['CompressOnFly'] = true;
979 /*******************************************************************************
980 * Tabs display settings
984 * use graphically less intense menu tabs
986 * @global boolean $cfg['LightTabs']
988 $cfg['LightTabs'] = false;
991 * Use icons instead of text for the table display of a database (true|false|'both')
993 * @global boolean $cfg['PropertiesIconic']
995 $cfg['PropertiesIconic'] = true;
998 * How many columns should be used for table display of a database?
999 * (a value larger than 1 results in some information being hidden)
1001 * @global integer $cfg['PropertiesNumColumns']
1003 $cfg['PropertiesNumColumns'] = 1;
1006 * Possible values:
1007 * 'main.php' = the welcome page
1008 * (recommended for multiuser setups)
1009 * 'server_databases.php' = list of databases
1010 * 'server_status.php' = runtime information
1011 * 'server_variables.php' = MySQL server variables
1012 * 'server_privileges.php' = user management
1013 * 'server_processlist.php' = process list
1015 * @global string $cfg['DefaultTabServer']
1017 $cfg['DefaultTabServer'] = 'main.php';
1020 * Possible values:
1021 * 'db_structure.php' = tables list
1022 * 'db_sql.php' = SQL form
1023 * 'db_search.php' = search query
1024 * 'db_operations.php' = operations on database
1026 * @global string $cfg['DefaultTabDatabase']
1028 $cfg['DefaultTabDatabase'] = 'db_structure.php';
1031 * Possible values:
1032 * 'tbl_structure.php' = fields list
1033 * 'tbl_sql.php' = SQL form
1034 * 'tbl_select.php' = search page
1035 * 'tbl_change.php' = insert row page
1036 * 'sql.php' = browse page
1038 * @global string $cfg['DefaultTabTable']
1040 $cfg['DefaultTabTable'] = 'sql.php';
1043 * Mapping between script filenames and translation keys
1045 * Lookup can be performed by PMA_getTitleForTarget()
1047 * @global string $cfg['DefaultTabTranslationMapping']
1049 $cfg['DefaultTabTranslationMapping'] = array(
1051 // Values for $cfg['DefaultTabTable']
1052 'tbl_structure.php' => 'strStructure',
1053 'tbl_sql.php' => 'strSQL',
1054 'tbl_select.php' => 'strSearch',
1055 'tbl_change.php' => 'strInsert',
1056 'sql.php' => 'strBrowse',
1058 // Values for $cfg['DefaultTabDatabase']
1059 'db_structure.php' => 'strStructure',
1060 'db_sql.php' => 'strSQL',
1061 'db_search.php' => 'strSearch',
1062 'db_operations.php' => 'strOperations',
1065 /*******************************************************************************
1066 * Export defaults
1068 $cfg['Export'] = array();
1071 * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xls/xml/yaml
1073 * @global string $cfg['Export']['format']
1075 $cfg['Export']['format'] = 'sql';
1078 * none/zip/gzip/bzip2
1080 * @global string $cfg['Export']['compression']
1082 $cfg['Export']['compression'] = 'none';
1087 * @global boolean $cfg['Export']['asfile']
1089 $cfg['Export']['asfile'] = true;
1094 * @global string $cfg['Export']['charset']
1096 $cfg['Export']['charset'] = '';
1101 * @global boolean $cfg['Export']['onserver']
1103 $cfg['Export']['onserver'] = false;
1108 * @global boolean $cfg['Export']['onserver_overwrite']
1110 $cfg['Export']['onserver_overwrite'] = false;
1115 * @global boolean $cfg['Export']['remember_file_template']
1117 $cfg['Export']['remember_file_template'] = true;
1122 * @global string $cfg['Export']['file_template_table']
1124 $cfg['Export']['file_template_table'] = '__TABLE__';
1129 * @global string $cfg['Export']['file_template_database']
1131 $cfg['Export']['file_template_database'] = '__DB__';
1136 * @global string $cfg['Export']['file_template_server']
1138 $cfg['Export']['file_template_server'] = '__SERVER__';
1143 * @global boolean $cfg['Export']['ods_columns']
1145 $cfg['Export']['ods_columns'] = false;
1150 * @global string $cfg['Export']['ods_null']
1152 $cfg['Export']['ods_null'] = 'NULL';
1157 * @global boolean $cfg['Export']['odt_structure']
1159 $cfg['Export']['odt_structure'] = true;
1164 * @global boolean $cfg['Export']['odt_data']
1166 $cfg['Export']['odt_data'] = true;
1171 * @global boolean $cfg['Export']['odt_columns']
1173 $cfg['Export']['odt_columns'] = true;
1178 * @global boolean $cfg['Export']['odt_relation']
1180 $cfg['Export']['odt_relation'] = true;
1185 * @global boolean $cfg['Export']['odt_comments']
1187 $cfg['Export']['odt_comments'] = true;
1192 * @global boolean $cfg['Export']['odt_mime']
1194 $cfg['Export']['odt_mime'] = true;
1199 * @global string $cfg['Export']['odt_null']
1201 $cfg['Export']['odt_null'] = 'NULL';
1206 * @global boolean $cfg['Export']['htmlword_structure']
1208 $cfg['Export']['htmlword_structure'] = true;
1213 * @global boolean $cfg['Export']['htmlword_data']
1215 $cfg['Export']['htmlword_data'] = true;
1220 * @global boolean $cfg['Export']['htmlword_columns']
1222 $cfg['Export']['htmlword_columns'] = false;
1227 * @global string $cfg['Export']['htmlword_null']
1229 $cfg['Export']['htmlword_null'] = 'NULL';
1234 * @global boolean $cfg['Export']['texytext_structure']
1236 $cfg['Export']['texytext_structure'] = TRUE;
1241 * @global boolean $cfg['Export']['texytext_data']
1243 $cfg['Export']['texytext_data'] = TRUE;
1248 * @global boolean $cfg['Export']['texytext_columns']
1250 $cfg['Export']['texytext_columns'] = FALSE;
1255 * @global string $cfg['Export']['texytext_null']
1257 $cfg['Export']['texytext_null'] = 'NULL';
1262 * @global boolean $cfg['Export']['xls_columns']
1264 $cfg['Export']['xls_columns'] = false;
1269 * @global string $cfg['Export']['xls_null']
1271 $cfg['Export']['xls_null'] = 'NULL';
1276 * @global boolean $cfg['Export']['xlsx_columns']
1278 $cfg['Export']['xlsx_columns'] = false;
1283 * @global string $cfg['Export']['xlsx_null']
1285 $cfg['Export']['xlsx_null'] = 'NULL';
1290 * @global boolean $cfg['Export']['csv_columns']
1292 $cfg['Export']['csv_columns'] = false;
1297 * @global string $cfg['Export']['csv_null']
1299 $cfg['Export']['csv_null'] = 'NULL';
1304 * @global string $cfg['Export']['csv_separator']
1306 $cfg['Export']['csv_separator'] = ';';
1311 * @global string $cfg['Export']['csv_enclosed']
1313 $cfg['Export']['csv_enclosed'] = '"';
1318 * @global string $cfg['Export']['csv_escaped']
1320 $cfg['Export']['csv_escaped'] = '\\';
1325 * @global string $cfg['Export']['csv_terminated']
1327 $cfg['Export']['csv_terminated'] = 'AUTO';
1332 * @global boolean $cfg['Export']['excel_columns']
1334 $cfg['Export']['excel_columns'] = false;
1339 * @global string $cfg['Export']['excel_null']
1341 $cfg['Export']['excel_null'] = 'NULL';
1344 * win/mac
1346 * @global string $cfg['Export']['excel_edition']
1348 $cfg['Export']['excel_edition'] = 'win';
1353 * @global boolean $cfg['Export']['latex_structure']
1355 $cfg['Export']['latex_structure'] = true;
1360 * @global boolean $cfg['Export']['latex_data']
1362 $cfg['Export']['latex_data'] = true;
1367 * @global boolean $cfg['Export']['latex_columns']
1369 $cfg['Export']['latex_columns'] = true;
1374 * @global boolean $cfg['Export']['latex_relation']
1376 $cfg['Export']['latex_relation'] = true;
1381 * @global boolean $cfg['Export']['latex_comments']
1383 $cfg['Export']['latex_comments'] = true;
1388 * @global boolean $cfg['Export']['latex_mime']
1390 $cfg['Export']['latex_mime'] = true;
1395 * @global string $cfg['Export']['latex_null']
1397 $cfg['Export']['latex_null'] = '\textit{NULL}';
1402 * @global boolean $cfg['Export']['latex_caption']
1404 $cfg['Export']['latex_caption'] = true;
1409 * @global string $cfg['Export']['latex_structure_caption']
1411 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1416 * @global string $cfg['Export']['latex_structure_continued_caption']
1418 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
1423 * @global string $cfg['Export']['latex_data_caption']
1425 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1430 * @global string $cfg['Export']['latex_data_continued_caption']
1432 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1437 * @global string $cfg['Export']['latex_data_label']
1439 $cfg['Export']['latex_data_label'] = 'tab:__TABLE__-data';
1444 * @global string $cfg['Export']['latex_structure_label']
1446 $cfg['Export']['latex_structure_label'] = 'tab:__TABLE__-structure';
1451 * @global boolean $cfg['Export']['sql_structure']
1453 $cfg['Export']['sql_structure'] = true;
1458 * @global boolean $cfg['Export']['sql_data']
1460 $cfg['Export']['sql_data'] = true;
1465 * @global string $cfg['Export']['sql_compatibility']
1467 $cfg['Export']['sql_compatibility'] = 'NONE';
1470 * Whether to include comments in SQL export.
1472 * @global string $cfg['Export']['sql_include_comments']
1474 $cfg['Export']['sql_include_comments'] = true;
1479 * @global boolean $cfg['Export']['sql_disable_fk']
1481 $cfg['Export']['sql_disable_fk'] = false;
1486 * @global boolean $cfg['Export']['sql_use_transaction']
1488 $cfg['Export']['sql_use_transaction'] = false;
1493 * @global boolean $cfg['Export']['sql_drop_database']
1495 $cfg['Export']['sql_drop_database'] = false;
1500 * @global boolean $cfg['Export']['sql_drop_table']
1502 $cfg['Export']['sql_drop_table'] = false;
1507 * true by default for correct behavior when dealing with exporting
1508 * of VIEWs and the stand-in table
1509 * @global boolean $cfg['Export']['sql_if_not_exists']
1511 $cfg['Export']['sql_if_not_exists'] = true;
1516 * @global boolean $cfg['Export']['sql_procedure_function']
1518 $cfg['Export']['sql_procedure_function'] = false;
1523 * @global boolean $cfg['Export']['sql_auto_increment']
1525 $cfg['Export']['sql_auto_increment'] = true;
1530 * @global boolean $cfg['Export']['sql_backquotes']
1532 $cfg['Export']['sql_backquotes'] = true;
1537 * @global boolean $cfg['Export']['sql_dates']
1539 $cfg['Export']['sql_dates'] = false;
1544 * @global boolean $cfg['Export']['sql_relation']
1546 $cfg['Export']['sql_relation'] = false;
1551 * @global boolean $cfg['Export']['sql_columns']
1553 $cfg['Export']['sql_columns'] = true;
1558 * @global boolean $cfg['Export']['sql_delayed']
1560 $cfg['Export']['sql_delayed'] = false;
1565 * @global boolean $cfg['Export']['sql_ignore']
1567 $cfg['Export']['sql_ignore'] = false;
1572 * @global boolean $cfg['Export']['sql_hex_for_blob']
1574 $cfg['Export']['sql_hex_for_blob'] = true;
1577 * insert/update/replace
1579 * @global string $cfg['Export']['sql_type']
1581 $cfg['Export']['sql_type'] = 'insert';
1586 * @global boolean $cfg['Export']['sql_extended']
1588 $cfg['Export']['sql_extended'] = true;
1593 * @global integer $cfg['Export']['sql_max_query_size']
1595 $cfg['Export']['sql_max_query_size'] = 50000;
1600 * @global boolean $cfg['Export']['sql_comments']
1602 $cfg['Export']['sql_comments'] = false;
1607 * @global boolean $cfg['Export']['sql_mime']
1609 $cfg['Export']['sql_mime'] = false;
1612 * \n is replaced by new line
1614 * @global string $cfg['Export']['sql_header_comment']
1616 $cfg['Export']['sql_header_comment'] = '';
1621 * @global boolean $cfg['Export']['pdf_structure']
1623 $cfg['Export']['pdf_structure'] = false;
1628 * @global boolean $cfg['Export']['pdf_data']
1630 $cfg['Export']['pdf_data'] = true;
1635 * @global string $cfg['Export']['pdf_report_title']
1637 $cfg['Export']['pdf_report_title'] = '';
1640 * Export schema for each structure
1642 * @global string $cfg['Export']['xml_export_struc']
1644 $cfg['Export']['xml_export_struc'] = true;
1647 * Export functions
1649 * @global string $cfg['Export']['xml_export_functions']
1651 $cfg['Export']['xml_export_functions'] = true;
1654 * Export procedures
1656 * @global string $cfg['Export']['xml_export_procedures']
1658 $cfg['Export']['xml_export_procedures'] = true;
1661 * Export schema for each table
1663 * @global string $cfg['Export']['xml_export_tables']
1665 $cfg['Export']['xml_export_tables'] = true;
1668 * Export triggers
1670 * @global string $cfg['Export']['xml_export_triggers']
1672 $cfg['Export']['xml_export_triggers'] = true;
1675 * Export views
1677 * @global string $cfg['Export']['xml_export_views']
1679 $cfg['Export']['xml_export_views'] = true;
1682 * Export contents data
1684 * @global string $cfg['Export']['xml_export_contents']
1686 $cfg['Export']['xml_export_contents'] = true;
1689 /*******************************************************************************
1690 * Import defaults
1692 $cfg['Import'] = array();
1697 * @global string $cfg['Import']['format']
1699 $cfg['Import']['format'] = 'sql';
1702 * Default charset for import.
1704 * @global string $cfg['Import']['charset']
1706 $cfg['Import']['charset'] = '';
1711 * @global boolean $cfg['Import']['allow_interrupt']
1713 $cfg['Import']['allow_interrupt'] = true;
1718 * @global integer $cfg['Import']['skip_queries']
1720 $cfg['Import']['skip_queries'] = '0';
1725 * @global string $cfg['Import']['sql_compatibility']
1727 $cfg['Import']['sql_compatibility'] = 'NONE';
1732 * @global string $cfg['Import']['sql_no_auto_value_on_zero']
1734 $cfg['Import']['sql_no_auto_value_on_zero'] = true;
1739 * @global boolean $cfg['Import']['csv_replace']
1741 $cfg['Import']['csv_replace'] = false;
1746 * @global string $cfg['Import']['csv_terminated']
1748 $cfg['Import']['csv_terminated'] = ';';
1753 * @global string $cfg['Import']['csv_enclosed']
1755 $cfg['Import']['csv_enclosed'] = '"';
1760 * @global string $cfg['Import']['csv_escaped']
1762 $cfg['Import']['csv_escaped'] = '\\';
1767 * @global string $cfg['Import']['csv_new_line']
1769 $cfg['Import']['csv_new_line'] = 'auto';
1774 * @global string $cfg['Import']['csv_columns']
1776 $cfg['Import']['csv_columns'] = '';
1781 * @global string $cfg['Import']['csv_col_names']
1783 $cfg['Import']['csv_col_names'] = false;
1788 * @global boolean $cfg['Import']['ldi_replace']
1790 $cfg['Import']['ldi_replace'] = false;
1795 * @global string $cfg['Import']['ldi_terminated']
1797 $cfg['Import']['ldi_terminated'] = ';';
1802 * @global string $cfg['Import']['ldi_enclosed']
1804 $cfg['Import']['ldi_enclosed'] = '"';
1809 * @global string $cfg['Import']['ldi_escaped']
1811 $cfg['Import']['ldi_escaped'] = '\\';
1816 * @global string $cfg['Import']['ldi_new_line']
1818 $cfg['Import']['ldi_new_line'] = 'auto';
1823 * @global string $cfg['Import']['ldi_columns']
1825 $cfg['Import']['ldi_columns'] = '';
1828 * 'auto' for auto-detection, true or false for forcing
1830 * @global string $cfg['Import']['ldi_local_option']
1832 $cfg['Import']['ldi_local_option'] = 'auto';
1837 * @global string $cfg['Import']['ods_col_names']
1839 $cfg['Import']['ods_col_names'] = false;
1844 * @global string $cfg['Import']['ods_empty_rows']
1846 $cfg['Import']['ods_empty_rows'] = true;
1851 * @global string $cfg['Import']['ods_recognize_percentages']
1853 $cfg['Import']['ods_recognize_percentages'] = true;
1858 * @global string $cfg['Import']['ods_recognize_currency']
1860 $cfg['Import']['ods_recognize_currency'] = true;
1865 * @global string $cfg['Import']['xml_col_names']
1867 $cfg['Import']['xls_col_names'] = false;
1872 * @global string $cfg['Import']['xml_empty_rows']
1874 $cfg['Import']['xls_empty_rows'] = true;
1877 * Link to the official MySQL documentation.
1878 * Be sure to include no trailing slash on the path.
1879 * See http://dev.mysql.com/doc/ for more information
1880 * about MySQL manuals and their types.
1882 * @global string $cfg['MySQLManualBase']
1884 $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
1887 * Type of MySQL documentation:
1888 * viewable - "viewable online", current one used on MySQL website
1889 * searchable - "Searchable, with user comments"
1890 * chapters - "HTML, one page per chapter"
1891 * chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
1892 * big - "HTML, all on one page"
1893 * old - old style used in phpMyAdmin 2.3.0 and sooner
1894 * none - do not show documentation links
1896 * @global string $cfg['MySQLManualType']
1898 $cfg['MySQLManualType'] = 'viewable';
1901 /*******************************************************************************
1902 * PDF options
1908 * @global array $cfg['PDFPageSizes']
1910 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
1915 * @global string $cfg['PDFDefaultPageSize']
1917 $cfg['PDFDefaultPageSize'] = 'A4';
1920 /*******************************************************************************
1921 * Language and character set conversion settings
1925 * Default language to use, if not browser-defined or user-defined
1927 * @global string $cfg['DefaultLang']
1929 $cfg['DefaultLang'] = 'en-utf-8';
1932 * Default connection collation
1934 * @global string $cfg['DefaultConnectionCollation']
1936 $cfg['DefaultConnectionCollation'] = 'utf8_general_ci';
1939 * Force: always use this language - must be defined in
1940 * libraries/select_lang.lib.php
1941 * $cfg['Lang'] = 'en-utf-8';
1943 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
1944 * English only
1946 * @global string $cfg['FilterLanguages']
1948 $cfg['FilterLanguages'] = '';
1951 * Default character set to use for recoding of MySQL queries, does not take
1952 * any effect when character sets recoding is switched off by
1953 * $cfg['AllowAnywhereRecoding'] or in language file
1954 * (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
1956 * @global string $cfg['DefaultCharset']
1958 $cfg['DefaultCharset'] = 'utf-8';
1961 * Allow character set recoding of MySQL queries, must be also enabled in language
1962 * file to make harder using other language files than Unicode.
1963 * Default value is false to avoid problems on servers without the iconv
1964 * extension
1966 * @global boolean $cfg['AllowAnywhereRecoding']
1968 $cfg['AllowAnywhereRecoding'] = false;
1971 * You can select here which functions will be used for character set conversion.
1972 * Possible values are:
1973 * auto - automatically use available one (first is tested iconv, then
1974 * recode)
1975 * iconv - use iconv or libiconv functions
1976 * recode - use recode_string function
1978 * @global string $cfg['RecodingEngine']
1980 $cfg['RecodingEngine'] = 'auto';
1983 * Specify some parameters for iconv used in character set conversion. See iconv
1984 * documentation for details:
1985 * http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
1987 * @global string $cfg['IconvExtraParams']
1989 $cfg['IconvExtraParams'] = '//TRANSLIT';
1992 * Available character sets for MySQL conversion. currently contains all which could
1993 * be found in lang/* files and few more.
1994 * Character sets will be shown in same order as here listed, so if you frequently
1995 * use some of these move them to the top.
1997 * @global array $cfg['AvailableCharsets']
1999 $cfg['AvailableCharsets'] = array(
2000 'iso-8859-1',
2001 'iso-8859-2',
2002 'iso-8859-3',
2003 'iso-8859-4',
2004 'iso-8859-5',
2005 'iso-8859-6',
2006 'iso-8859-7',
2007 'iso-8859-8',
2008 'iso-8859-9',
2009 'iso-8859-10',
2010 'iso-8859-11',
2011 'iso-8859-12',
2012 'iso-8859-13',
2013 'iso-8859-14',
2014 'iso-8859-15',
2015 'windows-1250',
2016 'windows-1251',
2017 'windows-1252',
2018 'windows-1256',
2019 'windows-1257',
2020 'koi8-r',
2021 'big5',
2022 'gb2312',
2023 'utf-16',
2024 'utf-8',
2025 'utf-7',
2026 'x-user-defined',
2027 'euc-jp',
2028 'ks_c_5601-1987',
2029 'tis-620',
2030 'SHIFT_JIS'
2034 /*******************************************************************************
2035 * Customization & design
2037 * The graphical settings are now located in themes/theme-name/layout.inc.php
2041 * enable the left panel pointer
2042 * (used when LeftFrameLight is false)
2043 * see also LeftPointerColor
2044 * in layout.inc.php
2046 * @global boolean $cfg['LeftPointerEnable']
2048 $cfg['LeftPointerEnable'] = true;
2051 * enable the browse pointer
2052 * see also BrowsePointerColor
2053 * in layout.inc.php
2055 * @global boolean $cfg['BrowsePointerEnable']
2057 $cfg['BrowsePointerEnable'] = true;
2060 * enable the browse marker
2061 * see also BrowseMarkerColor
2062 * in layout.inc.php
2064 * @global boolean $cfg['BrowseMarkerEnable']
2066 $cfg['BrowseMarkerEnable'] = true;
2069 * textarea size (columns) in edit mode
2070 * (this value will be emphasized (*2) for SQL
2071 * query textareas and (*1.25) for query window)
2073 * @global integer $cfg['TextareaCols']
2075 $cfg['TextareaCols'] = 40;
2078 * textarea size (rows) in edit mode
2080 * @global integer $cfg['TextareaRows']
2082 $cfg['TextareaRows'] = 15;
2085 * double size of textarea size for LONGTEXT fields
2087 * @global boolean $cfg['LongtextDoubleTextarea']
2089 $cfg['LongtextDoubleTextarea'] = true;
2092 * auto-select when clicking in the textarea of the query-box
2094 * @global boolean $cfg['TextareaAutoSelect']
2096 $cfg['TextareaAutoSelect'] = false;
2099 * textarea size (columns) for CHAR/VARCHAR
2101 * @global integer $cfg['CharTextareaCols']
2103 $cfg['CharTextareaCols'] = 40;
2106 * textarea size (rows) for CHAR/VARCHAR
2108 * @global integer $cfg['CharTextareaRows']
2110 $cfg['CharTextareaRows'] = 2;
2113 * Enable Ctrl+Arrows moving between fields when editing?
2115 * @global boolean $cfg['CtrlArrowsMoving']
2117 $cfg['CtrlArrowsMoving'] = true;
2120 * Max field data length in browse mode for all non-numeric fields
2122 * @global integer $cfg['LimitChars']
2124 $cfg['LimitChars'] = 50;
2127 * show edit/delete links on left side of browse
2128 * (or at the top with vertical browse)
2130 * @global boolean $cfg['ModifyDeleteAtLeft']
2132 $cfg['ModifyDeleteAtLeft'] = true;
2135 * show edit/delete links on right side of browse
2136 * (or at the bottom with vertical browse)
2138 * @global boolean $cfg['ModifyDeleteAtRight']
2140 $cfg['ModifyDeleteAtRight'] = false;
2143 * default display direction (horizontal|vertical|horizontalflipped)
2145 * @global string $cfg['DefaultDisplay']
2147 $cfg['DefaultDisplay'] = 'horizontal';
2150 * default display direction for altering/creating columns (tbl_properties)
2151 * (horizontal|vertical|<number>)
2152 * number indicates maximal number for which vertical model is used
2154 * @global integer $cfg['DefaultPropDisplay']
2156 $cfg['DefaultPropDisplay'] = 3;
2159 * table-header rotation via faking or CSS? (css|fake)
2160 * NOTE: CSS only works in IE browsers!
2162 * @global string $cfg['HeaderFlipType']
2164 $cfg['HeaderFlipType'] = 'css';
2167 * shows stored relation-comments in 'browse' mode.
2169 * @global boolean $cfg['ShowBrowseComments']
2171 $cfg['ShowBrowseComments'] = true;
2174 * shows stored relation-comments in 'table property' mode.
2176 * @global boolean $cfg['ShowPropertyComments']
2178 $cfg['ShowPropertyComments']= true;
2181 * repeat header names every X cells? (0 = deactivate)
2183 * @global integer $cfg['RepeatCells']
2185 $cfg['RepeatCells'] = 100;
2188 * Set to true if Edit link should open the query to edit in the query window
2189 * (assuming JavaScript is enabled), and to false if we should edit in the right panel
2191 * @global boolean $cfg['EditInWindow']
2193 $cfg['EditInWindow'] = true;
2196 * Width of Query window
2198 * @global integer $cfg['QueryWindowWidth']
2200 $cfg['QueryWindowWidth'] = 550;
2203 * Height of Query window
2205 * @global integer $cfg['QueryWindowHeight']
2207 $cfg['QueryWindowHeight'] = 310;
2210 * Set to true if you want DB-based query history.If false, this utilizes
2211 * JS-routines to display query history (lost by window close)
2213 * @global boolean $cfg['QueryHistoryDB']
2215 $cfg['QueryHistoryDB'] = false;
2218 * which tab to display in the querywindow on startup
2219 * (sql|files|history|full)
2221 * @global string $cfg['QueryWindowDefTab']
2223 $cfg['QueryWindowDefTab'] = 'sql';
2226 * When using DB-based query history, how many entries should be kept?
2228 * @global integer $cfg['QueryHistoryMax']
2230 $cfg['QueryHistoryMax'] = 25;
2233 * Use MIME-Types (stored in column comments table) for
2235 * @global boolean $cfg['BrowseMIME']
2237 $cfg['BrowseMIME'] = true;
2240 * When approximate count < this, PMA will get exact count for table rows.
2242 * @global integer $cfg['MaxExactCount']
2244 $cfg['MaxExactCount'] = 20000;
2247 * Zero means that no row count is done for views; see the doc
2249 * @global integer $cfg['MaxExactCountViews']
2251 $cfg['MaxExactCountViews'] = 0;
2254 * Utilize DHTML/JS capabilities to allow WYSIWYG editing of
2255 * the PDF page editor. Requires an IE6/Gecko based browser.
2257 * @global boolean $cfg['WYSIWYG-PDF']
2259 $cfg['WYSIWYG-PDF'] = true;
2262 * Sort table and database in natural order
2264 * @global boolean $cfg['NaturalOrder']
2266 $cfg['NaturalOrder'] = true;
2269 * Initial state for sliders
2270 * (open | closed)
2272 * @global string $cfg['InitialSlidersState']
2274 $cfg['InitialSlidersState'] = 'closed';
2278 //-----------------------------------------------------------------------------
2279 // custom-setup by mkkeck: 2004-05-04
2280 // some specials for new icons and scrolling
2282 * @todo 2004-05-08 rabus: We need to rearrange these variables.
2286 /*******************************************************************************
2287 * Window title settings
2291 * title of browser window when a table is selected
2293 * @global string $cfg['TitleTable']
2295 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2298 * title of browser window when a database is selected
2300 * @global string $cfg['TitleDatabase']
2302 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2305 * title of browser window when a server is selected
2307 * @global string $cfg['TitleServer']
2309 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2312 * title of browser window when nothing is selected
2313 * @global string $cfg['TitleDefault']
2315 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2318 * show some icons for warning, error and information messages (true|false)?
2320 * @global boolean $cfg['ErrorIconic']
2322 $cfg['ErrorIconic'] = true;
2325 * show icons in list on main page and on menu tabs (true|false)?
2327 * @global boolean $cfg['MainPageIconic']
2329 $cfg['MainPageIconic'] = true;
2332 * show help button instead of strDocu (true|false)?
2334 * @global boolean $cfg['ReplaceHelpImg']
2336 $cfg['ReplaceHelpImg'] = true;
2339 /*******************************************************************************
2340 * theme manager
2344 * using themes manager please set up here the path to 'themes' else leave empty
2346 * @global string $cfg['ThemePath']
2348 $cfg['ThemePath'] = './themes';
2351 * if you want to use selectable themes and if ThemesPath not empty
2352 * set it to true, else set it to false (default is false);
2354 * @global boolean $cfg['ThemeManager']
2356 $cfg['ThemeManager'] = true;
2359 * set up default theme, if ThemePath not empty you can set up here an valid
2360 * path to themes or 'original' for the original pma-theme
2362 * @global string $cfg['ThemeDefault']
2364 $cfg['ThemeDefault'] = 'original';
2367 * allow different theme for each configured server
2369 * @global boolean $cfg['ThemePerServer']
2371 $cfg['ThemePerServer'] = false;
2374 /*******************************************************************************
2379 * Default queries
2380 * %d will be replaced by the database name.
2381 * %t will be replaced by the table name.
2382 * %f will be replaced by a list of field names.
2383 * (%t and %f only applies to DefaultQueryTable)
2385 * @global string $cfg['DefaultQueryTable']
2387 $cfg['DefaultQueryTable'] = 'SELECT * FROM %t WHERE 1';
2390 * Default queries
2391 * %d will be replaced by the database name.
2392 * %t will be replaced by the table name.
2393 * %f will be replaced by a list of field names.
2394 * (%t and %f only applies to DefaultQueryTable)
2396 * @global string $cfg['DefaultQueryDatabase']
2398 $cfg['DefaultQueryDatabase'] = '';
2401 /*******************************************************************************
2402 * SQL Query box settings
2403 * These are the links display in all of the SQL Query boxes
2405 * @global array $cfg['SQLQuery']
2407 $cfg['SQLQuery'] = array();
2410 * Edit link to change a query
2412 * @global boolean $cfg['SQLQuery']['Edit']
2414 $cfg['SQLQuery']['Edit'] = true;
2417 * EXPLAIN on SELECT queries
2419 * @global boolean $cfg['SQLQuery']['Explain']
2421 $cfg['SQLQuery']['Explain'] = true;
2424 * Wrap a query in PHP
2426 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2428 $cfg['SQLQuery']['ShowAsPHP'] = true;
2431 * Validate a query (see $cfg['SQLValidator'] as well)
2433 * @global boolean $cfg['SQLQuery']['Validate']
2435 $cfg['SQLQuery']['Validate'] = false;
2438 * Refresh the results page
2440 * @global boolean $cfg['SQLQuery']['Refresh']
2442 $cfg['SQLQuery']['Refresh'] = true;
2445 /*******************************************************************************
2446 * Web server upload/save/import directories
2450 * Directory for uploaded files that can be executed by phpMyAdmin.
2451 * For example './upload'. Leave empty for no upload directory support.
2452 * Use %u for username inclusion.
2454 * @global string $cfg['UploadDir']
2456 $cfg['UploadDir'] = '';
2459 * Directory where phpMyAdmin can save exported data on server.
2460 * For example './save'. Leave empty for no save directory support.
2461 * Use %u for username inclusion.
2463 * @global string $cfg['SaveDir']
2465 $cfg['SaveDir'] = '';
2468 * Directory where phpMyAdmin can save temporary files.
2469 * This is needed for MS Excel export, see documentation how to enable that.
2471 * @global string $cfg['TempDir']
2473 $cfg['TempDir'] = '';
2477 * Misc. settings
2481 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2482 * which is the only safe way to determine GD version.
2484 * @global string $cfg['GD2Available']
2486 $cfg['GD2Available'] = 'auto';
2489 * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
2491 * @global array $cfg['TrustedProxies']
2493 $cfg['TrustedProxies'] = array();
2496 * We normally check the permissions on the configuration file to ensure
2497 * it's not world writable. However, phpMyAdmin could be installed on
2498 * a NTFS filesystem mounted on a non-Windows server, in which case the
2499 * permissions seems wrong but in fact cannot be detected. In this case
2500 * a sysadmin would set the following to false.
2502 $cfg['CheckConfigurationPermissions'] = true;
2505 * Limit for length of URL in links. When length would be above this limit, it
2506 * is replaced by form with button.
2507 * This is required as some web servers (IIS) have problems with long URLs.
2509 $cfg['LinkLengthLimit'] = 1000;
2511 /*******************************************************************************
2512 * SQL Parser Settings
2514 * @global array $cfg['SQP']
2516 $cfg['SQP'] = array();
2519 * Pretty-printing style to use on queries (html, text, none)
2521 * @global string $cfg['SQP']['fmtType']
2523 $cfg['SQP']['fmtType'] = 'html';
2526 * Amount to indent each level (floats are valid)
2528 * @global integer $cfg['SQP']['fmtInd']
2530 $cfg['SQP']['fmtInd'] = '1';
2533 * Units for indenting each level (CSS Types - {em, px, pt})
2535 * @global string $cfg['SQP']['fmtIndUnit']
2537 $cfg['SQP']['fmtIndUnit'] = 'em';
2540 /*******************************************************************************
2541 * If you wish to use the SQL Validator service, you should be aware of the
2542 * following:
2543 * All SQL statements are stored anonymously for statistical purposes.
2544 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
2545 * All rights reserved.
2547 * @global array $cfg['SQLValidator']
2549 $cfg['SQLValidator'] = array();
2552 * Make the SQL Validator available
2554 * @global boolean $cfg['SQLValidator']['use']
2556 $cfg['SQLValidator']['use'] = false;
2559 * If you have a custom username, specify it here (defaults to anonymous)
2561 * @global string $cfg['SQLValidator']['username']
2563 $cfg['SQLValidator']['username'] = '';
2566 * Password for username
2568 * @global string $cfg['SQLValidator']['password']
2570 $cfg['SQLValidator']['password'] = '';
2573 /*******************************************************************************
2574 * Developers ONLY!
2576 * @global array $cfg['DBG']
2578 $cfg['DBG'] = array();
2581 * Output executed queries and their execution times
2583 * @global boolean $cfg['DBG']['sql']
2585 $cfg['DBG']['sql'] = false;
2588 * Make the DBG stuff available
2589 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
2591 * @global boolean $cfg['DBG']['php']
2593 $cfg['DBG']['php'] = false;
2596 * Produce profiling results of PHP
2598 * @global boolean $cfg['DBG']['profile']['enable']
2600 $cfg['DBG']['profile']['enable'] = false;
2603 * Threshold of long running code to display
2604 * Anything below the threshold is not displayed
2606 * @global float $cfg['DBG']['profile']['threshold']
2608 $cfg['DBG']['profile']['threshold'] = 0.5;
2611 /*******************************************************************************
2612 * MySQL settings
2616 * Column types;
2617 * VARCHAR, TINYINT, TEXT and DATE are listed first, based on estimated popularity
2619 * @global array $cfg['ColumnTypes']
2621 $cfg['ColumnTypes'] = array(
2622 // most used
2623 'INT',
2624 'VARCHAR',
2625 'TEXT',
2626 'DATE',
2628 // numeric
2629 'NUMERIC' => array(
2630 'TINYINT',
2631 'SMALLINT',
2632 'MEDIUMINT',
2633 'INT',
2634 'BIGINT',
2635 '-',
2636 'DECIMAL',
2637 'FLOAT',
2638 'DOUBLE',
2639 'REAL',
2640 '-',
2641 'BIT',
2642 'BOOLEAN',
2643 'SERIAL',
2647 // Date/Time
2648 'DATE and TIME' => array(
2649 'DATE',
2650 'DATETIME',
2651 'TIMESTAMP',
2652 'TIME',
2653 'YEAR',
2656 // Text
2657 'STRING' => array(
2658 'CHAR',
2659 'VARCHAR',
2660 '-',
2661 'TINYTEXT',
2662 'TEXT',
2663 'MEDIUMTEXT',
2664 'LONGTEXT',
2665 '-',
2666 'BINARY',
2667 'VARBINARY',
2668 '-',
2669 'TINYBLOB',
2670 'MEDIUMBLOB',
2671 'BLOB',
2672 'LONGBLOB',
2673 '-',
2674 'ENUM',
2675 'SET',
2678 'SPATIAL' => array(
2679 'GEOMETRY',
2680 'POINT',
2681 'LINESTRING',
2682 'POLYGON',
2683 'MULTIPOINT',
2684 'MULTILINESTRING',
2685 'MULTIPOLYGON',
2686 'GEOMETRYCOLLECTION',
2691 * Attributes
2693 * @global array $cfg['AttributeTypes']
2695 $cfg['AttributeTypes'] = array(
2697 'BINARY',
2698 'UNSIGNED',
2699 'UNSIGNED ZEROFILL',
2700 'on update CURRENT_TIMESTAMP',
2704 if ($cfg['ShowFunctionFields']) {
2706 * Available functions
2708 * @global array $cfg['Functions']
2710 $cfg['Functions'] = array(
2711 'ABS',
2712 'ACOS',
2713 'ASCII',
2714 'ASIN',
2715 'ATAN',
2716 'BIN',
2717 'BIT_COUNT',
2718 'BIT_LENGTH',
2719 'CEILING',
2720 'CHAR',
2721 'CHAR_LENGTH',
2722 'COMPRESS',
2723 'COS',
2724 'COT',
2725 'CRC32',
2726 'CURDATE',
2727 'CURRENT_USER',
2728 'CURTIME',
2729 'DATE',
2730 'DAYNAME',
2731 'DEGREES',
2732 'DES_DECRYPT',
2733 'DES_ENCRYPT',
2734 'ENCRYPT',
2735 'EXP',
2736 'FLOOR',
2737 'FROM_DAYS',
2738 'FROM_UNIXTIME',
2739 'HEX',
2740 'INET_ATON',
2741 'INET_NTOA',
2742 'LENGTH',
2743 'LN',
2744 'LOG',
2745 'LOG10',
2746 'LOG2',
2747 'LOWER',
2748 'MD5',
2749 'NOW',
2750 'OCT',
2751 'OLD_PASSWORD',
2752 'ORD',
2753 'PASSWORD',
2754 'RADIANS',
2755 'RAND',
2756 'REVERSE',
2757 'ROUND',
2758 'SEC_TO_TIME',
2759 'SHA1',
2760 'SOUNDEX',
2761 'SPACE',
2762 'SQRT',
2763 'STDDEV_POP',
2764 'STDDEV_SAMP',
2765 'TAN',
2766 'TIMESTAMP',
2767 'TIME_TO_SEC',
2768 'UNCOMPRESS',
2769 'UNHEX',
2770 'UNIX_TIMESTAMP',
2771 'UPPER',
2772 'USER',
2773 'UTC_DATE',
2774 'UTC_TIME',
2775 'UTC_TIMESTAMP',
2776 'UUID',
2777 'VAR_POP',
2778 'VAR_SAMP',
2779 'YEAR',
2783 * Which column types will be mapped to which Group?
2785 * @global array $cfg['RestrictColumnTypes']
2787 $cfg['RestrictColumnTypes'] = array(
2788 'TINYINT' => 'FUNC_NUMBER',
2789 'SMALLINT' => 'FUNC_NUMBER',
2790 'MEDIUMINT' => 'FUNC_NUMBER',
2791 'INT' => 'FUNC_NUMBER',
2792 'BIGINT' => 'FUNC_NUMBER',
2793 'DECIMAL' => 'FUNC_NUMBER',
2794 'FLOAT' => 'FUNC_NUMBER',
2795 'DOUBLE' => 'FUNC_NUMBER',
2796 'REAL' => 'FUNC_NUMBER',
2797 'BIT' => 'FUNC_NUMBER',
2798 'BOOLEAN' => 'FUNC_NUMBER',
2799 'SERIAL' => 'FUNC_NUMBER',
2801 'DATE' => 'FUNC_DATE',
2802 'DATETIME' => 'FUNC_DATE',
2803 'TIMESTAMP' => 'FUNC_DATE',
2804 'TIME' => 'FUNC_DATE',
2805 'YEAR' => 'FUNC_DATE',
2807 'CHAR' => 'FUNC_CHAR',
2808 'VARCHAR' => 'FUNC_CHAR',
2809 'TINYTEXT' => 'FUNC_CHAR',
2810 'TEXT' => 'FUNC_CHAR',
2811 'MEDIUMTEXT' => 'FUNC_CHAR',
2812 'LONGTEXT' => 'FUNC_CHAR',
2813 'BINARY' => 'FUNC_CHAR',
2814 'VARBINARY' => 'FUNC_CHAR',
2815 'TINYBLOB' => 'FUNC_CHAR',
2816 'MEDIUMBLOB' => 'FUNC_CHAR',
2817 'BLOB' => 'FUNC_CHAR',
2818 'LONGBLOB' => 'FUNC_CHAR',
2819 'ENUM' => '',
2820 'SET' => '',
2822 'GEOMETRY' => 'FUNC_SPATIAL',
2823 'POINT' => 'FUNC_SPATIAL',
2824 'LINESTRING' => 'FUNC_SPATIAL',
2825 'POLYGON' => 'FUNC_SPATIAL',
2826 'MULTIPOINT' => 'FUNC_SPATIAL',
2827 'MULTILINESTRING' => 'FUNC_SPATIAL',
2828 'MULTIPOLYGON' => 'FUNC_SPATIAL',
2829 'GEOMETRYCOLLECTION' => 'FUNC_SPATIAL',
2834 * Map above defined groups to any function
2836 * @global array $cfg['RestrictFunctions']
2838 $cfg['RestrictFunctions'] = array(
2839 'FUNC_CHAR' => array(
2840 'BIN',
2841 'CHAR',
2842 'CURRENT_USER',
2843 'COMPRESS',
2844 'DAYNAME',
2845 'DES_DECRYPT',
2846 'DES_ENCRYPT',
2847 'ENCRYPT',
2848 'HEX',
2849 'INET_NTOA',
2850 'LOWER',
2851 'MD5',
2852 'OLD_PASSWORD',
2853 'PASSWORD',
2854 'REVERSE',
2855 'SHA1',
2856 'SOUNDEX',
2857 'SPACE',
2858 'UNCOMPRESS',
2859 'UNHEX',
2860 'UPPER',
2861 'USER',
2862 'UUID',
2865 'FUNC_DATE' => array(
2866 'CURDATE',
2867 'CURTIME',
2868 'DATE',
2869 'FROM_DAYS',
2870 'FROM_UNIXTIME',
2871 'NOW',
2872 'SEC_TO_TIME',
2873 'TIMESTAMP',
2874 'UTC_DATE',
2875 'UTC_TIME',
2876 'UTC_TIMESTAMP',
2877 'YEAR',
2880 'FUNC_NUMBER' => array(
2881 'ABS',
2882 'ACOS',
2883 'ASCII',
2884 'ASIN',
2885 'ATAN',
2886 'BIT_LENGTH',
2887 'BIT_COUNT',
2888 'CEILING',
2889 'CHAR_LENGTH',
2890 'COS',
2891 'COT',
2892 'CRC32',
2893 'DEGREES',
2894 'EXP',
2895 'FLOOR',
2896 'INET_ATON',
2897 'LENGTH',
2898 'LN',
2899 'LOG',
2900 'LOG2',
2901 'LOG10',
2902 'OCT',
2903 'ORD',
2904 'RADIANS',
2905 'RAND',
2906 'ROUND',
2907 'SQRT',
2908 'STDDEV_POP',
2909 'STDDEV_SAMP',
2910 'TAN',
2911 'TIME_TO_SEC',
2912 'UNIX_TIMESTAMP',
2913 'VAR_POP',
2914 'VAR_SAMP',
2917 'FUNC_SPATIAL' => array(
2918 'GeomFromText',
2919 'GeomFromWKB',
2921 'GeomCollFromText',
2922 'LineFromText',
2923 'MLineFromText',
2924 'PointFromText',
2925 'MPointFromText',
2926 'PolyFromText',
2927 'MPolyFromText',
2929 'GeomCollFromWKB',
2930 'LineFromWKB',
2931 'MLineFromWKB',
2932 'PointFromWKB',
2933 'MPointFromWKB',
2934 'PolyFromWKB',
2935 'MPolyFromWKB',
2940 * Default functions for above defined groups
2942 * @global array $cfg['DefaultFunctions']
2944 $cfg['DefaultFunctions'] = array(
2945 'FUNC_CHAR' => '',
2946 'FUNC_DATE' => '',
2947 'FUNC_NUMBER' => '',
2948 'first_timestamp' => 'NOW',
2949 'pk_char36' => 'UUID',
2953 } // end if
2956 * Search operators
2958 * @global array $cfg['NumOperators']
2960 $cfg['NumOperators'] = array(
2961 '=',
2962 '>',
2963 '>=',
2964 '<',
2965 '<=',
2966 '!=',
2967 'LIKE',
2968 'NOT LIKE',
2972 * Search operators
2974 * @global array $cfg['TextOperators']
2976 $cfg['TextOperators'] = array(
2977 'LIKE',
2978 'LIKE %...%',
2979 'NOT LIKE',
2980 '=',
2981 '!=',
2982 'REGEXP',
2983 'NOT REGEXP',
2984 "= ''",
2985 "!= ''"
2989 * Search operators
2991 * @global array $cfg['EnumOperators']
2993 $cfg['EnumOperators'] = array(
2994 '=',
2995 '!=',
2999 * Search operators
3001 * @global array $cfg['SetOperators']
3003 $cfg['SetOperators'] = array(
3004 'IN',
3005 'NOT IN',
3009 * Search operators
3011 * @global array $cfg['NullOperators']
3013 $cfg['NullOperators'] = array(
3014 'IS NULL',
3015 'IS NOT NULL',
3019 * Search operators
3021 * @global array $cfg['UnaryOperators']
3023 $cfg['UnaryOperators'] = array(
3024 'IS NULL' => 1,
3025 'IS NOT NULL' => 1,
3026 "= ''" => 1,
3027 "!= ''" => 1