2 /* vim: set expandtab sw=4 ts=4 sts=4: */
5 * N N OOO !! DDDD OOO N N OOO TTTTT EEEE DDDD I TTTTT !!
6 * NN N O O !! D D O O NN N O O T E D D I T !!
7 * N N N O O !! D D O O N N N O O T EEEE D D I T !!
8 * N NN O O D D O O N NN O O T E D D I T
9 * N N OOO !! DDDD OOO N N OOO T EEEE DDDD I T !!
12 * DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
14 * phpMyAdmin default configuration, you can copy values from here to your
17 * All directives are explained in Documentation.html
23 * Your phpMyAdmin URL.
25 * Complete the variable below with the full URL ie
26 * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
28 * It must contain characters that are valid for a URL, and the path is
29 * case sensitive on some Web servers, for example Unix-based servers.
31 * In most cases you can leave this variable empty, as the correct value
32 * will be detected automatically. However, we recommend that you do
33 * test to see that the auto-detection code works in your system. A good
34 * test is to browse a table, then edit a row and save it. There will be
35 * an error message if phpMyAdmin cannot auto-detect the correct value.
37 * @global string $cfg['PmaAbsoluteUri']
39 $cfg['PmaAbsoluteUri'] = '';
42 * Disable the default warning that is displayed on the DB Details Structure page if
43 * any of the required Tables for the relation features could not be found
45 * @global boolean $cfg['PmaNoRelation_DisableWarning']
47 $cfg['PmaNoRelation_DisableWarning'] = false;
50 * Disable the default warning that is displayed if Suhosin is detected
52 * @global boolean $cfg['SuhosinDisableWarning']
54 $cfg['SuhosinDisableWarning'] = false;
57 * Allows phpMyAdmin to be included from a document located on
58 * another domain; setting this to true is a potential security hole
60 * @global boolean $cfg['AllowThirdPartyFraming']
62 $cfg['AllowThirdPartyFraming'] = false;
65 * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
66 * at least one server configuration uses 'cookie' auth_type, enter here a
67 * pass phrase that will be used by blowfish. The maximum length seems to be 46
70 * @global string $cfg['blowfish_secret']
72 $cfg['blowfish_secret'] = '';
75 /*******************************************************************************
76 * Server(s) configuration
78 * The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
79 * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
80 * to ''. If you want more than one server, just copy following section
81 * (including $i incrementation) several times. There is no need to define
82 * full server array, just define values you need to change.
84 * @global array $cfg['Servers']
86 $cfg['Servers'] = array();
91 * MySQL hostname or IP address
93 * @global string $cfg['Servers'][$i]['host']
95 $cfg['Servers'][$i]['host'] = 'localhost';
98 * MySQL port - leave blank for default port
100 * @global string $cfg['Servers'][$i]['port']
102 $cfg['Servers'][$i]['port'] = '';
105 * Path to the socket - leave blank for default socket
107 * @global string $cfg['Servers'][$i]['socket']
109 $cfg['Servers'][$i]['socket'] = '';
112 * Use SSL for connecting to MySQL server?
114 * @global boolean $cfg['Servers'][$i]['ssl']
116 $cfg['Servers'][$i]['ssl'] = false;
119 * How to connect to MySQL server ('tcp' or 'socket')
121 * @global string $cfg['Servers'][$i]['connect_type']
123 $cfg['Servers'][$i]['connect_type'] = 'tcp';
126 * The PHP MySQL extension to use ('mysql' or 'mysqli')
128 * @global string $cfg['Servers'][$i]['extension']
130 $cfg['Servers'][$i]['extension'] = 'mysql';
133 * Use compressed protocol for the MySQL connection (requires PHP >= 4.3.0)
135 * @global boolean $cfg['Servers'][$i]['compress']
137 $cfg['Servers'][$i]['compress'] = false;
140 * MySQL control user settings (this user must have read-only
141 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
142 * used for all relational features (pmadb)
144 * @global string $cfg['Servers'][$i]['controluser']
146 $cfg['Servers'][$i]['controluser'] = '';
149 * MySQL control user settings (this user must have read-only
150 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
151 * used for all relational features (pmadb)
153 * @global string $cfg['Servers'][$i]['controlpass']
155 $cfg['Servers'][$i]['controlpass'] = '';
158 * Authentication method (valid choices: config, http, signon or cookie)
160 * @global string $cfg['Servers'][$i]['auth_type']
162 $cfg['Servers'][$i]['auth_type'] = 'config';
165 * File containing Swekey ids and login names (see /contrib);
166 * leave empty to deactivate Swekey hardware authentication
168 * @global string $cfg['Servers'][$i]['auth_swekey_config']
170 $cfg['Servers'][$i]['auth_swekey_config'] = '';
175 * @global string $cfg['Servers'][$i]['user']
177 $cfg['Servers'][$i]['user'] = 'root';
180 * MySQL password (only needed with 'config' auth_type)
182 * @global string $cfg['Servers'][$i]['password']
184 $cfg['Servers'][$i]['password'] = '';
187 * Session to use for 'signon' authentication method
189 * @global string $cfg['Servers'][$i]['SignonSession']
191 $cfg['Servers'][$i]['SignonSession'] = '';
194 * URL where to redirect user to login for 'signon' authentication method
196 * @global string $cfg['Servers'][$i]['SignonURL']
198 $cfg['Servers'][$i]['SignonURL'] = '';
201 * URL where to redirect user after logout
203 * @global string $cfg['Servers'][$i]['LogoutURL']
205 $cfg['Servers'][$i]['LogoutURL'] = '';
208 * Whether to try to connect without password
210 * @global boolean $cfg['Servers'][$i]['nopassword']
212 $cfg['Servers'][$i]['nopassword'] = false;
215 * If set to a db-name, only this db is displayed in left frame
216 * It may also be an array of db-names, where sorting order is relevant.
218 * @global string $cfg['Servers'][$i]['only_db']
220 $cfg['Servers'][$i]['only_db'] = '';
223 * Database name to be hidden from listings
225 * @global string $cfg['Servers'][$i]['hide_db']
227 $cfg['Servers'][$i]['hide_db'] = '';
230 * Verbose name for this host - leave blank to show the hostname
231 * (for HTTP authentication, all non-US-ASCII characters will be stripped)
233 * @global string $cfg['Servers'][$i]['verbose']
235 $cfg['Servers'][$i]['verbose'] = '';
238 * Database used for Relation, Bookmark and PDF Features
239 * (see scripts/create_tables.sql)
240 * - leave blank for no support
241 * DEFAULT: 'phpmyadmin'
243 * @global string $cfg['Servers'][$i]['pmadb']
245 $cfg['Servers'][$i]['pmadb'] = '';
249 * - leave blank for no bookmark support
250 * DEFAULT: 'pma_bookmark'
252 * @global string $cfg['Servers'][$i]['bookmarktable']
254 $cfg['Servers'][$i]['bookmarktable'] = '';
257 * table to describe the relation between links (see doc)
258 * - leave blank for no relation-links support
259 * DEFAULT: 'pma_relation'
261 * @global string $cfg['Servers'][$i]['relation']
263 $cfg['Servers'][$i]['relation'] = '';
266 * table to describe the display fields
267 * - leave blank for no display fields support
268 * DEFAULT: 'pma_table_info'
270 * @global string $cfg['Servers'][$i]['table_info']
272 $cfg['Servers'][$i]['table_info'] = '';
275 * table to describe the tables position for the PDF schema
276 * - leave blank for no PDF schema support
277 * DEFAULT: 'pma_table_coords'
279 * @global string $cfg['Servers'][$i]['table_coords']
281 $cfg['Servers'][$i]['table_coords'] = '';
284 * table to describe pages of relationpdf
285 * - leave blank if you don't want to use this
286 * DEFAULT: 'pma_pdf_pages'
288 * @global string $cfg['Servers'][$i]['pdf_pages']
290 $cfg['Servers'][$i]['pdf_pages'] = '';
293 * table to store column information
294 * - leave blank for no column comments/mime types
295 * DEFAULT: 'pma_column_info'
297 * @global string $cfg['Servers'][$i]['column_info']
299 $cfg['Servers'][$i]['column_info'] = '';
302 * table to store SQL history
303 * - leave blank for no SQL query history
304 * DEFAULT: 'pma_history'
306 * @global string $cfg['Servers'][$i]['history']
308 $cfg['Servers'][$i]['history'] = '';
311 * table to store the coordinates for Designer
312 * - leave blank for no Designer feature
313 * DEFAULT: 'pma_designer_coords'
315 * @global string $cfg['Servers'][$i]['designer_coords']
317 $cfg['Servers'][$i]['designer_coords'] = '';
320 * set to false if you know that your pma_* tables are up to date.
321 * This prevents compatibility checks and thereby increases performance.
323 * @global boolean $cfg['Servers'][$i]['verbose_check']
325 $cfg['Servers'][$i]['verbose_check'] = true;
328 * whether to allow root login
330 * @global boolean $cfg['Servers'][$i]['AllowRoot']
332 $cfg['Servers'][$i]['AllowRoot'] = true;
335 * Host authentication order, leave blank to not use
337 * @global string $cfg['Servers'][$i]['AllowDeny']['order']
339 $cfg['Servers'][$i]['AllowDeny']['order'] = '';
342 * Disable use of INFORMATION_SCHEMA
344 * @see http://sf.net/support/tracker.php?aid=1849494
345 * @see http://bugs.mysql.com/19588
346 * @global boolean $cfg['Servers'][$i]['DisableIS']
348 $cfg['Servers'][$i]['DisableIS'] = true;
351 * Host authentication rules, leave blank for defaults
353 * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
355 $cfg['Servers'][$i]['AllowDeny']['rules'] = array();
358 * SQL command to fetch available databases
360 * by default most user will be fine with SHOW DATABASES,
361 * for servers with a huge amount of databases it is possible to
362 * define a command which executes faster but with less information
364 * especially when accessing database servers from ISPs changing this command
365 * can result in a great speed improvement
367 * false will disable fetching databases from the server, only databases in
368 * $cfg['Servers'][$i]['only_db'] will be displayed
370 * #user# will be replaced by current user
374 * "SHOW DATABASES LIKE '#user#\_%'"
375 * 'SELECT DISTINCT TABLE_SCHEMA FROM information_schema.SCHEMA_PRIVILEGES'
376 * 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA'
379 * @global array $cfg['Servers'][$i]['ShowDatabasesCommand']
381 $cfg['Servers'][$i]['ShowDatabasesCommand'] = 'SHOW DATABASES';
384 * Whether to count tables when showing database list
386 * @global array $cfg['Servers'][$i]['CountTables']
388 $cfg['Servers'][$i]['CountTables'] = true;
391 * Default server (0 = no default server)
393 * If you have more than one server configured, you can set $cfg['ServerDefault']
394 * to any one of them to auto-connect to that server when phpMyAdmin is started,
395 * or set it to 0 to be given a list of servers without logging in
396 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
397 * set to that server.
399 * @global integer $cfg['ServerDefault']
401 $cfg['ServerDefault'] = 1;
404 * Other core phpMyAdmin settings
407 * maximum number of db's displayed in left frame and database list
409 * @global integer $cfg['MaxDbList']
411 $cfg['MaxDbList'] = 100;
414 * maximum number of tables displayed in table list
416 * @global integer $cfg['MaxTableList']
418 $cfg['MaxTableList'] = 250;
421 * maximum number of characters when a SQL query is displayed
423 * @global integer $cfg['MaxCharactersInDisplayedSQL']
425 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
428 * use GZIP output buffering if possible (true|false|'auto')
430 * @global string $cfg['OBGzip']
432 $cfg['OBGzip'] = 'auto';
435 * use persistent connections to MySQL database
437 * @global boolean $cfg['PersistentConnections']
439 $cfg['PersistentConnections'] = false;
442 * whether to force using HTTPS
444 * @global boolean $cfg['ForceSSL']
446 $cfg['ForceSSL'] = false;
449 * maximum execution time in seconds (0 for no limit)
451 * @global integer $cfg['ExecTimeLimit']
453 $cfg['ExecTimeLimit'] = 300;
456 * maximum allocated bytes (0 for no limit)
458 * @global integer $cfg['MemoryLimit']
460 $cfg['MemoryLimit'] = 0;
463 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
465 * @global boolean $cfg['SkipLockedTables']
467 $cfg['SkipLockedTables'] = false;
470 * show SQL queries as run
472 * @global boolean $cfg['ShowSQL']
474 $cfg['ShowSQL'] = true;
477 * show a 'Drop database' link to normal users
479 * @global boolean $cfg['AllowUserDropDatabase']
481 $cfg['AllowUserDropDatabase'] = false;
484 * confirm 'DROP TABLE' & 'DROP DATABASE'
486 * @global boolean $cfg['Confirm']
488 $cfg['Confirm'] = true;
491 * recall previous login in cookie authentication mode or not
493 * @global boolean $cfg['LoginCookieRecall']
495 $cfg['LoginCookieRecall'] = true;
498 * validity of cookie login (in seconds)
500 * @global integer $cfg['LoginCookieValidity']
502 $cfg['LoginCookieValidity'] = 1800;
505 * how long login cookie should be stored (in seconds)
507 * @global integer $cfg['LoginCookieStore']
509 $cfg['LoginCookieStore'] = 0;
512 * whether to delete all login cookies on logout
514 * @global boolean $cfg['LoginCookieDeleteAll']
516 $cfg['LoginCookieDeleteAll'] = true;
519 * whether to enable the "database search" feature or not
521 * @global boolean $cfg['UseDbSearch']
523 $cfg['UseDbSearch'] = true;
526 * if set to true, PMA continues computing multiple-statement queries
527 * even if one of the queries failed
529 * @global boolean $cfg['IgnoreMultiSubmitErrors']
531 $cfg['IgnoreMultiSubmitErrors'] = false;
534 * if set to true, PMA will show the affected rows of EACH statement on
535 * multiple-statement queries. See the libraries/import.php file for
536 * hard coded defaults on how many queries a statement may contain!
538 * @global boolean $cfg['VerboseMultiSubmit']
540 $cfg['VerboseMultiSubmit'] = true;
543 * allow login to any user entered server in cookie based authentication
545 * @global boolean $cfg['AllowArbitraryServer']
547 $cfg['AllowArbitraryServer'] = false;
550 /*******************************************************************************
551 * Error handler configuration
553 * this configures phpMyAdmins own error handler, it is used to avoid information
554 * dislcosure, gather errors for logging, reporting and displaying
556 * @global array $cfg['Error_Handler']
558 $cfg['Error_Handler'] = array();
561 * whether to display errors or not
563 * this does not affect errors of type E_USER_*
565 * @global boolean $cfg['Error_Handler']['display']
567 $cfg['Error_Handler']['display'] = false;
570 * where to log errors, false or empty to disable
573 * // EXAMPLE log to std PHP error log
574 * $cfg['Error_Handler']['log'] = array(0);
575 * // EXAMPLE mail errors
576 * $cfg['Error_Handler']['log'] = array(1, 'admin@example.org');
577 * // EXAMPLE append to specific file
578 * $cfg['Error_Handler']['log'] = array(3, '/var/log/phpmyadmin_error.log');
581 * @see http://php.net/error_log
582 * @global string $cfg['Error_Handler']['log']
584 $cfg['Error_Handler']['log'] = false;
587 * gather all errors in session to be displayed on a error reporting page
588 * for viewing and/or sending to phpMyAdmin developer team
590 * @global boolean $cfg['Error_Handler']['gather']
592 $cfg['Error_Handler']['gather'] = false;
595 /*******************************************************************************
600 * use a select-based menu and display only the current tables in the left frame.
602 * @global boolean $cfg['LeftFrameLight']
604 $cfg['LeftFrameLight'] = true;
607 * turn the select-based light menu into a tree
609 * @global boolean $cfg['LeftFrameDBTree']
611 $cfg['LeftFrameDBTree'] = true;
614 * the separator to sub-tree the select-based light menu tree
616 * @global string $cfg['LeftFrameDBSeparator']
618 $cfg['LeftFrameDBSeparator'] = '_';
621 * Which string will be used to generate table prefixes
622 * to split/nest tables into multiple categories
624 * @global string $cfg['LeftFrameTableSeparator']
626 $cfg['LeftFrameTableSeparator']= '__';
629 * How many sublevels should be displayed when splitting up tables by the above Separator
631 * @global integer $cfg['LeftFrameTableLevel']
633 $cfg['LeftFrameTableLevel'] = 1;
636 * display table comment as tooltip in left frame
638 * @global boolean $cfg['ShowTooltip']
640 $cfg['ShowTooltip'] = true;
643 * if ShowToolTip is enabled, this defines that table/db comments
645 * @global boolean $cfg['ShowTooltipAliasDB']
647 $cfg['ShowTooltipAliasDB'] = false;
650 * are shown (in the left menu and db_structure) instead of table/db names.
651 * Setting ShowTooltipAliasTB to 'nested' will only use the Aliases for nested
652 * descriptors, not the table itself.
654 * @global boolean $cfg['ShowTooltipAliasTB']
656 $cfg['ShowTooltipAliasTB'] = false;
659 * display logo at top of left frame
661 * @global boolean $cfg['LeftDisplayLogo']
663 $cfg['LeftDisplayLogo'] = true;
666 * where should logo link point to (can also contain an external URL)
668 * @global string $cfg['LeftLogoLink']
670 $cfg['LeftLogoLink'] = 'main.php';
673 * whether to open the linked page in the main window ('main') or
674 * in a new window ('new')
676 * @global string $cfg['LeftLogoLinkWindow']
678 $cfg['LeftLogoLinkWindow'] = 'main';
681 * display server choice at top of left frame
683 * @global boolean $cfg['LeftDisplayServers']
685 $cfg['LeftDisplayServers'] = false;
688 * server choice as links
690 * @global boolean $cfg['DisplayServersList']
692 $cfg['DisplayServersList'] = false;
695 * database choice in light as links
697 * @global boolean $cfg['DisplayDatabasesList']
699 $cfg['DisplayDatabasesList'] = 'auto';
702 * target of the navigation panel quick access icon
705 * 'tbl_structure.php' = fields list
706 * 'tbl_sql.php' = SQL form
707 * 'tbl_select.php' = search page
708 * 'tbl_change.php' = insert row page
709 * 'sql.php' = browse page
711 * @global string $cfg['LeftDefaultTabTable']
713 $cfg['LeftDefaultTabTable'] = 'tbl_structure.php';
716 /*******************************************************************************
717 * In the main frame, at startup...
721 * allow to display statistics and space usage in the pages about database
722 * details and table properties
724 * @global boolean $cfg['ShowStats']
726 $cfg['ShowStats'] = true;
731 * @global boolean $cfg['ShowPhpInfo']
733 $cfg['ShowPhpInfo'] = false;
736 * show MySQL server information
738 * @global boolean $cfg['ShowServerInfo']
740 $cfg['ShowServerInfo'] = true;
743 * show change password link
745 * @global boolean $cfg['ShowChgPassword']
747 $cfg['ShowChgPassword'] = false;
750 * show create database form
752 * @global boolean $cfg['ShowCreateDb']
754 $cfg['ShowCreateDb'] = true;
757 * suggest a new DB name if possible (false = keep empty)
759 * @global boolean $cfg['SuggestDBName']
761 $cfg['SuggestDBName'] = true;
764 /*******************************************************************************
769 * Use icons instead of text for the navigation bar buttons
770 * and on right panel top menu (server db table) (true|false|'both')
772 * @global string $cfg['NavigationBarIconic']
774 $cfg['NavigationBarIconic'] = 'both';
777 * allows to display all the rows
779 * @global boolean $cfg['ShowAll']
781 $cfg['ShowAll'] = false;
784 * maximum number of rows to display
786 * @global integer $cfg['MaxRows']
788 $cfg['MaxRows'] = 30;
791 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
792 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
793 * ascending order else-)
795 * @global string $cfg['Order']
797 $cfg['Order'] = 'ASC';
800 /*******************************************************************************
805 * disallow editing of binary fields
807 * false allow editing
808 * 'blob' allow editing except for BLOB fields
809 * 'all' disallow editing
811 * @global string $cfg['ProtectBinary']
813 $cfg['ProtectBinary'] = 'blob';
816 * Display the function fields in edit/insert mode
818 * @global boolean $cfg['ShowFunctionFields']
820 $cfg['ShowFunctionFields'] = true;
823 * Which editor should be used for CHAR/VARCHAR fields:
824 * input - allows limiting of input length
825 * textarea - allows newlines in fields
827 * @global string $cfg['CharEditing']
829 $cfg['CharEditing'] = 'input';
832 * How many rows can be inserted at one time
834 * @global integer $cfg['InsertRows']
836 $cfg['InsertRows'] = 2;
839 * Sort order for items in a foreign-key drop-down list.
840 * 'content' is the referenced data, 'id' is the key value.
842 * @global array $cfg['ForeignKeyDropdownOrder']
844 $cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
847 * A drop-down list will be used if fewer items are present
849 * @global integer $cfg['ForeignKeyMaxLimit']
851 $cfg['ForeignKeyMaxLimit'] = 100;
854 /*******************************************************************************
855 * For the export features...
859 * Allow the use of zip/gzip/bzip
861 * @global boolean $cfg['ZipDump']
863 $cfg['ZipDump'] = true;
868 * @global boolean $cfg['GZipDump']
870 $cfg['GZipDump'] = true;
875 * @global boolean $cfg['BZipDump']
877 $cfg['BZipDump'] = true;
880 * Will compress gzip/bzip2 exports on fly without need for much memory.
881 * If you encounter problems with created gzip/bzip2 files disable this feature.
883 * @global boolean $cfg['CompressOnFly']
885 $cfg['CompressOnFly'] = true;
888 /*******************************************************************************
889 * Tabs display settings
893 * use graphically less intense menu tabs
895 * @global boolean $cfg['LightTabs']
897 $cfg['LightTabs'] = false;
900 * Use icons instead of text for the table display of a database (true|false|'both')
902 * @global boolean $cfg['PropertiesIconic']
904 $cfg['PropertiesIconic'] = true;
907 * How many columns should be used for table display of a database?
908 * (a value larger than 1 results in some information being hidden)
910 * @global integer $cfg['PropertiesNumColumns']
912 $cfg['PropertiesNumColumns'] = 1;
916 * 'main.php' = the welcome page
917 * (recommended for multiuser setups)
918 * 'server_databases.php' = list of databases
919 * 'server_status.php' = runtime information
920 * 'server_variables.php' = MySQL server variables
921 * 'server_privileges.php' = user management
922 * 'server_processlist.php' = process list
924 * @global string $cfg['DefaultTabServer']
926 $cfg['DefaultTabServer'] = 'main.php';
930 * 'db_structure.php' = tables list
931 * 'db_sql.php' = SQL form
932 * 'db_search.php' = search query
933 * 'db_operations.php' = operations on database
935 * @global string $cfg['DefaultTabDatabase']
937 $cfg['DefaultTabDatabase'] = 'db_structure.php';
941 * 'tbl_structure.php' = fields list
942 * 'tbl_sql.php' = SQL form
943 * 'tbl_select.php' = search page
944 * 'tbl_change.php' = insert row page
945 * 'sql.php' = browse page
947 * @global string $cfg['DefaultTabTable']
949 $cfg['DefaultTabTable'] = 'sql.php';
952 /*******************************************************************************
955 $cfg['Export'] = array();
958 * sql/latex/excel/csv/xml/xls/htmlexcel/htmlword/ods/odt
960 * @global string $cfg['Export']['format']
962 $cfg['Export']['format'] = 'sql';
965 * none/zip/gzip/bzip2
967 * @global string $cfg['Export']['compression']
969 $cfg['Export']['compression'] = 'none';
974 * @global boolean $cfg['Export']['asfile']
976 $cfg['Export']['asfile'] = false;
981 * @global string $cfg['Export']['charset']
983 $cfg['Export']['charset'] = '';
988 * @global boolean $cfg['Export']['onserver']
990 $cfg['Export']['onserver'] = false;
995 * @global boolean $cfg['Export']['onserver_overwrite']
997 $cfg['Export']['onserver_overwrite'] = false;
1002 * @global boolean $cfg['Export']['remember_file_template']
1004 $cfg['Export']['remember_file_template'] = true;
1009 * @global string $cfg['Export']['file_template_table']
1011 $cfg['Export']['file_template_table'] = '__TABLE__';
1016 * @global string $cfg['Export']['file_template_database']
1018 $cfg['Export']['file_template_database'] = '__DB__';
1023 * @global string $cfg['Export']['file_template_server']
1025 $cfg['Export']['file_template_server'] = '__SERVER__';
1030 * @global boolean $cfg['Export']['ods_columns']
1032 $cfg['Export']['ods_columns'] = false;
1037 * @global string $cfg['Export']['ods_null']
1039 $cfg['Export']['ods_null'] = 'NULL';
1044 * @global boolean $cfg['Export']['odt_structure']
1046 $cfg['Export']['odt_structure'] = true;
1051 * @global boolean $cfg['Export']['odt_data']
1053 $cfg['Export']['odt_data'] = true;
1058 * @global boolean $cfg['Export']['odt_columns']
1060 $cfg['Export']['odt_columns'] = true;
1065 * @global boolean $cfg['Export']['odt_relation']
1067 $cfg['Export']['odt_relation'] = true;
1072 * @global boolean $cfg['Export']['odt_comments']
1074 $cfg['Export']['odt_comments'] = true;
1079 * @global boolean $cfg['Export']['odt_mime']
1081 $cfg['Export']['odt_mime'] = true;
1086 * @global string $cfg['Export']['odt_null']
1088 $cfg['Export']['odt_null'] = 'NULL';
1093 * @global boolean $cfg['Export']['htmlexcel_columns']
1095 $cfg['Export']['htmlexcel_columns'] = false;
1100 * @global string $cfg['Export']['htmlexcel_null']
1102 $cfg['Export']['htmlexcel_null'] = 'NULL';
1107 * @global boolean $cfg['Export']['htmlword_structure']
1109 $cfg['Export']['htmlword_structure'] = true;
1114 * @global boolean $cfg['Export']['htmlword_data']
1116 $cfg['Export']['htmlword_data'] = true;
1121 * @global boolean $cfg['Export']['htmlword_columns']
1123 $cfg['Export']['htmlword_columns'] = false;
1128 * @global string $cfg['Export']['htmlword_null']
1130 $cfg['Export']['htmlword_null'] = 'NULL';
1135 * @global boolean $cfg['Export']['texytext_structure']
1137 $cfg['Export']['texytext_structure'] = TRUE;
1142 * @global boolean $cfg['Export']['texytext_data']
1144 $cfg['Export']['texytext_data'] = TRUE;
1149 * @global boolean $cfg['Export']['texytext_columns']
1151 $cfg['Export']['texytext_columns'] = FALSE;
1156 * @global string $cfg['Export']['texytext_null']
1158 $cfg['Export']['texytext_null'] = 'NULL';
1163 * @global boolean $cfg['Export']['xls_columns']
1165 $cfg['Export']['xls_columns'] = false;
1170 * @global string $cfg['Export']['xls_null']
1172 $cfg['Export']['xls_null'] = 'NULL';
1177 * @global boolean $cfg['Export']['csv_columns']
1179 $cfg['Export']['csv_columns'] = false;
1184 * @global string $cfg['Export']['csv_null']
1186 $cfg['Export']['csv_null'] = 'NULL';
1191 * @global string $cfg['Export']['csv_separator']
1193 $cfg['Export']['csv_separator'] = ';';
1198 * @global string $cfg['Export']['csv_enclosed']
1200 $cfg['Export']['csv_enclosed'] = '"';
1205 * @global string $cfg['Export']['csv_escaped']
1207 $cfg['Export']['csv_escaped'] = '\\';
1212 * @global string $cfg['Export']['csv_terminated']
1214 $cfg['Export']['csv_terminated'] = 'AUTO';
1219 * @global boolean $cfg['Export']['excel_columns']
1221 $cfg['Export']['excel_columns'] = false;
1226 * @global string $cfg['Export']['excel_null']
1228 $cfg['Export']['excel_null'] = 'NULL';
1233 * @global string $cfg['Export']['excel_edition']
1235 $cfg['Export']['excel_edition'] = 'win';
1240 * @global boolean $cfg['Export']['latex_structure']
1242 $cfg['Export']['latex_structure'] = true;
1247 * @global boolean $cfg['Export']['latex_data']
1249 $cfg['Export']['latex_data'] = true;
1254 * @global boolean $cfg['Export']['latex_columns']
1256 $cfg['Export']['latex_columns'] = true;
1261 * @global boolean $cfg['Export']['latex_relation']
1263 $cfg['Export']['latex_relation'] = true;
1268 * @global boolean $cfg['Export']['latex_comments']
1270 $cfg['Export']['latex_comments'] = true;
1275 * @global boolean $cfg['Export']['latex_mime']
1277 $cfg['Export']['latex_mime'] = true;
1282 * @global string $cfg['Export']['latex_null']
1284 $cfg['Export']['latex_null'] = '\textit{NULL}';
1289 * @global boolean $cfg['Export']['latex_caption']
1291 $cfg['Export']['latex_caption'] = true;
1296 * @global string $cfg['Export']['latex_structure_caption']
1298 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1303 * @global string $cfg['Export']['latex_structure_continued_caption']
1305 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
1310 * @global string $cfg['Export']['latex_data_caption']
1312 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1317 * @global string $cfg['Export']['latex_data_continued_caption']
1319 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1324 * @global string $cfg['Export']['latex_data_label']
1326 $cfg['Export']['latex_data_label'] = 'tab:__TABLE__-data';
1331 * @global string $cfg['Export']['latex_structure_label']
1333 $cfg['Export']['latex_structure_label'] = 'tab:__TABLE__-structure';
1338 * @global boolean $cfg['Export']['sql_structure']
1340 $cfg['Export']['sql_structure'] = true;
1345 * @global boolean $cfg['Export']['sql_data']
1347 $cfg['Export']['sql_data'] = true;
1352 * @global string $cfg['Export']['sql_compatibility']
1354 $cfg['Export']['sql_compatibility'] = 'NONE';
1359 * @global boolean $cfg['Export']['sql_disable_fk']
1361 $cfg['Export']['sql_disable_fk'] = false;
1366 * @global boolean $cfg['Export']['sql_use_transaction']
1368 $cfg['Export']['sql_use_transaction'] = false;
1373 * @global boolean $cfg['Export']['sql_drop_database']
1375 $cfg['Export']['sql_drop_database'] = false;
1380 * @global boolean $cfg['Export']['sql_drop_table']
1382 $cfg['Export']['sql_drop_table'] = false;
1387 * @global boolean $cfg['Export']['sql_if_not_exists']
1388 * true by default for correct behavior when dealing with exporting
1389 * of VIEWs and the stand-in table
1391 $cfg['Export']['sql_if_not_exists'] = true;
1396 * @global boolean $cfg['Export']['sql_procedure_function']
1398 $cfg['Export']['sql_procedure_function'] = false;
1403 * @global boolean $cfg['Export']['sql_auto_increment']
1405 $cfg['Export']['sql_auto_increment'] = true;
1410 * @global boolean $cfg['Export']['sql_backquotes']
1412 $cfg['Export']['sql_backquotes'] = true;
1417 * @global boolean $cfg['Export']['sql_dates']
1419 $cfg['Export']['sql_dates'] = false;
1424 * @global boolean $cfg['Export']['sql_relation']
1426 $cfg['Export']['sql_relation'] = false;
1431 * @global boolean $cfg['Export']['sql_columns']
1433 $cfg['Export']['sql_columns'] = true;
1438 * @global boolean $cfg['Export']['sql_delayed']
1440 $cfg['Export']['sql_delayed'] = false;
1445 * @global boolean $cfg['Export']['sql_ignore']
1447 $cfg['Export']['sql_ignore'] = false;
1452 * @global boolean $cfg['Export']['sql_hex_for_blob']
1454 $cfg['Export']['sql_hex_for_blob'] = true;
1457 * insert/update/replace
1459 * @global string $cfg['Export']['sql_type']
1461 $cfg['Export']['sql_type'] = 'insert';
1466 * @global boolean $cfg['Export']['sql_extended']
1468 $cfg['Export']['sql_extended'] = true;
1473 * @global integer $cfg['Export']['sql_max_query_size']
1475 $cfg['Export']['sql_max_query_size'] = 50000;
1480 * @global boolean $cfg['Export']['sql_comments']
1482 $cfg['Export']['sql_comments'] = false;
1487 * @global boolean $cfg['Export']['sql_mime']
1489 $cfg['Export']['sql_mime'] = false;
1492 * \n is replaced by new line
1494 * @global string $cfg['Export']['sql_header_comment']
1496 $cfg['Export']['sql_header_comment'] = '';
1501 * @global boolean $cfg['Export']['pdf_structure']
1503 $cfg['Export']['pdf_structure'] = false;
1508 * @global boolean $cfg['Export']['pdf_data']
1510 $cfg['Export']['pdf_data'] = true;
1515 * @global string $cfg['Export']['pdf_report_title']
1517 $cfg['Export']['pdf_report_title'] = '';
1520 /*******************************************************************************
1523 $cfg['Import'] = array();
1528 * @global string $cfg['Import']['format']
1530 $cfg['Import']['format'] = 'sql';
1535 * @global boolean $cfg['Import']['allow_interrupt']
1537 $cfg['Import']['allow_interrupt'] = true;
1542 * @global integer $cfg['Import']['skip_queries']
1544 $cfg['Import']['skip_queries'] = '0';
1549 * @global string $cfg['Import']['sql_compatibility']
1551 $cfg['Import']['sql_compatibility'] = 'NONE';
1556 * @global boolean $cfg['Import']['csv_replace']
1558 $cfg['Import']['csv_replace'] = false;
1563 * @global string $cfg['Import']['csv_terminated']
1565 $cfg['Import']['csv_terminated'] = ';';
1570 * @global string $cfg['Import']['csv_enclosed']
1572 $cfg['Import']['csv_enclosed'] = '"';
1577 * @global string $cfg['Import']['csv_escaped']
1579 $cfg['Import']['csv_escaped'] = '\\';
1584 * @global string $cfg['Import']['csv_new_line']
1586 $cfg['Import']['csv_new_line'] = 'auto';
1591 * @global string $cfg['Import']['csv_columns']
1593 $cfg['Import']['csv_columns'] = '';
1598 * @global boolean $cfg['Import']['ldi_replace']
1600 $cfg['Import']['ldi_replace'] = false;
1605 * @global string $cfg['Import']['ldi_terminated']
1607 $cfg['Import']['ldi_terminated'] = ';';
1612 * @global string $cfg['Import']['ldi_enclosed']
1614 $cfg['Import']['ldi_enclosed'] = '"';
1619 * @global string $cfg['Import']['ldi_escaped']
1621 $cfg['Import']['ldi_escaped'] = '\\';
1626 * @global string $cfg['Import']['ldi_new_line']
1628 $cfg['Import']['ldi_new_line'] = 'auto';
1633 * @global string $cfg['Import']['ldi_columns']
1635 $cfg['Import']['ldi_columns'] = '';
1638 * 'auto' for auto-detection, true or false for forcing
1640 * @global string $cfg['Import']['ldi_local_option']
1642 $cfg['Import']['ldi_local_option'] = 'auto';
1645 * Link to the official MySQL documentation.
1646 * Be sure to include no trailing slash on the path.
1647 * See http://dev.mysql.com/doc/ for more information
1648 * about MySQL manuals and their types.
1650 * @global string $cfg['MySQLManualBase']
1652 $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
1655 * Type of MySQL documentation:
1656 * viewable - "viewable online", current one used on MySQL website
1657 * searchable - "Searchable, with user comments"
1658 * chapters - "HTML, one page per chapter"
1659 * chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
1660 * big - "HTML, all on one page"
1661 * old - old style used in phpMyAdmin 2.3.0 and sooner
1662 * none - do not show documentation links
1664 * @global string $cfg['MySQLManualType']
1666 $cfg['MySQLManualType'] = 'viewable';
1669 /*******************************************************************************
1676 * @global array $cfg['PDFPageSizes']
1678 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
1683 * @global string $cfg['PDFDefaultPageSize']
1685 $cfg['PDFDefaultPageSize'] = 'A4';
1688 /*******************************************************************************
1689 * Language and character set conversion settings
1693 * Default language to use, if not browser-defined or user-defined
1695 * @global string $cfg['DefaultLang']
1697 $cfg['DefaultLang'] = 'en-utf-8';
1700 * Default connection collation
1702 * @global string $cfg['DefaultConnectionCollation']
1704 $cfg['DefaultConnectionCollation'] = 'utf8_general_ci';
1707 * Force: always use this language - must be defined in
1708 * libraries/select_lang.lib.php
1709 * $cfg['Lang'] = 'en-utf-8';
1711 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
1714 * @global string $cfg['FilterLanguages']
1716 $cfg['FilterLanguages'] = '';
1719 * Default character set to use for recoding of MySQL queries, does not take
1720 * any effect when character sets recoding is switched off by
1721 * $cfg['AllowAnywhereRecoding'] or in language file
1722 * (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
1724 * @global string $cfg['DefaultCharset']
1726 $cfg['DefaultCharset'] = 'utf-8';
1729 * Allow character set recoding of MySQL queries, must be also enabled in language
1730 * file to make harder using other language files than Unicode.
1731 * Default value is false to avoid problems on servers without the iconv
1732 * extension and where dl() is not supported
1734 * @global boolean $cfg['AllowAnywhereRecoding']
1736 $cfg['AllowAnywhereRecoding'] = false;
1739 * You can select here which functions will be used for character set conversion.
1740 * Possible values are:
1741 * auto - automatically use available one (first is tested iconv, then
1743 * iconv - use iconv or libiconv functions
1744 * recode - use recode_string function
1746 * @global string $cfg['RecodingEngine']
1748 $cfg['RecodingEngine'] = 'auto';
1751 * Specify some parameters for iconv used in character set conversion. See iconv
1752 * documentation for details:
1753 * http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
1755 * @global string $cfg['IconvExtraParams']
1757 $cfg['IconvExtraParams'] = '//TRANSLIT';
1760 * Available character sets for MySQL conversion. currently contains all which could
1761 * be found in lang/* files and few more.
1762 * Character sets will be shown in same order as here listed, so if you frequently
1763 * use some of these move them to the top.
1765 * @global array $cfg['AvailableCharsets']
1767 $cfg['AvailableCharsets'] = array(
1802 /*******************************************************************************
1803 * Customization & design
1805 * The graphical settings are now located in themes/theme-name/layout.inc.php
1809 * enable the left panel pointer
1810 * (used when LeftFrameLight is false)
1811 * see also LeftPointerColor
1814 * @global boolean $cfg['LeftPointerEnable']
1816 $cfg['LeftPointerEnable'] = true;
1819 * enable the browse pointer
1820 * see also BrowsePointerColor
1823 * @global boolean $cfg['BrowsePointerEnable']
1825 $cfg['BrowsePointerEnable'] = true;
1828 * enable the browse marker
1829 * see also BrowseMarkerColor
1832 * @global boolean $cfg['BrowseMarkerEnable']
1834 $cfg['BrowseMarkerEnable'] = true;
1837 * textarea size (columns) in edit mode
1838 * (this value will be emphasized (*2) for SQL
1839 * query textareas and (*1.25) for query window)
1841 * @global integer $cfg['TextareaCols']
1843 $cfg['TextareaCols'] = 40;
1846 * textarea size (rows) in edit mode
1848 * @global integer $cfg['TextareaRows']
1850 $cfg['TextareaRows'] = 7;
1853 * double size of textarea size for LONGTEXT fields
1855 * @global boolean $cfg['LongtextDoubleTextarea']
1857 $cfg['LongtextDoubleTextarea'] = true;
1860 * auto-select when clicking in the textarea of the query-box
1862 * @global boolean $cfg['TextareaAutoSelect']
1864 $cfg['TextareaAutoSelect'] = false;
1867 * textarea size (columns) for CHAR/VARCHAR
1869 * @global integer $cfg['CharTextareaCols']
1871 $cfg['CharTextareaCols'] = 40;
1874 * textarea size (rows) for CHAR/VARCHAR
1876 * @global integer $cfg['CharTextareaRows']
1878 $cfg['CharTextareaRows'] = 2;
1881 * Enable Ctrl+Arrows moving between fields when editing?
1883 * @global boolean $cfg['CtrlArrowsMoving']
1885 $cfg['CtrlArrowsMoving'] = true;
1888 * Max field data length in browse mode for all non-numeric fields
1890 * @global integer $cfg['LimitChars']
1892 $cfg['LimitChars'] = 50;
1895 * show edit/delete links on left side of browse
1896 * (or at the top with vertical browse)
1898 * @global boolean $cfg['ModifyDeleteAtLeft']
1900 $cfg['ModifyDeleteAtLeft'] = true;
1903 * show edit/delete links on right side of browse
1904 * (or at the bottom with vertical browse)
1906 * @global boolean $cfg['ModifyDeleteAtRight']
1908 $cfg['ModifyDeleteAtRight'] = false;
1911 * default display direction (horizontal|vertical|horizontalflipped)
1913 * @global string $cfg['DefaultDisplay']
1915 $cfg['DefaultDisplay'] = 'horizontal';
1918 * default display direction for altering/creating columns (tbl_properties)
1919 * (horizontal|vertical|<number>)
1920 * number indicates maximal number for which vertical model is used
1922 * @global integer $cfg['DefaultPropDisplay']
1924 $cfg['DefaultPropDisplay'] = 3;
1927 * table-header rotation via faking or CSS? (css|fake)
1928 * NOTE: CSS only works in IE browsers!
1930 * @global string $cfg['HeaderFlipType']
1932 $cfg['HeaderFlipType'] = 'css';
1935 * shows stored relation-comments in 'browse' mode.
1937 * @global boolean $cfg['ShowBrowseComments']
1939 $cfg['ShowBrowseComments'] = true;
1942 * shows stored relation-comments in 'table property' mode.
1944 * @global boolean $cfg['ShowPropertyComments']
1946 $cfg['ShowPropertyComments']= true;
1949 * repeat header names every X cells? (0 = deactivate)
1951 * @global integer $cfg['RepeatCells']
1953 $cfg['RepeatCells'] = 100;
1956 * Set to true if Edit link should open the query to edit in the query window
1957 * (assuming JavaScript is enabled), and to false if we should edit in the right panel
1959 * @global boolean $cfg['EditInWindow']
1961 $cfg['EditInWindow'] = true;
1964 * Width of Query window
1966 * @global integer $cfg['QueryWindowWidth']
1968 $cfg['QueryWindowWidth'] = 550;
1971 * Height of Query window
1973 * @global integer $cfg['QueryWindowHeight']
1975 $cfg['QueryWindowHeight'] = 310;
1978 * Set to true if you want DB-based query history.If false, this utilizes
1979 * JS-routines to display query history (lost by window close)
1981 * @global boolean $cfg['QueryHistoryDB']
1983 $cfg['QueryHistoryDB'] = false;
1986 * which tab to display in the querywindow on startup
1987 * (sql|files|history|full)
1989 * @global string $cfg['QueryWindowDefTab']
1991 $cfg['QueryWindowDefTab'] = 'sql';
1994 * When using DB-based query history, how many entries should be kept?
1996 * @global integer $cfg['QueryHistoryMax']
1998 $cfg['QueryHistoryMax'] = 25;
2001 * Use MIME-Types (stored in column comments table) for
2003 * @global boolean $cfg['BrowseMIME']
2005 $cfg['BrowseMIME'] = true;
2008 * When approximate count < this, PMA will get exact count for table rows.
2010 * @global integer $cfg['MaxExactCount']
2012 $cfg['MaxExactCount'] = 20000;
2015 * Zero means that no row count is done for views; see the doc
2017 * @global integer $cfg['MaxExactCountViews']
2019 $cfg['MaxExactCountViews'] = 0;
2022 * Utilize DHTML/JS capabilities to allow WYSIWYG editing of
2023 * the PDF page editor. Requires an IE6/Gecko based browser.
2025 * @global boolean $cfg['WYSIWYG-PDF']
2027 $cfg['WYSIWYG-PDF'] = true;
2030 * Sort table and database in natural order
2032 * @global boolean $cfg['NaturalOrder']
2034 $cfg['NaturalOrder'] = true;
2037 * Initial state for sliders
2040 * @global string $cfg['InitialSlidersState']
2042 $cfg['InitialSlidersState'] = 'closed';
2046 //-----------------------------------------------------------------------------
2047 // custom-setup by mkkeck: 2004-05-04
2048 // some specials for new icons and scrolling
2050 * @todo 2004-05-08 rabus: We need to rearrange these variables.
2054 /*******************************************************************************
2055 * Window title settings
2059 * title of browser window when a table is selected
2061 * @global string $cfg['TitleTable']
2063 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2066 * title of browser window when a database is selected
2068 * @global string $cfg['TitleDatabase']
2070 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2073 * title of browser window when a server is selected
2075 * @global string $cfg['TitleServer']
2077 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2080 * title of browser window when nothing is selected
2081 * @global string $cfg['TitleDefault']
2083 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2086 * show some icons for warning, error and information messages (true|false)?
2088 * @global boolean $cfg['ErrorIconic']
2090 $cfg['ErrorIconic'] = true;
2093 * show icons in list on main page and on menu tabs (true|false)?
2095 * @global boolean $cfg['MainPageIconic']
2097 $cfg['MainPageIconic'] = true;
2100 * show help button instead of strDocu (true|false)?
2102 * @global boolean $cfg['ReplaceHelpImg']
2104 $cfg['ReplaceHelpImg'] = true;
2107 /*******************************************************************************
2112 * using themes manager please set up here the path to 'themes' else leave empty
2114 * @global string $cfg['ThemePath']
2116 $cfg['ThemePath'] = './themes';
2119 * if you want to use selectable themes and if ThemesPath not empty
2120 * set it to true, else set it to false (default is false);
2122 * @global boolean $cfg['ThemeManager']
2124 $cfg['ThemeManager'] = true;
2127 * set up default theme, if ThemePath not empty you can set up here an valid
2128 * path to themes or 'original' for the original pma-theme
2130 * @global string $cfg['ThemeDefault']
2132 $cfg['ThemeDefault'] = 'original';
2135 * allow different theme for each configured server
2137 * @global boolean $cfg['ThemePerServer']
2139 $cfg['ThemePerServer'] = false;
2142 /*******************************************************************************
2148 * %d will be replaced by the database name.
2149 * %t will be replaced by the table name.
2150 * %f will be replaced by a list of field names.
2151 * (%t and %f only applies to DefaultQueryTable)
2153 * @global string $cfg['DefaultQueryTable']
2155 $cfg['DefaultQueryTable'] = 'SELECT * FROM %t WHERE 1';
2159 * %d will be replaced by the database name.
2160 * %t will be replaced by the table name.
2161 * %f will be replaced by a list of field names.
2162 * (%t and %f only applies to DefaultQueryTable)
2164 * @global string $cfg['DefaultQueryDatabase']
2166 $cfg['DefaultQueryDatabase'] = '';
2169 /*******************************************************************************
2170 * SQL Query box settings
2171 * These are the links display in all of the SQL Query boxes
2173 * @global array $cfg['SQLQuery']
2175 $cfg['SQLQuery'] = array();
2178 * Edit link to change a query
2180 * @global boolean $cfg['SQLQuery']['Edit']
2182 $cfg['SQLQuery']['Edit'] = true;
2185 * EXPLAIN on SELECT queries
2187 * @global boolean $cfg['SQLQuery']['Explain']
2189 $cfg['SQLQuery']['Explain'] = true;
2192 * Wrap a query in PHP
2194 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2196 $cfg['SQLQuery']['ShowAsPHP'] = true;
2199 * Validate a query (see $cfg['SQLValidator'] as well)
2201 * @global boolean $cfg['SQLQuery']['Validate']
2203 $cfg['SQLQuery']['Validate'] = false;
2206 * Refresh the results page
2208 * @global boolean $cfg['SQLQuery']['Refresh']
2210 $cfg['SQLQuery']['Refresh'] = true;
2213 /*******************************************************************************
2214 * Web server upload/save/import directories
2218 * Directory for uploaded files that can be executed by phpMyAdmin.
2219 * For example './upload'. Leave empty for no upload directory support.
2220 * Use %u for username inclusion.
2222 * @global string $cfg['UploadDir']
2224 $cfg['UploadDir'] = '';
2227 * Directory where phpMyAdmin can save exported data on server.
2228 * For example './save'. Leave empty for no save directory support.
2229 * Use %u for username inclusion.
2231 * @global string $cfg['SaveDir']
2233 $cfg['SaveDir'] = '';
2236 * Directory where phpMyAdmin can save temporary files.
2237 * This is needed for MS Excel export, see documentation how to enable that.
2239 * @global string $cfg['TempDir']
2241 $cfg['TempDir'] = '';
2249 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2250 * which is a bit expensive for PHP < 4.3.0, but it is the only safe way how to
2251 * determine GD version.
2253 * @global string $cfg['GD2Available']
2255 $cfg['GD2Available'] = 'auto';
2258 * List of trusted proxies for IP allow/deny
2260 * @global array $cfg['TrustedProxies']
2262 $cfg['TrustedProxies'] = array();
2265 * We normally check the permissions on the configuration file to ensure
2266 * it's not world writable. However, phpMyAdmin could be installed on
2267 * a NTFS filesystem mounted on a non-Windows server, in which case the
2268 * permissions seems wrong but in fact cannot be detected. In this case
2269 * a sysadmin would set the following to false.
2271 $cfg['CheckConfigurationPermissions'] = true;
2273 /*******************************************************************************
2274 * SQL Parser Settings
2276 * @global array $cfg['SQP']
2278 $cfg['SQP'] = array();
2281 * Pretty-printing style to use on queries (html, text, none)
2283 * @global string $cfg['SQP']['fmtType']
2285 $cfg['SQP']['fmtType'] = 'html';
2288 * Amount to indent each level (floats are valid)
2290 * @global integer $cfg['SQP']['fmtInd']
2292 $cfg['SQP']['fmtInd'] = '1';
2295 * Units for indenting each level (CSS Types - {em, px, pt})
2297 * @global string $cfg['SQP']['fmtIndUnit']
2299 $cfg['SQP']['fmtIndUnit'] = 'em';
2302 /*******************************************************************************
2303 * If you wish to use the SQL Validator service, you should be aware of the
2305 * All SQL statements are stored anonymously for statistical purposes.
2306 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
2307 * All rights reserved.
2309 * @global array $cfg['SQLValidator']
2311 $cfg['SQLValidator'] = array();
2314 * Make the SQL Validator available
2316 * @global boolean $cfg['SQLValidator']['use']
2318 $cfg['SQLValidator']['use'] = false;
2321 * If you have a custom username, specify it here (defaults to anonymous)
2323 * @global string $cfg['SQLValidator']['username']
2325 $cfg['SQLValidator']['username'] = '';
2328 * Password for username
2330 * @global string $cfg['SQLValidator']['password']
2332 $cfg['SQLValidator']['password'] = '';
2335 /*******************************************************************************
2338 * @global array $cfg['DBG']
2340 $cfg['DBG'] = array();
2343 * Output executed queries and their execution times
2345 * @global boolean $cfg['DBG']['enable']
2347 $cfg['DBG']['sql'] = false;
2350 * Make the DBG stuff available
2351 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
2353 * @global boolean $cfg['DBG']['enable']
2355 $cfg['DBG']['php'] = false;
2358 * Produce profiling results of PHP
2360 * @global boolean $cfg['DBG']['profile']['enable']
2362 $cfg['DBG']['profile']['enable'] = false;
2365 * Threshold of long running code to display
2366 * Anything below the threshold is not displayed
2368 * @global float $cfg['DBG']['profile']['threshold']
2370 $cfg['DBG']['profile']['threshold'] = 0.5;
2373 /*******************************************************************************
2379 * VARCHAR, TINYINT, TEXT and DATE are listed first, based on estimated popularity
2381 * @global array $cfg['ColumnTypes']
2383 $cfg['ColumnTypes'] = array(
2410 'DATE and TIME' => array(
2448 'GEOMETRYCOLLECTION',
2455 * @global array $cfg['AttributeTypes']
2457 $cfg['AttributeTypes'] = array(
2461 'UNSIGNED ZEROFILL',
2462 'on update CURRENT_TIMESTAMP',
2466 if ($cfg['ShowFunctionFields']) {
2468 * Available functions
2470 * @global array $cfg['Functions']
2472 $cfg['Functions'] = array(
2545 * Which column types will be mapped to which Group?
2547 * @global array $cfg['RestrictColumnTypes']
2549 $cfg['RestrictColumnTypes'] = array(
2550 'TINYINT' => 'FUNC_NUMBER',
2551 'SMALLINT' => 'FUNC_NUMBER',
2552 'MEDIUMINT' => 'FUNC_NUMBER',
2553 'INT' => 'FUNC_NUMBER',
2554 'BIGINT' => 'FUNC_NUMBER',
2555 'DECIMAL' => 'FUNC_NUMBER',
2556 'FLOAT' => 'FUNC_NUMBER',
2557 'DOUBLE' => 'FUNC_NUMBER',
2558 'REAL' => 'FUNC_NUMBER',
2559 'BIT' => 'FUNC_NUMBER',
2560 'BOOL' => 'FUNC_NUMBER',
2561 'SERIAL' => 'FUNC_NUMBER',
2563 'DATE' => 'FUNC_DATE',
2564 'DATETIME' => 'FUNC_DATE',
2565 'TIMESTAMP' => 'FUNC_DATE',
2566 'TIME' => 'FUNC_DATE',
2567 'YEAR' => 'FUNC_DATE',
2569 'CHAR' => 'FUNC_CHAR',
2570 'VARCHAR' => 'FUNC_CHAR',
2571 'TINYTEXT' => 'FUNC_CHAR',
2572 'TEXT' => 'FUNC_CHAR',
2573 'MEDIUMTEXT' => 'FUNC_CHAR',
2574 'LONGTEXT' => 'FUNC_CHAR',
2575 'BINARY' => 'FUNC_CHAR',
2576 'VARBINARY' => 'FUNC_CHAR',
2577 'TINYBLOB' => 'FUNC_CHAR',
2578 'MEDIUMBLOB' => 'FUNC_CHAR',
2579 'BLOB' => 'FUNC_CHAR',
2580 'LONGBLOB' => 'FUNC_CHAR',
2584 'GEOMETRY' => 'FUNC_SPATIAL',
2585 'POINT' => 'FUNC_SPATIAL',
2586 'LINESTRING' => 'FUNC_SPATIAL',
2587 'POLYGON' => 'FUNC_SPATIAL',
2588 'MULTIPOINT' => 'FUNC_SPATIAL',
2589 'MULTILINESTRING' => 'FUNC_SPATIAL',
2590 'MULTIPOLYGON' => 'FUNC_SPATIAL',
2591 'GEOMETRYCOLLECTION' => 'FUNC_SPATIAL',
2596 * Map above defined groups to any function
2598 * @global array $cfg['RestrictFunctions']
2600 $cfg['RestrictFunctions'] = array(
2601 'FUNC_CHAR' => array(
2627 'FUNC_DATE' => array(
2642 'FUNC_NUMBER' => array(
2679 'FUNC_SPATIAL' => array(
2702 * Default functions for above defined groups
2704 * @global array $cfg['DefaultFunctions']
2706 $cfg['DefaultFunctions'] = array(
2709 'FUNC_NUMBER' => '',
2710 'first_timestamp' => 'NOW',
2711 'pk_char36' => 'UUID',
2720 * @global array $cfg['NumOperators']
2722 $cfg['NumOperators'] = array(
2736 * @global array $cfg['TextOperators']
2738 $cfg['TextOperators'] = array(
2751 * @global array $cfg['EnumOperators']
2753 $cfg['EnumOperators'] = array(
2761 * @global array $cfg['SetOperators']
2763 $cfg['SetOperators'] = array(
2771 * @global array $cfg['NullOperators']
2773 $cfg['NullOperators'] = array(
2781 * @global array $cfg['UnaryOperators']
2783 $cfg['UnaryOperators'] = array(