3 // vim: expandtab sw=4 ts=4 sts=4:
6 * phpMyAdmin Configuration File
8 * All directives are explained in Documentation.html
13 * Sets the php error reporting - Please do not change this line!
15 if (!isset($old_error_reporting)) {
16 error_reporting(E_ALL
);
17 @ini_set
('display_errors', '1');
24 * Complete the variable below with the full url ie
25 * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
27 * It must contain characters that are valid for a URL, and the path is
28 * case sensitive on some Web servers, for example Unix-based servers.
30 * In most cases you can leave this variable empty, as the correct value
31 * will be detected automatically. However, we recommend that you do
32 * test to see that the auto-detection code works in your system. A good
33 * test is to browse a table, then edit a row and save it. There will be
34 * an error message if phpMyAdmin cannot auto-detect the correct value.
36 * If the auto-detection code does work properly, you can set to TRUE the
37 * $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
39 $cfg['PmaAbsoluteUri'] = '';
43 * Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
44 * You should use this if and ONLY if the PmaAbsoluteUri auto-detection
47 $cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;
50 * Disable the default warning that is displayed on the DB Details Structure page if
51 * any of the required Tables for the relationfeatures could not be found
53 $cfg['PmaNoRelation_DisableWarning'] = FALSE;
57 * Server(s) configuration
60 // The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
61 // You can disable a server config entry by setting host to ''.
63 $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
64 $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
65 $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
66 $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
67 $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
68 // (Both are experimental and require PHP >= 4.3.0)
69 $cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
70 // (this user must have read-only
71 $cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
72 // and "mysql/db" tables)
73 $cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
74 $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
75 $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
76 // with 'config' auth_type)
77 $cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
78 // this db is displayed
80 // It may also be an array
82 $cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
84 $cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
85 // - leave blank for no support
86 $cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table - leave blank for no bookmark support
87 $cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
88 // - leave blank for no relation-links support
89 $cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields
90 // - leave blank for no display fields support
91 $cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF
92 // schema - leave blank for no PDF schema support
93 $cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf
94 // - leave blank if you don't want to use this
95 $cfg['Servers'][$i]['column_comments'] // table to store columncomments
96 = ''; // - leave blank if you don't want to use this
97 $cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use
99 $cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults
104 $cfg['Servers'][$i]['host'] = '';
105 $cfg['Servers'][$i]['port'] = '';
106 $cfg['Servers'][$i]['socket'] = '';
107 $cfg['Servers'][$i]['connect_type'] = 'tcp';
108 $cfg['Servers'][$i]['compress'] = FALSE;
109 $cfg['Servers'][$i]['controluser'] = '';
110 $cfg['Servers'][$i]['controlpass'] = '';
111 $cfg['Servers'][$i]['auth_type'] = 'config';
112 $cfg['Servers'][$i]['user'] = 'root';
113 $cfg['Servers'][$i]['password'] = '';
114 $cfg['Servers'][$i]['only_db'] = '';
115 $cfg['Servers'][$i]['verbose'] = '';
116 $cfg['Servers'][$i]['pmadb'] = '';
117 $cfg['Servers'][$i]['bookmarktable'] = '';
118 $cfg['Servers'][$i]['relation'] = '';
119 $cfg['Servers'][$i]['table_info'] = '';
120 $cfg['Servers'][$i]['table_coords'] = '';
121 $cfg['Servers'][$i]['pdf_pages'] = '';
122 $cfg['Servers'][$i]['column_comments'] = '';
123 $cfg['Servers'][$i]['AllowDeny']['order']
125 $cfg['Servers'][$i]['AllowDeny']['rules']
129 $cfg['Servers'][$i]['host'] = '';
130 $cfg['Servers'][$i]['port'] = '';
131 $cfg['Servers'][$i]['socket'] = '';
132 $cfg['Servers'][$i]['connect_type'] = 'tcp';
133 $cfg['Servers'][$i]['compress'] = FALSE;
134 $cfg['Servers'][$i]['controluser'] = '';
135 $cfg['Servers'][$i]['controlpass'] = '';
136 $cfg['Servers'][$i]['auth_type'] = 'config';
137 $cfg['Servers'][$i]['user'] = 'root';
138 $cfg['Servers'][$i]['password'] = '';
139 $cfg['Servers'][$i]['only_db'] = '';
140 $cfg['Servers'][$i]['verbose'] = '';
141 $cfg['Servers'][$i]['pmadb'] = '';
142 $cfg['Servers'][$i]['bookmarktable'] = '';
143 $cfg['Servers'][$i]['relation'] = '';
144 $cfg['Servers'][$i]['table_info'] = '';
145 $cfg['Servers'][$i]['table_coords'] = '';
146 $cfg['Servers'][$i]['pdf_pages'] = '';
147 $cfg['Servers'][$i]['column_comments'] = '';
148 $cfg['Servers'][$i]['AllowDeny']['order']
150 $cfg['Servers'][$i]['AllowDeny']['rules']
153 // If you have more than one server configured, you can set $cfg['ServerDefault']
154 // to any one of them to autoconnect to that server when phpMyAdmin is started,
155 // or set it to 0 to be given a list of servers without logging in
156 // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
157 // set to that server.
158 $cfg['ServerDefault'] = 1; // Default server (0 = no default server)
160 unset($cfg['Servers'][0]);
164 * Other core phpMyAdmin settings
166 $cfg['OBGzip'] = TRUE; // use GZIP output buffering if possible
167 $cfg['PersistentConnections'] = FALSE; // use persistent connections to MySQL database
168 $cfg['ExecTimeLimit'] = 300; // maximum execution time in seconds (0 for no limit)
169 $cfg['SkipLockedTables'] = FALSE; // mark used tables, make possible to show
170 // locked tables (since MySQL 3.23.30)
171 $cfg['ShowSQL'] = TRUE; // show SQL queries as run
172 $cfg['AllowUserDropDatabase'] = FALSE; // show a 'Drop database' link to normal users
173 $cfg['Confirm'] = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'
174 $cfg['LoginCookieRecall'] = TRUE; // recall previous login in cookie auth. mode or not
175 $cfg['UseDbSearch'] = TRUE; // whether to enable the "database search" feature
179 $cfg['LeftFrameLight'] = TRUE; // use a select-based menu and display only the
180 // current tables in the left frame.
181 $cfg['ShowTooltip'] = TRUE; // display table comment as tooltip in left frame
182 $cfg['LeftDisplayLogo'] = TRUE; // display logo at top of left frame
184 // In the main frame, at startup...
185 $cfg['ShowStats'] = TRUE; // allow to display statistics and space usage in
186 // the pages about database details and table
188 $cfg['ShowMysqlInfo'] = FALSE; // whether to display the "MySQL runtime
189 $cfg['ShowMysqlVars'] = FALSE; // information", "MySQL system variables", "PHP
190 $cfg['ShowPhpInfo'] = FALSE; // information" and "change password" links for
191 $cfg['ShowChgPassword'] = FALSE; // simple users or not
192 $cfg['SuggestDBName'] = TRUE; // suggest a new DB name if possible (false = keep empty)
195 $cfg['ShowBlob'] = FALSE; // display blob field contents
196 $cfg['NavigationBarIconic'] = TRUE; // do not display text inside navigation bar buttons
197 $cfg['ShowAll'] = FALSE; // allows to display all the rows
198 $cfg['MaxRows'] = 30; // maximum number of rows to display
199 $cfg['Order'] = 'ASC'; // default for 'ORDER BY' clause (valid
200 // values are 'ASC', 'DESC' or 'SMART' -ie
201 // descending order for fields of type
202 // TIME, DATE, DATETIME & TIMESTAMP,
203 // ascending order else-)
206 $cfg['ProtectBinary'] = 'blob'; // disallow editing of binary fields
208 // FALSE allow editing
209 // 'blob' allow editing except for BLOB fields
210 // 'all' disallow editing
211 $cfg['ShowFunctionFields'] = TRUE; // Display the function fields in edit/insert mode
212 $cfg['CharEditing'] = 'input';
213 // Which editor should be used for CHAR/VARCHAR fields:
214 // input - allows limiting of input length
215 // textarea - allows newlines in fields
217 // For the export features...
218 $cfg['ZipDump'] = TRUE; // Allow the use of zip/gzip/bzip
219 $cfg['GZipDump'] = TRUE; // compression for
220 $cfg['BZipDump'] = TRUE; // dump files
222 // Default Tabs display settings
223 $cfg['DefaultTabServer'] = 'main.php3';
225 // 'main.php3' = the welcome page
226 // (recommended for multiuser setups)
227 // 'server_status.php3' = runtime information
228 // 'server_variables.php3' = MySQL server variables
229 // 'server_privileges.php3' = user management
230 // 'server_processlist.php3' = process list
231 $cfg['DefaultTabDatabase'] = 'db_details_structure.php3';
233 // 'db_details_structure.php3' = tables list
234 // 'db_details.php3' = sql form
235 // 'db_search.php3' = search query
236 $cfg['DefaultTabTable'] = 'tbl_properties_structure.php3';
238 // 'tbl_properties_structure.php3' = fields list
239 // 'tbl_properties.php3' = sql form
240 // 'tbl_select.php3 = select page
241 // 'tbl_change.php3 = insert row page
245 * Link to the official MySQL documentation.
246 * Be sure to include no trailing slash on the path.
247 * See http://www.mysql.com/documentation/index.html for more information
248 * about MySQL manuals and their types.
250 $cfg['MySQLManualBase'] = 'http://www.mysql.com/doc/en';
253 * Type of MySQL documentation:
254 * old - old style used in phpMyAdmin 2.3.0 and sooner
255 * searchable - "Searchable, with user comments"
256 * chapters - "HTML, one page per chapter"
257 * big - "HTML, all on one page"
258 * none - do not show documentation links
260 $cfg['MySQLManualType'] = 'searchable';
264 * Language and charset conversion settings
266 // Default language to use, if not browser-defined or user-defined
267 $cfg['DefaultLang'] = 'en-iso-8859-1';
269 // Force: always use this language - must be defined in
270 // libraries/select_lang.lib.php3
271 // $cfg['Lang'] = 'en-iso-8859-1';
273 // Default charset to use for recoding of MySQL queries, does not take
274 // any effect when charsets recoding is switched off by
275 // $cfg['AllowAnywhereRecoding'] or in language file
276 // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
277 $cfg['DefaultCharset'] = 'iso-8859-1';
279 // Allow charset recoding of MySQL queries, must be also enabled in language
280 // file to make harder using other language files than unicode.
281 // Default value is FALSE to avoid problems on servers without the iconv
282 // extension and where dl() is not supported
283 $cfg['AllowAnywhereRecoding'] = FALSE;
285 // You can select here which functions will be used for charset conversion.
286 // Possible values are:
287 // auto - automatically use available one (first is tested iconv, then
289 // iconv - use iconv or libiconv functions
290 // recode - use recode_string function
291 $cfg['RecodingEngine'] = 'auto';
293 // Available charsets for MySQL conversion. currently contains all which could
294 // be found in lang/* files and few more.
295 // Charsets will be shown in same order as here listed, so if you frequently
296 // use some of these move them to the top.
297 $cfg['AvailableCharsets'] = array(
329 // Loads language file
330 require('./libraries/select_lang.lib.php3');
334 * Customization & design
336 $cfg['LeftWidth'] = 150; // left frame width
337 $cfg['LeftBgColor'] = '#D0DCE0'; // background color for the left frame
338 $cfg['RightBgColor'] = '#F5F5F5'; // background color for the right frame
339 $cfg['RightBgImage'] = ''; // path to a background image for the right frame
340 // (leave blank for no background image)
341 $cfg['LeftPointerColor'] = '#CCFFCC'; // color of the pointer in left frame
342 // (blank for no pointer)
343 $cfg['Border'] = 0; // border width on tables
344 $cfg['ThBgcolor'] = '#D3DCE3'; // table header row colour
345 $cfg['BgcolorOne'] = '#CCCCCC'; // table data row colour
346 $cfg['BgcolorTwo'] = '#DDDDDD'; // table data row colour, alternate
347 $cfg['BrowsePointerColor'] = '#CCFFCC'; // color of the pointer in browse mode
348 // (blank for no pointer)
349 $cfg['BrowseMarkerColor'] = '#FFCC99'; // color of the marker (visually marks row
350 // by clicking on it) in browse mode
351 // (blank for no marker)
352 $cfg['TextareaCols'] = 40; // textarea size (columns) in edit mode
353 // (this value will be emphasized (*2) for sql
355 $cfg['TextareaRows'] = 7; // textarea size (rows) in edit mode
356 $cfg['TextareaAutoSelect'] = TRUE; // autoselect when clicking in the textarea of the querybox
357 $cfg['CharTextareaCols'] = 40; // textarea size (columns) for CHAR/VARCHAR
358 $cfg['CharTextareaRows'] = 2; // textarea size (rows) for CHAR/VARCHAR
359 $cfg['LimitChars'] = 50; // max field data length in browse mode
360 $cfg['ModifyDeleteAtLeft'] = TRUE; // show edit/delete links on left side of browse
361 // (or at the top with vertical browse)
362 $cfg['ModifyDeleteAtRight'] = FALSE; // show edit/delete links on right side of browse
363 // (or at the bottom with vertical browse)
364 $cfg['DefaultDisplay'] = 'horizontal'; // default display direction (horizontal|vertical)
365 $cfg['RepeatCells'] = 100; // repeat header names every X cells? (0 = deactivate)
369 * SQL Query box settings
370 * These are the links display in all of the SQL Query boxes
372 $cfg['SQLQuery']['Edit'] = TRUE; // Edit link to change a query
373 $cfg['SQLQuery']['Explain'] = TRUE; // EXPLAIN on SELECT queries
374 $cfg['SQLQuery']['ShowAsPHP'] = TRUE; // Wrap a query in PHP
375 $cfg['SQLQuery']['Validate'] = FALSE; // Validate a query (see $cfg['SQLValidator'] as well)
379 * web-server upload directory
381 $cfg['UploadDir'] = ''; // for example, './upload/'; you must end it with
382 // a slash, and you leave it empty for no upload
387 * SQL Parser Settings
389 $cfg['SQP']['enable'] = TRUE; // Totally turn off the SQL Parser (not recommended)
390 $cfg['SQP']['fmtType'] = 'html'; // Pretty-printing style to use on queries (html, text, none)
391 $cfg['SQP']['fmtInd'] = '1'; // Amount to indent each level (floats ok)
392 $cfg['SQP']['fmtIndUnit'] = 'em'; // Units for indenting each level (CSS Types - {em,px,pt})
393 $cfg['SQP']['fmtColor'] = array( // Syntax colouring data
394 'comment' => '#808000',
395 'comment_mysql' => '',
396 'comment_ansi' => '',
399 'digit_hex' => 'teal',
400 'digit_integer' => 'teal',
401 'digit_float' => 'aqua',
402 'punct' => 'fuchsia',
404 'alpha_columnType' => '#FF9900',
405 'alpha_columnAttrib' => '#0000FF',
406 'alpha_reservedWord' => '#990099',
407 'alpha_functionName' => '#FF0000',
408 'alpha_identifier' => 'black',
409 'alpha_variable' => '#800000',
410 'quote' => '#008000',
411 'quote_double' => '',
412 'quote_single' => '',
413 'quote_backtick' => ''
418 * If you wish to use the SQL Validator service, you should be
419 * aware of the following:
420 * All SQL statements are stored anonymously for statistical purposes.
421 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
422 * All rights reserved.
424 $cfg['SQLValidator']['use'] = FALSE; // Make the SQL Validator available
425 $cfg['SQLValidator']['username'] = ''; // If you have a custom username, specify it here (defaults to anonymous)
426 $cfg['SQLValidator']['password'] = ''; // Password for username
430 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
432 $cfg['DBG']['enable'] = FALSE; // Make the DBG stuff available
433 $cfg['DBG']['profile']['enable'] = FALSE; // Produce profiling results of PHP
434 $cfg['DBG']['profile']['threshold'] = 0.5; // Threshold of long running code to display
435 // Anything below the threshold is not displayed
442 // varchar, tinyint, text and date are listed first, based on estimated popularity
443 $cfg['ColumnTypes'] = array(
472 $cfg['AttributeTypes'] = array(
479 // Available functions
480 if ($cfg['ShowFunctionFields']) {
481 $cfg['Functions'] = array(
512 * Unset magic_quotes_runtime - do not change!
514 set_magic_quotes_runtime(0);
517 * File Revision - do not change either!
519 $cfg['FileRevision'] = '$Revision$';