作者 主題: 建立phpMyAdmin 2.6.0-alpha3的問題(幫幫我這新手個位大大)  (閱讀 3793 次)

0 會員 與 1 訪客 正在閱讀本文。

gather

  • 可愛的小學生
  • *
  • 文章數: 1
    • 檢視個人資料
歡迎使用 phpMyAdmin 2.6.0-alpha3


phpMyAdmin 嘗試連線到 MySQL 伺服器, 但伺服器拒絕了連線. 您應於 config.inc.php 內檢查主機名稱, 登入名稱及密碼及確保這些資料是與系統管理人員所提供的 MySQL 伺服器資料相同

錯誤

MySQL 傳回:


Cannot connect: invalid settings.









過後就去了config.inc.php但是我對php一點都不懂所以不會調.我是用www.t35.com的ftp.











001: <?php
002: /* $Id: config.inc.php,v 2.21 2004/06/03 10:53:08 nijel Exp $ */
003: // vim: expandtab sw=4 ts=4 sts=4:
004:
005: /**
006: * phpMyAdmin Configuration File
007: *
008: * All directives are explained in Documentation.html
009: */
010:
011:
012: /**
013: * Sets the php error reporting - Please do not change this line!
014: */
015: if (!isset($old_error_reporting)) {
016: error_reporting(E_ALL);
017: @ini_set('display_errors', '1');
018: }
019:
020:
021: /**
022: * Your phpMyAdmin url
023: *
024: * Complete the variable below with the full url ie
025: * http://www.your_web.net/path_to_your_phpMy...dmin_directory/
026: *
027: * It must contain characters that are valid for a URL, and the path is
028: * case sensitive on some Web servers, for example Unix-based servers.
029: *
030: * In most cases you can leave this variable empty, as the correct value
031: * will be detected automatically. However, we recommend that you do
032: * test to see that the auto-detection code works in your system. A good
033: * test is to browse a table, then edit a row and save it. There will be
034: * an error message if phpMyAdmin cannot auto-detect the correct value.
035: *
036: * If the auto-detection code does work properly, you can set to TRUE the
037: * $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
038: */
039: $cfg['PmaAbsoluteUri'] = '';
040:
041:
042: /**
043: * Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
044: * You should use this if and ONLY if the PmaAbsoluteUri auto-detection
045: * works perfectly.
046: */
047: $cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;
048:
049: /**
050: * Disable the default warning that is displayed on the DB Details Structure page if
051: * any of the required Tables for the relationfeatures could not be found
052: */
053: $cfg['PmaNoRelation_DisableWarning'] = FALSE;
054:
055: /**
056: * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
057: * at least one server configuration uses 'cookie' auth_type, enter here a
058: * passphrase that will be used by blowfish.
059: */
060: $cfg['blowfish_secret'] = '';
061:
062: /**
063: * Server(s) configuration
064: */
065: $i = 0;
066: // The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
067: // You can disable a server config entry by setting host to ''.
068: $i++;
069: $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
070: $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
071: $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
072: $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
073: $cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension to use ('mysql' or 'mysqli')
074: $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
075: // (requires PHP >= 4.3.0)
076: $cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
077: // (this user must have read-only
078: $cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
079: // and "mysql/db" tables).
080: // The controluser is also
081: // used for all relational
082: // features (pmadb)
083: $cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
084: $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
085: $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
086: // with 'config' auth_type)
087: $cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
088: // this db is displayed in left frame
089: // It may also be an array of db-names, where sorting order is relevant.
090: $cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
091:
092: $cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
093: // (see scripts/create_tables.sql)
094: // - leave blank for no support
095: // DEFAULT: 'phpmyadmin'
096: $cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table
097: // - leave blank for no bookmark support
098: // DEFAULT: 'pma_bookmark'
099: $cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
100: // - leave blank for no relation-links support
101: // DEFAULT: 'pma_relation'
102: $cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields
103: // - leave blank for no display fields support
104: // DEFAULT: 'pma_table_info'
105: $cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF schema
106: // - leave blank for no PDF schema support
107: // DEFAULT: 'pma_table_coords'
108: $cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf
109: // - leave blank if you don't want to use this
110: // DEFAULT: 'pma_pdf_pages'
111: $cfg['Servers'][$i]['column_info'] = ''; // table to store column information
112: // - leave blank for no column comments/mime types
113: // DEFAULT: 'pma_column_info'
114: $cfg['Servers'][$i]['history'] = ''; // table to store SQL history
115: // - leave blank for no SQL query history
116: // DEFAULT: 'pma_history'
117: $cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your pma_* tables
118: // are up to date. This prevents compatibility
119: // checks and thereby increases performance.
120: $cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use
121: = '';
122: $cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults
123: = array();
124:
125:
126: $i++;
127: $cfg['Servers'][$i]['host'] = '';
128: $cfg['Servers'][$i]['port'] = '';
129: $cfg['Servers'][$i]['socket'] = '';
130: $cfg['Servers'][$i]['connect_type'] = 'tcp';
131: $cfg['Servers'][$i]['extension'] = 'mysql';
132: $cfg['Servers'][$i]['compress'] = FALSE;
133: $cfg['Servers'][$i]['controluser'] = '';
134: $cfg['Servers'][$i]['controlpass'] = '';
135: $cfg['Servers'][$i]['auth_type'] = 'config';
136: $cfg['Servers'][$i]['user'] = 'root';
137: $cfg['Servers'][$i]['password'] = '';
138: $cfg['Servers'][$i]['only_db'] = '';
139: $cfg['Servers'][$i]['verbose'] = '';
140: $cfg['Servers'][$i]['pmadb'] = ''; // 'phpmyadmin' - see scripts/create_tables.sql
141: $cfg['Servers'][$i]['bookmarktable'] = ''; // 'pma_bookmark'
142: $cfg['Servers'][$i]['relation'] = ''; // 'pma_relation'
143: $cfg['Servers'][$i]['table_info'] = ''; // 'pma_table_info'
144: $cfg['Servers'][$i]['table_coords'] = ''; // 'pma_table_coords'
145: $cfg['Servers'][$i]['pdf_pages'] = ''; // 'pma_pdf_pages'
146: $cfg['Servers'][$i]['column_info'] = ''; // 'pma_column_info'
147: $cfg['Servers'][$i]['history'] = ''; // 'pma_history'
148: $cfg['Servers'][$i]['verbose_check'] = TRUE;
149: $cfg['Servers'][$i]['AllowDeny']['order']
150: = '';
151: $cfg['Servers'][$i]['AllowDeny']['rules']
152: = array();
153:
154: $i++;
155: $cfg['Servers'][$i]['host'] = '';
156: $cfg['Servers'][$i]['port'] = '';
157: $cfg['Servers'][$i]['socket'] = '';
158: $cfg['Servers'][$i]['connect_type'] = 'tcp';
159: $cfg['Servers'][$i]['extension'] = 'mysql';
160: $cfg['Servers'][$i]['compress'] = FALSE;
161: $cfg['Servers'][$i]['controluser'] = '';
162: $cfg['Servers'][$i]['controlpass'] = '';
163: $cfg['Servers'][$i]['auth_type'] = 'config';
164: $cfg['Servers'][$i]['user'] = 'root';
165: $cfg['Servers'][$i]['password'] = '';
166: $cfg['Servers'][$i]['only_db'] = '';
167: $cfg['Servers'][$i]['verbose'] = '';
168: $cfg['Servers'][$i]['pmadb'] = ''; // 'phpmyadmin' - see scripts/create_tables.sql
169: $cfg['Servers'][$i]['bookmarktable'] = ''; // 'pma_bookmark'
170: $cfg['Servers'][$i]['relation'] = ''; // 'pma_relation'
171: $cfg['Servers'][$i]['table_info'] = ''; // 'pma_table_info'
172: $cfg['Servers'][$i]['table_coords'] = ''; // 'pma_table_coords'
173: $cfg['Servers'][$i]['pdf_pages'] = ''; // 'pma_pdf_pages'
174: $cfg['Servers'][$i]['column_info'] = ''; // 'pma_column_info'
175: $cfg['Servers'][$i]['history'] = ''; // 'pma_history'
176: $cfg['Servers'][$i]['verbose_check'] = TRUE;
177: $cfg['Servers'][$i]['AllowDeny']['order']
178: = '';
179: $cfg['Servers'][$i]['AllowDeny']['rules']
180: = array();
181:
182: // If you have more than one server configured, you can set $cfg['ServerDefault']
183: // to any one of them to autoconnect to that server when phpMyAdmin is started,
184: // or set it to 0 to be given a list of servers without logging in
185: // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
186: // set to that server.
187: $cfg['ServerDefault'] = 1; // Default server (0 = no default server)
188: $cfg['Server'] = '';
189: unset($cfg['Servers'][0]);
190:
191:
192: /**
193: * Other core phpMyAdmin settings
194: */
195: $cfg['OBGzip'] = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
196: $cfg['PersistentConnections'] = FALSE; // use persistent connections to MySQL database
197: $cfg['ExecTimeLimit'] = 300; // maximum execution time in seconds (0 for no limit)
198: $cfg['SkipLockedTables'] = FALSE; // mark used tables, make possible to show
199: // locked tables (since MySQL 3.23.30)
200: $cfg['ShowSQL'] = TRUE; // show SQL queries as run
201: $cfg['AllowUserDropDatabase'] = FALSE; // show a 'Drop database' link to normal users
202: $cfg['Confirm'] = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'
203: $cfg['LoginCookieRecall'] = TRUE; // recall previous login in cookie auth. mode or not
204: $cfg['LoginCookieValidity'] = 1800; // validity of cookie login (in seconds)
205: $cfg['UseDbSearch'] = TRUE; // whether to enable the "database search" feature
206: // or not
207: $cfg['IgnoreMultiSubmitErrors'] = FALSE; // if set to true, PMA continues computing multiple-statement queries
208: // even if one of the queries failed
209: $cfg['VerboseMultiSubmit'] = TRUE; // if set to true, PMA will show the affected rows of EACH statement on
210: // multiple-statement queries. See the read_dump.php file for hardcoded
211: // defaults on how many queries a statement may contain!
212: $cfg['AllowArbitraryServer'] = FALSE; // allow login to any user entered server in cookie based auth
213:
214: // Left frame setup
215: $cfg['LeftFrameLight'] = TRUE; // use a select-based menu and display only the
216: // current tables in the left frame.
217: $cfg['LeftFrameTableSeparator']= '__'; // Which string will be used to generate table prefixes
218: // to split/nest tables into multiple categories
219: $cfg['LeftFrameTableLevel'] = '1'; // How many sublevels should be displayed when splitting
220: // up tables by the above Separator
221: $cfg['ShowTooltip'] = TRUE; // display table comment as tooltip in left frame
222: $cfg['ShowTooltipAliasDB'] = FALSE; // if ShowToolTip is enabled, this defines that table/db comments
223: $cfg['ShowTooltipAliasTB'] = FALSE; // are shown (in the left menu and db_details_structure) instead of
224: // table/db names. Setting ShowTooltipAliasTB to 'nested' will only
225: // use the Aliases for nested descriptors, not the table itself.
226:
227: $cfg['LeftDisplayLogo'] = TRUE; // display logo at top of left frame
228: $cfg['LeftDisplayServers'] = FALSE; // display server choice at top of left frame
229: $cfg['LeftDisplayServersList'] = FALSE; // server choice as links
230:
231: // In the main frame, at startup...
232: $cfg['ShowStats'] = TRUE; // allow to display statistics and space usage in
233: // the pages about database details and table
234: // properties
235: $cfg['ShowMysqlInfo'] = FALSE; // whether to display the "MySQL runtime
236: $cfg['ShowMysqlVars'] = FALSE; // information", "MySQL system variables", "PHP
237: $cfg['ShowPhpInfo'] = FALSE; // information" and "change password" links for
238: $cfg['ShowChgPassword'] = FALSE; // simple users or not
239: $cfg['SuggestDBName'] = TRUE; // suggest a new DB name if possible (false = keep empty)
240:
241: // In browse mode...
242: $cfg['ShowBlob'] = FALSE; // display blob field contents
243: $cfg['NavigationBarIconic'] = TRUE; // do not display text inside navigation bar buttons
244: $cfg['ShowAll'] = FALSE; // allows to display all the rows
245: $cfg['MaxRows'] = 30; // maximum number of rows to display
246: $cfg['Order'] = 'ASC'; // default for 'ORDER BY' clause (valid
247: // values are 'ASC', 'DESC' or 'SMART' -ie
248: // descending order for fields of type
249: // TIME, DATE, DATETIME & TIMESTAMP,
250: // ascending order else-)
251:
252: // In edit mode...
253: $cfg['ProtectBinary'] = 'blob'; // disallow editing of binary fields
254: // valid values are:
255: // FALSE allow editing
256: // 'blob' allow editing except for BLOB fields
257: // 'all' disallow editing
258: $cfg['ShowFunctionFields'] = TRUE; // Display the function fields in edit/insert mode
259: $cfg['CharEditing'] = 'input';
260: // Which editor should be used for CHAR/VARCHAR fields:
261: // input - allows limiting of input length
262: // textarea - allows newlines in fields
263: $cfg['InsertRows'] = 2; // How many rows can be inserted at one time
264:
265: // For the export features...
266: $cfg['ZipDump'] = TRUE; // Allow the use of zip/gzip/bzip
267: $cfg['GZipDump'] = TRUE; // compression for
268: $cfg['BZipDump'] = TRUE; // dump files
269: $cfg['CompressOnFly'] = TRUE; // Will compress gzip/bzip2 exports on
270: // fly without need for much memory.
271: // If you encounter problems with
272: // created gzip/bzip2 files disable
273: // this feature.
274:
275: // Tabs display settings
276: $cfg['LightTabs'] = FALSE; // use graphically less intense menu tabs
277: $cfg['PropertiesIconic'] = TRUE; // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
278: $cfg['PropertiesNumColumns'] = 1; // How many columns should be used for table display of a database?
279: // (a value larger than 1 results in some information being hidden)
280:
281: $cfg['DefaultTabServer'] = 'main.php';
282: // Possible values:
283: // 'main.php' = the welcome page
284: // (recommended for multiuser setups)
285: // 'server_databases.php' = list of databases
286: // 'server_status.php' = runtime information
287: // 'server_variables.php' = MySQL server variables
288: // 'server_privileges.php' = user management
289: // 'server_processlist.php' = process list
290: $cfg['DefaultTabDatabase'] = 'db_details_structure.php';
291: // Possible values:
292: // 'db_details_structure.php' = tables list
293: // 'db_details.php' = sql form
294: // 'db_search.php' = search query
295: $cfg['DefaultTabTable'] = 'tbl_properties_structure.php';
296: // Possible values:
297: // 'tbl_properties_structure.php' = fields list
298: // 'tbl_properties.php' = sql form
299: // 'tbl_select.php = select page
300: // 'tbl_change.php = insert row page
301:
302: /**
303: * Export defaults
304: */
305:
306: $cfg['Export']['format'] = 'sql'; // sql/latex/excel/csv/xml
307: $cfg['Export']['compression'] = 'none'; // none/zip/gzip/bzip2
308:
309: $cfg['Export']['asfile'] = FALSE;
310: $cfg['Export']['onserver'] = FALSE;
311: $cfg['Export']['onserver_overwrite'] = FALSE;
312: $cfg['Export']['remember_file_template'] = TRUE;
313:
314: $cfg['Export']['csv_columns'] = FALSE;
315: $cfg['Export']['csv_null'] = 'NULL';
316: $cfg['Export']['csv_separator'] = ';';
317: $cfg['Export']['csv_enclosed'] = '"';
318: $cfg['Export']['csv_escaped'] = '\\';
319: $cfg['Export']['csv_terminated'] = 'AUTO';
320: $cfg['Export']['excel_columns'] = FALSE;
321: $cfg['Export']['excel_null'] = 'NULL';
322: $cfg['Export']['excel_edition'] = 'win'; // win/mac
323:
324: $cfg['Export']['latex_structure'] = TRUE;
325: $cfg['Export']['latex_data'] = TRUE;
326: $cfg['Export']['latex_columns'] = TRUE;
327: $cfg['Export']['latex_relation'] = TRUE;
328: $cfg['Export']['latex_comments'] = TRUE;
329: $cfg['Export']['latex_mime'] = TRUE;
330: $cfg['Export']['latex_null'] = '\textit{NULL}';
331: $cfg['Export']['latex_caption'] = TRUE;
332: $cfg['Export']['latex_data_label'] = 'tab:__TABLE__-data';
333: $cfg['Export']['latex_structure_label'] = 'tab:__TABLE__-structure';
334:
335: $cfg['Export']['sql_structure'] = TRUE;
336: $cfg['Export']['sql_data'] = TRUE;
337: $cfg['Export']['sql_use_transaction'] = FALSE;
338: $cfg['Export']['sql_drop_database'] = FALSE;
339: $cfg['Export']['sql_drop_table'] = FALSE;
340: $cfg['Export']['sql_if_not_exists'] = FALSE;
341: $cfg['Export']['sql_auto_increment'] = TRUE;
342: $cfg['Export']['sql_backquotes'] = TRUE;
343: $cfg['Export']['sql_dates'] = FALSE;
344: $cfg['Export']['sql_relation'] = FALSE;
345: $cfg['Export']['sql_columns'] = FALSE;
346: $cfg['Export']['sql_delayed'] = FALSE;
347: $cfg['Export']['sql_ignore'] = FALSE;
348: $cfg['Export']['sql_type'] = 'insert'; // insert/update/replace
349: $cfg['Export']['sql_extended'] = FALSE;
350: $cfg['Export']['sql_comments'] = FALSE;
351: $cfg['Export']['sql_mime'] = FALSE;
352: $cfg['Export']['sql_header_comment'] = ''; // \n is replaced by new line
353:
354: /**
355: * Link to the official MySQL documentation.
356: * Be sure to include no trailing slash on the path.
357: * See http://dev.mysql.com/doc/ for more information
358: * about MySQL manuals and their types.
359: */
360: $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/mysql/en';
361:
362: /**
363: * Type of MySQL documentation:
364: * old - old style used in phpMyAdmin 2.3.0 and sooner
365: * searchable - "Searchable, with user comments"
366: * chapters - "HTML, one page per chapter"
367: * big - "HTML, all on one page"
368: * none - do not show documentation links
369: */
370: $cfg['MySQLManualType'] = 'searchable';
371:
372:
373: /**
374: * PDF options
375: */
376: $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
377: $cfg['PDFDefaultPageSize'] = 'A4';
378:
379:
380: /**
381: * Language and charset conversion settings
382: */
383: // Default language to use, if not browser-defined or user-defined
384: $cfg['DefaultLang'] = 'en-iso-8859-1';
385:
386: // Force: always use this language - must be defined in
387: // libraries/select_lang.lib.php
388: // $cfg['Lang'] = 'en-iso-8859-1';
389:
390: // Default charset to use for recoding of MySQL queries, does not take
391: // any effect when charsets recoding is switched off by
392: // $cfg['AllowAnywhereRecoding'] or in language file
393: // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
394: $cfg['DefaultCharset'] = 'iso-8859-1';
395:
396: // Allow charset recoding of MySQL queries, must be also enabled in language
397: // file to make harder using other language files than unicode.
398: // Default value is FALSE to avoid problems on servers without the iconv
399: // extension and where dl() is not supported
400: $cfg['AllowAnywhereRecoding'] = FALSE;
401:
402: // You can select here which functions will be used for charset conversion.
403: // Possible values are:
404: // auto - automatically use available one (first is tested iconv, then
405: // recode)
406: // iconv - use iconv or libiconv functions
407: // recode - use recode_string function
408: $cfg['RecodingEngine'] = 'auto';
409:
410: // Specify some parameters for iconv used in charset conversion. See iconv
411: // documentation for details:
412: // http://www.gnu.org/software/libiconv/docum...onv_open.3.html
413: $cfg['IconvExtraParams'] = '';
414:
415: // Available charsets for MySQL conversion. currently contains all which could
416: // be found in lang/* files and few more.
417: // Charsets will be shown in same order as here listed, so if you frequently
418: // use some of these move them to the top.
419: $cfg['AvailableCharsets'] = array(
420: 'iso-8859-1',
421: 'iso-8859-2',
422: 'iso-8859-3',
423: 'iso-8859-4',
424: 'iso-8859-5',
425: 'iso-8859-6',
426: 'iso-8859-7',
427: 'iso-8859-8',
428: 'iso-8859-9',
429: 'iso-8859-10',
430: 'iso-8859-11',
431: 'iso-8859-12',
432: 'iso-8859-13',
433: 'iso-8859-14',
434: 'iso-8859-15',
435: 'windows-1250',
436: 'windows-1251',
437: 'windows-1252',
438: 'windows-1256',
439: 'windows-1257',
440: 'koi8-r',
441: 'big5',
442: 'gb2312',
443: 'utf-8',
444: 'utf-7',
445: 'x-user-defined',
446: 'euc-jp',
447: 'ks_c_5601-1987',
448: 'tis-620',
449: 'SHIFT_JIS'
450: );
451:
452: /**
453: * Customization & design
454: */
455: $cfg['LeftWidth'] = 200; // left frame width
456: $cfg['LeftBgColor'] = '#D0DCE0'; // background color for the left frame
457: $cfg['RightBgColor'] = '#F5F5F5'; // background color for the right frame
458: $cfg['RightBgImage'] = ''; // path to a background image for the right frame
459: // (leave blank for no background image)
460: $cfg['LeftPointerColor'] = '#CCFFCC'; // color of the pointer in left frame
461: // (blank for no pointer)
462: $cfg['Border'] = 0; // border width on tables
463: $cfg['ThBgcolor'] = '#CCCCFF'; // table header row colour
464: $cfg['BgcolorOne'] = '#E5E5E5'; // table data row colour
465: $cfg['BgcolorTwo'] = '#D5D5D5'; // table data row colour, alternate
466: $cfg['BrowsePointerColor'] = '#CCFFCC'; // color of the pointer in browse mode
467: // (blank for no pointer)
468: $cfg['BrowseMarkerColor'] = '#FFCC99'; // color of the marker (visually marks row
469: // by clicking on it) in browse mode
470: // (blank for no marker)
471: $cfg['TextareaCols'] = 40; // textarea size (columns) in edit mode
472: // (this value will be emphasized (*2) for sql
473: // query textareas and (*1.25) for query window)
474: $cfg['TextareaRows'] = 7; // textarea size (rows) in edit mode
475: $cfg['LongtextDoubleTextarea'] = TRUE; // double size of textarea size for longtext fields
476: $cfg['TextareaAutoSelect'] = TRUE; // autoselect when clicking in the textarea of the querybox
477: $cfg['CharTextareaCols'] = 40; // textarea size (columns) for CHAR/VARCHAR
478: $cfg['CharTextareaRows'] = 2; // textarea size (rows) for CHAR/VARCHAR
479: $cfg['CtrlArrowsMoving'] = TRUE; // Enable Ctrl+Arrows moving between fields when editing?
480: $cfg['LimitChars'] = 50; // Max field data length in browse mode for all non-numeric fields
481: $cfg['ModifyDeleteAtLeft'] = TRUE; // show edit/delete links on left side of browse
482: // (or at the top with vertical browse)
483: $cfg['ModifyDeleteAtRight'] = FALSE; // show edit/delete links on right side of browse
484: // (or at the bottom with vertical browse)
485: $cfg['DefaultDisplay'] = 'horizontal'; // default display direction
486: // (horizontal|vertical|horizontalflipped)
487: $cfg['DefaultPropDisplay'] = 'horizontal'; // default display direction for altering/
488: // creating columns (tbl_properties)
489: // (horizontal|vertical)
490:
491: $cfg['HeaderFlipType'] = 'css'; // table-header rotation via faking or css? (css|fake)
492: // NOTE: CSS only works in IE browsers!
493: $cfg['ShowBrowseComments'] = TRUE; // shows stored relation-comments in 'browse' mode.
494: $cfg['ShowPropertyComments']= TRUE; // shows stored relation-comments in 'table property' mode.
495: $cfg['RepeatCells'] = 100; // repeat header names every X cells? (0 = deactivate)
496:
497: $cfg['QueryFrame'] = TRUE; // displays a new frame where a link to a querybox is always displayed.
498: $cfg['QueryFrameJS'] = TRUE; // whether to use JavaScript functions for opening a new window for SQL commands.
499: // if set to 'false', the target of the querybox is always the right frame.
500: $cfg['QueryWindowWidth'] = 550; // Width of Query window
501: $cfg['QueryWindowHeight'] = 310; // Height of Query window
502: $cfg['QueryHistoryDB'] = FALSE; // Set to TRUE if you want DB-based query history.
503: // If FALSE, this utilizes JS-routines to display
504: // query history (lost by window close)
505: $cfg['QueryWindowDefTab'] = 'sql'; // which tab to display in the querywindow on startup
506: // (sql|files|history|full)
507: $cfg['QueryHistoryMax'] = 25; // When using DB-based query history, how many entries
508: // should be kept?
509: $cfg['BrowseMIME'] = TRUE; // Use MIME-Types (stored in column comments table) for
510: $cfg['MaxExactCount'] = 20000; // When approximate count < this, PMA will get exact count for
511: // table rows.
512: $cfg['WYSIWYG-PDF'] = TRUE; // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
513: // the PDF page editor. Requires an IE6/Mozilla based browser.
514:
515: $cfg['NaturalOrder'] = TRUE; // Sort table and database in natural order
516:
517:
518: //-----------------------------------------------------------------------------
519: // custom-setup by mkkeck: 2004-05-04
520: // some specials for new icons and scrollings
521: // FIXME:
522: // 2004-05-08 rabus: We need to rearrange these variables.
523: // 2004-06-03 nijel: We also need to add these to Documentation.html
524:
525: $cfg['ShowHttpHostTitle'] = FALSE; // show HTTP host in browsers window title (true|false)?
526: $cfg['SetHttpHostTitle'] = ''; // if ShowHttpHostTitle=true, please set your host (server)
527: // or an other string, wich should be shown in browsers window title.
528: // If not set (or empty), the PMA will get your real host address.
529:
530: $cfg['ErrorIconic'] = TRUE; // show some icons for warnings, errors and informations (true|false)?
531: $cfg['MainPageIconic'] = TRUE; // show icons in list on main page (true|false)?
532: $cfg['ReplaceHelpImg'] = TRUE; // show help button instead of strDocumentation (true|false)?
533:
534: //-----------------------------------------------------------------------------
535:
536:
537: /**
538: * Default queries
539: * %d will be replaced by the database name.
540: * %t will be replaced by the table name.
541: * %f will be replaced by a list of field names.
542: */
543: $cfg['DefaultQueryTable'] = 'SELECT * FROM %t WHERE 1';
544: $cfg['DefaultQueryDatabase'] = '';
545:
546: /**
547: * SQL Query box settings
548: * These are the links display in all of the SQL Query boxes
549: */
550: $cfg['SQLQuery']['Edit'] = TRUE; // Edit link to change a query
551: $cfg['SQLQuery']['Explain'] = TRUE; // EXPLAIN on SELECT queries
552: $cfg['SQLQuery']['ShowAsPHP'] = TRUE; // Wrap a query in PHP
553: $cfg['SQLQuery']['Validate'] = FALSE; // Validate a query (see $cfg['SQLValidator'] as well)
554:
555:
556: /**
557: * Webserver upload/save/import directories
558: */
559: $cfg['UploadDir'] = ''; // Directory for uploaded files that can be executed by
560: // phpMyAdmin. For example './upload'. Leave empty for
561: // no upload directory support
562: $cfg['SaveDir'] = ''; // Directory where phpMyAdmin can save exported data on
563: // server. For example './save'. Leave empty for no save
564: // directory support.
565: $cfg['docSQLDir'] = ''; // Directory for docSQL imports, phpMyAdmin can import
566: // docSQL files from that directory. For example
567: // './docSQL'. Leave empty for no docSQL import support.
568:
569:
570: /**
571: * Misc. settings
572: */
573: $cfg['GD2Available'] = 'auto'; // Is GD >= 2 available? Set to yes/no/auto. 'auto'
574: // does autodetection, which is a bit expensive for
575: // php < 4.3.0, but it is the only safe vay how to
576: // determine GD version.
577: /**
578: * SQL Parser Settings
579: */
580: $cfg['SQP']['fmtType'] = 'html'; // Pretty-printing style to use on queries (html, text, none)
581: $cfg['SQP']['fmtInd'] = '1'; // Amount to indent each level (floats ok)
582: $cfg['SQP']['fmtIndUnit'] = 'em'; // Units for indenting each level (CSS Types - {em,px,pt})
583: $cfg['SQP']['fmtColor'] = array( // Syntax colouring data
584: 'comment' => '#808000',
585: 'comment_mysql' => '',
586: 'comment_ansi' => '',
587: 'comment_c' => '',
588: 'digit' => '',
589: 'digit_hex' => 'teal',
590: 'digit_integer' => 'teal',
591: 'digit_float' => 'aqua',
592: 'punct' => 'fuchsia',
593: 'alpha' => '',
594: 'alpha_columnType' => '#FF9900',
595: 'alpha_columnAttrib' => '#0000FF',
596: 'alpha_reservedWord' => '#990099',
597: 'alpha_functionName' => '#FF0000',
598: 'alpha_identifier' => 'black',
599: 'alpha_charset' => '#6495ed',
600: 'alpha_variable' => '#800000',
601: 'quote' => '#008000',
602: 'quote_double' => '',
603: 'quote_single' => '',
604: 'quote_backtick' => ''
605: );
606:
607:
608: /**
609: * If you wish to use the SQL Validator service, you should be
610: * aware of the following:
611: * All SQL statements are stored anonymously for statistical purposes.
612: * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
613: * All rights reserved.
614: */
615: $cfg['SQLValidator']['use'] = FALSE; // Make the SQL Validator available
616: $cfg['SQLValidator']['username'] = ''; // If you have a custom username, specify it here (defaults to anonymous)
617: $cfg['SQLValidator']['password'] = ''; // Password for username
618:
619: /**
620: * Developers ONLY!
621: * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
622: */
623: $cfg['DBG']['enable'] = FALSE; // Make the DBG stuff available
624: $cfg['DBG']['profile']['enable'] = FALSE; // Produce profiling results of PHP
625: $cfg['DBG']['profile']['threshold'] = 0.5; // Threshold of long running code to display
626: // Anything below the threshold is not displayed
627:
628:
629: /**
630: * MySQL settings
631: */
632: // Column types;
633: // varchar, tinyint, text and date are listed first, based on estimated popularity
634: $cfg['ColumnTypes'] = array(
635: 'VARCHAR',
636: 'TINYINT',
637: 'TEXT',
638: 'DATE',
639: 'SMALLINT',
640: 'MEDIUMINT',
641: 'INT',
642: 'BIGINT',
643: 'FLOAT',
644: 'DOUBLE',
645: 'DECIMAL',
646: 'DATETIME',
647: 'TIMESTAMP',
648: 'TIME',
649: 'YEAR',
650: 'CHAR',
651: 'TINYBLOB',
652: 'TINYTEXT',
653: 'BLOB',
654: 'MEDIUMBLOB',
655: 'MEDIUMTEXT',
656: 'LONGBLOB',
657: 'LONGTEXT',
658: 'ENUM',
659: 'SET'
660: );
661:
662: // Atributes
663: $cfg['AttributeTypes'] = array(
664: '',
665: 'BINARY',
666: 'UNSIGNED',
667: 'UNSIGNED ZEROFILL'
668: );
669:
670: // Available functions
671: if ($cfg['ShowFunctionFields']) {
672: $cfg['Functions'] = array(
673: 'ASCII',
674: 'CHAR',
675: 'SOUNDEX',
676: 'LCASE',
677: 'UCASE',
678: 'NOW',
679: 'PASSWORD',
680: 'MD5',
681: 'ENCRYPT',
682: 'RAND',
683: 'LAST_INSERT_ID',
684: 'COUNT',
685: 'AVG',
686: 'SUM',
687: 'CURDATE',
688: 'CURTIME',
689: 'FROM_DAYS',
690: 'FROM_UNIXTIME',
691: 'PERIOD_ADD',
692: 'PERIOD_DIFF',
693: 'TO_DAYS',
694: 'UNIX_TIMESTAMP',
695: 'USER',
696: 'WEEKDAY',
697: 'CONCAT'
698: );
699:
700: // Which column types will be mapped to which Group?
701: $cfg['RestrictColumnTypes'] = array(
702: 'VARCHAR' => 'FUNC_CHAR',
703: 'TINYINT' => 'FUNC_NUMBER',
704: 'TEXT' => 'FUNC_CHAR',
705: 'DATE' => 'FUNC_DATE',
706: 'SMALLINT' => 'FUNC_NUMBER',
707: 'MEDIUMINT' => 'FUNC_NUMBER',
708: 'INT' => 'FUNC_NUMBER',
709: 'BIGINT' => 'FUNC_NUMBER',
710: 'FLOAT' => 'FUNC_NUMBER',
711: 'DOUBLE' => 'FUNC_NUMBER',
712: 'DECIMAL' => 'FUNC_NUMBER',
713: 'DATETIME' => 'FUNC_DATE',
714: 'TIMESTAMP' => 'FUNC_DATE',
715: 'TIME' => 'FUNC_DATE',
716: 'YEAR' => 'FUNC_DATE',
717: 'CHAR' => 'FUNC_CHAR',
718: 'TINYBLOB' => 'FUNC_CHAR',
719: 'TINYTEXT' => 'FUNC_CHAR',
720: 'BLOB' => 'FUNC_CHAR',
721: 'MEDIUMBLOB' => 'FUNC_CHAR',
722: 'MEDIUMTEXT' => 'FUNC_CHAR',
723: 'LONGBLOB' => 'FUNC_CHAR',
724: 'LONGTEXT' => 'FUNC_CHAR',
725: 'ENUM' => '',
726: 'SET' => ''
727: );
728:
729: // Map above defined groups to any function
730: $cfg['RestrictFunctions'] = array(
731: 'FUNC_CHAR' => array(
732: 'ASCII',
733: 'CHAR',
734: 'SOUNDEX',
735: 'LCASE',
736: 'UCASE',
737: 'PASSWORD',
738: 'MD5',
739: 'ENCRYPT',
740: 'LAST_INSERT_ID',
741: 'USER',
742: 'CONCAT'
743: ),
744:
745: 'FUNC_DATE' => array(
746: 'NOW',
747: 'CURDATE',
748: 'CURTIME',
749: 'FROM_DAYS',
750: 'FROM_UNIXTIME',
751: 'PERIOD_ADD',
752: 'PERIOD_DIFF',
753: 'TO_DAYS',
754: 'UNIX_TIMESTAMP',
755: 'WEEKDAY'
756: ),
757:
758: 'FUNC_NUMBER' => array(
759: 'ASCII',
760: 'CHAR',
761: 'MD5',
762: 'ENCRYPT',
763: 'RAND',
764: 'LAST_INSERT_ID',
765: 'COUNT',
766: 'AVG',
767: 'SUM'
768: )
769: );
770:
771: // Default functions for above defined groups
772: $cfg['DefaultFunctions'] = array(
773: 'FUNC_CHAR' => '',
774: 'FUNC_DATE' => '',
775: 'FUNC_NUMBER' => '',
776: 'first_timestamp' => 'NOW'
777: );
778:
779:
780: } // end if
781:
782:
783: /**
784: * Unset magic_quotes_runtime - do not change!
785: */
786: set_magic_quotes_runtime(0);
787:
788: /**
789: * File Revision - do not change either!
790: */
791: $cfg['FileRevision'] = '$Revision: 2.21 $';
792: ?>
793: