Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

IE7.0下/phpmyadmin错误!!

[复制链接]
xinruby02 发表于 2007-4-12 18:50:02 | 显示全部楼层 |阅读模式
https://discuz.dismall.com/thread-525970-1-1.html

我一步一步按照上面说的做
前面都成功了
就是在浏览http://localhost/phpmyadmin的时候出现下面的错误
错误地址:

  1. http://localhost/phpmyadmin/error.php?lang=zh&dir=ltr&type=%B4%ED%CE%F3&error=%CE%DE%B7%A8%D4%D8%C8%EB+mysql+%C0%A9%D5%B9%A3%AC%3Cbr+%2F%3E%C7%EB%BC%EC%B2%E9+PHP+%C5%E4%D6%C3+-+%5Ba%40.%2FDocumentation.html%23faqmysql%40documentation%5D%CE%C4%B5%B5%5B%2Fa%5D&
复制代码


图片见附件

我的配置是这样的

  1. $cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (valid choices: config, http, HTTP or cookie)
  2. $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  3. $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
  4.                                                     // with 'config' auth_type)
复制代码
回复

使用道具 举报

 楼主| xinruby02 发表于 2007-4-12 18:54:08 | 显示全部楼层
我的config.default.php文件如下

  1. <?php

  2. /* !!! DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!! */

  3. /* $Id: config.default.php 9793 2006-12-15 17:36:07Z lem9 $ */
  4. // vim: expandtab sw=4 ts=4 sts=4:

  5. /**
  6. * phpMyAdmin default configuration, you can copy values from here to your
  7. * config.inc.php
  8. *
  9. * All directives are explained in Documentation.html
  10. */


  11. /**
  12. * Your phpMyAdmin URL.
  13. *
  14. * Complete the variable below with the full url ie
  15. *    [url]http://www.your_web.net/path_to_your_phpMyAdmin_directory/[/url]
  16. *
  17. * It must contain characters that are valid for a URL, and the path is
  18. * case sensitive on some Web servers, for example Unix-based servers.
  19. *
  20. * In most cases you can leave this variable empty, as the correct value
  21. * will be detected automatically. However, we recommend that you do
  22. * test to see that the auto-detection code works in your system. A good
  23. * test is to browse a table, then edit a row and save it.  There will be
  24. * an error message if phpMyAdmin cannot auto-detect the correct value.
  25. */
  26. $cfg['PmaAbsoluteUri'] = '';

  27. /**
  28. * Disable the default warning that is displayed on the DB Details Structure page if
  29. * any of the required Tables for the relationfeatures could not be found
  30. */
  31. $cfg['PmaNoRelation_DisableWarning']  = FALSE;

  32. /**
  33. * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
  34. * at least one server configuration uses 'cookie' auth_type, enter here a
  35. * passphrase that will be used by blowfish. The maximum length seems to be 46
  36. * characters.
  37. */
  38. $cfg['blowfish_secret'] = '';

  39. /**
  40. * Server(s) configuration
  41. */
  42. $i = 0;
  43. // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use
  44. // $cfg['Servers'][0]. You can disable a server config entry by setting host
  45. // to ''. If you want more than one server, just copy following section
  46. // (including $i incrementation) serveral times. There is no need to define
  47. // full server array, just define values you need to change.
  48. $i++;
  49. $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
  50. $cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
  51. $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
  52. $cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
  53. $cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
  54. $cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
  55.                                                     // (requires PHP >= 4.3.0)
  56. $cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
  57.                                                     // (this user must have read-only
  58. $cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
  59.                                                     // and "mysql/db" tables).
  60.                                                     // The controluser is also
  61.                                                     // used for all relational
  62.                                                     // features (pmadb)
  63. $cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (valid choices: config, http, HTTP or cookie)
  64. $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  65. $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
  66.                                                     // with 'config' auth_type)
  67. $cfg['Servers'][$i]['nopassword']    = FALSE;       // Whether to try to connect without password
  68. $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
  69.                                                     // this db is displayed in left frame
  70.                                                     // It may also be an array of db-names, where sorting order is relevant.
  71. $cfg['Servers'][$i]['hide_db']       = '';          // Database name to be hidden from listings
  72. $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname

  73. $cfg['Servers'][$i]['pmadb']         = '';          // Database used for Relation, Bookmark and PDF Features
  74.                                                     // (see scripts/create_tables.sql)
  75.                                                     //   - leave blank for no support
  76.                                                     //     DEFAULT: 'phpmyadmin'
  77. $cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark table
  78.                                                     //   - leave blank for no bookmark support
  79.                                                     //     DEFAULT: 'pma_bookmark'
  80. $cfg['Servers'][$i]['relation']      = '';          // table to describe the relation between links (see doc)
  81.                                                     //   - leave blank for no relation-links support
  82.                                                     //     DEFAULT: 'pma_relation'
  83. $cfg['Servers'][$i]['table_info']    = '';          // table to describe the display fields
  84.                                                     //   - leave blank for no display fields support
  85.                                                     //     DEFAULT: 'pma_table_info'
  86. $cfg['Servers'][$i]['table_coords']  = '';          // table to describe the tables position for the PDF schema
  87.                                                     //   - leave blank for no PDF schema support
  88.                                                     //     DEFAULT: 'pma_table_coords'
  89. $cfg['Servers'][$i]['pdf_pages']     = '';          // table to describe pages of relationpdf
  90.                                                     //   - leave blank if you don't want to use this
  91.                                                     //     DEFAULT: 'pma_pdf_pages'
  92. $cfg['Servers'][$i]['column_info']   = '';          // table to store column information
  93.                                                     //   - leave blank for no column comments/mime types
  94.                                                     //     DEFAULT: 'pma_column_info'
  95. $cfg['Servers'][$i]['history']       = '';          // table to store SQL history
  96.                                                     //   - leave blank for no SQL query history
  97.                                                     //     DEFAULT: 'pma_history'
  98. $cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pma_* tables
  99.                                                     // are up to date. This prevents compatibility
  100.                                                     // checks and thereby increases performance.
  101. $cfg['Servers'][$i]['AllowRoot']     = TRUE;        // whether to allow root login
  102. $cfg['Servers'][$i]['AllowDeny']['order']           // Host authentication order, leave blank to not use
  103.                                      = '';
  104. $cfg['Servers'][$i]['AllowDeny']['rules']           // Host authentication rules, leave blank for defaults
  105.                                      = array();

  106. // If you have more than one server configured, you can set $cfg['ServerDefault']
  107. // to any one of them to autoconnect to that server when phpMyAdmin is started,
  108. // or set it to 0 to be given a list of servers without logging in
  109. // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
  110. // set to that server.
  111. $cfg['ServerDefault'] = 1;              // Default server (0 = no default server)

  112. /**
  113. * Other core phpMyAdmin settings
  114. */
  115. $cfg['MaxDbList']               = 100;    // maximum number of db's displayed in left frame and databaes list
  116. $cfg['OBGzip']                  = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
  117. $cfg['PersistentConnections']   = FALSE;  // use persistent connections to MySQL database
  118. $cfg['ForceSSL']                = FALSE;  // whether to force using https
  119. $cfg['ExecTimeLimit']           = 300;    // maximum execution time in seconds (0 for no limit)
  120. $cfg['MemoryLimit']             = 0;      // maximum allocated bytes (0 for no limit)
  121. $cfg['SkipLockedTables']        = FALSE;  // mark used tables, make possible to show
  122.                                           // locked tables (since MySQL 3.23.30)
  123. $cfg['ShowSQL']                 = TRUE;   // show SQL queries as run
  124. $cfg['AllowUserDropDatabase']   = FALSE;  // show a 'Drop database' link to normal users
  125. $cfg['Confirm']                 = TRUE;   // confirm 'DROP TABLE' & 'DROP DATABASE'
  126. $cfg['LoginCookieRecall']       = TRUE;   // recall previous login in cookie auth. mode or not
  127. $cfg['LoginCookieValidity']     = 1800;   // validity of cookie login (in seconds)
  128. $cfg['LoginCookieStore']        = 0;      // how long login cookie should be stored (in seconds)
  129. $cfg['LoginCookieDeleteAll']    = TRUE;   // whether to delete all login cookies on logout
  130. $cfg['UseDbSearch']             = TRUE;   // whether to enable the "database search" feature
  131.                                           // or not
  132. $cfg['IgnoreMultiSubmitErrors'] = FALSE;  // if set to true, PMA continues computing multiple-statement queries
  133.                                           // even if one of the queries failed
  134. $cfg['VerboseMultiSubmit']      = TRUE;   // if set to true, PMA will show the affected rows of EACH statement on
  135.                                           // multiple-statement queries. See the libraries/import.php file for
  136.                                           // hardcoded defaults on how many queries a statement may contain!
  137. $cfg['AllowArbitraryServer']    = FALSE;  // allow login to any user entered server in cookie based auth

  138. // Left frame setup
  139. $cfg['LeftFrameLight']        = TRUE;    // use a select-based menu and display only the
  140.                                          // current tables in the left frame.
  141. $cfg['LeftFrameDBTree']       = TRUE;    // turn the select-based light menu into a tree
  142. $cfg['LeftFrameDBSeparator']  = '_';     // the separator to sub-tree the select-based light menu tree
  143. $cfg['LeftFrameTableSeparator']= '__';   // Which string will be used to generate table prefixes
  144.                                          // to split/nest tables into multiple categories
  145. $cfg['LeftFrameTableLevel']   = '1';     // How many sublevels should be displayed when splitting
  146.                                          // up tables by the above Separator
  147. $cfg['ShowTooltip']           = TRUE;    // display table comment as tooltip in left frame
  148. $cfg['ShowTooltipAliasDB']    = FALSE;   // if ShowToolTip is enabled, this defines that table/db comments
  149. $cfg['ShowTooltipAliasTB']    = FALSE;   // are shown (in the left menu and db_details_structure) instead of
  150.                                          // table/db names. Setting ShowTooltipAliasTB to 'nested' will only
  151.                                          // use the Aliases for nested descriptors, not the table itself.

  152. $cfg['LeftDisplayLogo']       = TRUE;   // display logo at top of left frame
  153. $cfg['LeftLogoLink']          = 'http://www.phpmyadmin.net/';   // where should logo link point to
  154. $cfg['LeftDisplayServers']    = FALSE;  // display server choice at top of left frame
  155. $cfg['DisplayServersList']    = FALSE;  // server choice as links

  156. // In the main frame, at startup...
  157. $cfg['ShowStats']             = TRUE;   // allow to display statistics and space usage in
  158.                                         // the pages about database details and table
  159.                                         // properties
  160. $cfg['ShowPhpInfo']           = FALSE;  // show php info link
  161. $cfg['ShowChgPassword']       = FALSE;  // show change password link
  162. $cfg['ShowCreateDb']          = TRUE;   // show create database form
  163. $cfg['SuggestDBName']         = TRUE;   // suggest a new DB name if possible (false = keep empty)

  164. // In browse mode...
  165. $cfg['ShowBlob']              = FALSE;  // display blob field contents
  166. $cfg['NavigationBarIconic']   = 'both'; // Use icons instead of text for the navigation bar buttons
  167.                                         // and on right panel top menu (server db table) (TRUE|FALSE|'both')
  168. $cfg['ShowAll']               = FALSE;  // allows to display all the rows
  169. $cfg['MaxRows']               = 30;     // maximum number of rows to display
  170. $cfg['Order']                 = 'ASC';  // default for 'ORDER BY' clause (valid
  171.                                         // values are 'ASC', 'DESC' or 'SMART' -ie
  172.                                         // descending order for fields of type
  173.                                         // TIME, DATE, DATETIME & TIMESTAMP,
  174.                                         // ascending order else-)

  175. // In edit mode...
  176. $cfg['ProtectBinary']         = 'blob'; // disallow editing of binary fields
  177.                                         // valid values are:
  178.                                         //   FALSE  allow editing
  179.                                         //   'blob' allow editing except for BLOB fields
  180.                                         //   'all'  disallow editing
  181. $cfg['ShowFunctionFields']    = TRUE;   // Display the function fields in edit/insert mode
  182. $cfg['CharEditing']           = 'input';
  183.                                         // Which editor should be used for CHAR/VARCHAR fields:
  184.                                         //  input - allows limiting of input length
  185.                                         //  textarea - allows newlines in fields
  186. $cfg['InsertRows']            = 2;      // How many rows can be inserted at one time

  187. $cfg['ForeignKeyDropdownOrder'] =       // Sort order for items in a foreign-key dropdown box.
  188.     array( 'content-id', 'id-content'); // 'content' is the referenced data, 'id' is the key value.
  189. $cfg['ForeignKeyMaxLimit'] = 100;       // A dropdown will be used if fewer items are present


  190. // For the export features...
  191. $cfg['ZipDump']               = TRUE;   // Allow the use of zip/gzip/bzip
  192. $cfg['GZipDump']              = TRUE;   // compression for
  193. $cfg['BZipDump']              = TRUE;   // dump files
  194. $cfg['CompressOnFly']         = TRUE;   // Will compress gzip/bzip2 exports on
  195.                                         // fly without need for much memory.
  196.                                         // If you encounter problems with
  197.                                         // created gzip/bzip2 files disable
  198.                                         // this feature.

  199. // Tabs display settings
  200. $cfg['LightTabs']             = FALSE;  // use graphically less intense menu tabs
  201. $cfg['PropertiesIconic']      = TRUE;   // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
  202. $cfg['PropertiesNumColumns']  = 1;      // How many columns should be used for table display of a database?
  203.                                         // (a value larger than 1 results in some information being hidden)

  204. $cfg['DefaultTabServer']      = 'main.php';
  205.                                    // Possible values:
  206.                                    // 'main.php' = the welcome page
  207.                                    // (recommended for multiuser setups)
  208.                                    // 'server_databases.php' = list of databases
  209.                                    // 'server_status.php' = runtime information
  210.                                    // 'server_variables.php' = MySQL server variables
  211.                                    // 'server_privileges.php' = user management
  212.                                    // 'server_processlist.php' = process list
  213. $cfg['DefaultTabDatabase']    = 'db_details_structure.php';
  214.                                    // Possible values:
  215.                                    // 'db_details_structure.php' = tables list
  216.                                    // 'db_details.php' = sql form
  217.                                    // 'db_search.php' = search query
  218.                                    // 'db_operations.php' = operations on database
  219. $cfg['DefaultTabTable']       = 'tbl_properties_structure.php';
  220.                                    // Possible values:
  221.                                    // 'tbl_properties_structure.php' = fields list
  222.                                    // 'tbl_properties.php' = sql form
  223.                                    // 'tbl_select.php' = select page
  224.                                    // 'tbl_change.php' = insert row page
  225.                                    // 'sql.php' = browse page

  226. /**
  227. * Export defaults
  228. */

  229. $cfg['Export']['format']                    = 'sql';  // sql/latex/excel/csv/xml/xls/htmlexcel/htmlword/ods/odt
  230. $cfg['Export']['compression']               = 'none'; // none/zip/gzip/bzip2

  231. $cfg['Export']['asfile']                    = FALSE;
  232. $cfg['Export']['charset']                   = '';
  233. $cfg['Export']['onserver']                  = FALSE;
  234. $cfg['Export']['onserver_overwrite']        = FALSE;
  235. $cfg['Export']['remember_file_template']    = TRUE;
  236. $cfg['Export']['file_template_table']       = '__TABLE__';
  237. $cfg['Export']['file_template_database']    = '__DB__';
  238. $cfg['Export']['file_template_server']      = '__SERVER__';

  239. $cfg['Export']['ods_columns']               = FALSE;
  240. $cfg['Export']['ods_null']                  = 'NULL';

  241. $cfg['Export']['odt_structure']             = TRUE;
  242. $cfg['Export']['odt_data']                  = TRUE;
  243. $cfg['Export']['odt_columns']               = TRUE;
  244. $cfg['Export']['odt_relation']              = TRUE;
  245. $cfg['Export']['odt_comments']              = TRUE;
  246. $cfg['Export']['odt_mime']                  = TRUE;
  247. $cfg['Export']['odt_null']                  = 'NULL';

  248. $cfg['Export']['htmlexcel_columns']         = FALSE;
  249. $cfg['Export']['htmlexcel_null']            = 'NULL';

  250. $cfg['Export']['htmlword_structure']        = TRUE;
  251. $cfg['Export']['htmlword_data']             = TRUE;
  252. $cfg['Export']['htmlword_columns']          = FALSE;
  253. $cfg['Export']['htmlword_null']             = 'NULL';

  254. $cfg['Export']['xls_columns']               = FALSE;
  255. $cfg['Export']['xls_null']                  = 'NULL';

  256. $cfg['Export']['csv_columns']               = FALSE;
  257. $cfg['Export']['csv_null']                  = 'NULL';
  258. $cfg['Export']['csv_separator']             = ';';
  259. $cfg['Export']['csv_enclosed']              = '"';
  260. $cfg['Export']['csv_escaped']               = '\\';
  261. $cfg['Export']['csv_terminated']            = 'AUTO';
  262. $cfg['Export']['excel_columns']             = FALSE;
  263. $cfg['Export']['excel_null']                = 'NULL';
  264. $cfg['Export']['excel_edition']             = 'win'; // win/mac

  265. $cfg['Export']['latex_structure']           = TRUE;
  266. $cfg['Export']['latex_data']                = TRUE;
  267. $cfg['Export']['latex_columns']             = TRUE;
  268. $cfg['Export']['latex_relation']            = TRUE;
  269. $cfg['Export']['latex_comments']            = TRUE;
  270. $cfg['Export']['latex_mime']                = TRUE;
  271. $cfg['Export']['latex_null']                = '\textit{NULL}';
  272. $cfg['Export']['latex_caption']             = TRUE;
  273. $cfg['Export']['latex_structure_caption']   = 'strLatexStructure';
  274. $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
  275. $cfg['Export']['latex_data_caption']        = 'strLatexContent';
  276. $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
  277. $cfg['Export']['latex_data_label']          = 'tab:__TABLE__-data';
  278. $cfg['Export']['latex_structure_label']     = 'tab:__TABLE__-structure';

  279. $cfg['Export']['sql_structure']             = TRUE;
  280. $cfg['Export']['sql_data']                  = TRUE;
  281. $cfg['Export']['sql_compatibility']         = 'NONE';
  282. $cfg['Export']['sql_disable_fk']            = FALSE;
  283. $cfg['Export']['sql_use_transaction']       = FALSE;
  284. $cfg['Export']['sql_drop_database']         = FALSE;
  285. $cfg['Export']['sql_drop_table']            = FALSE;
  286. $cfg['Export']['sql_if_not_exists']         = FALSE;
  287. $cfg['Export']['sql_auto_increment']        = TRUE;
  288. $cfg['Export']['sql_backquotes']            = TRUE;
  289. $cfg['Export']['sql_dates']                 = FALSE;
  290. $cfg['Export']['sql_relation']              = FALSE;
  291. $cfg['Export']['sql_columns']               = TRUE;
  292. $cfg['Export']['sql_delayed']               = FALSE;
  293. $cfg['Export']['sql_ignore']                = FALSE;
  294. $cfg['Export']['sql_hex_for_binary']        = TRUE;
  295. $cfg['Export']['sql_type']                  = 'insert'; // insert/update/replace
  296. $cfg['Export']['sql_extended']              = TRUE;
  297. $cfg['Export']['sql_max_query_size']        = 50000;
  298. $cfg['Export']['sql_comments']              = FALSE;
  299. $cfg['Export']['sql_mime']                  = FALSE;
  300. $cfg['Export']['sql_header_comment']        = ''; // \n is replaced by new line

  301. $cfg['Export']['pdf_structure']             = FALSE;
  302. $cfg['Export']['pdf_data']                  = TRUE;
  303. $cfg['Export']['pdf_report_title']          = '';

  304. /**
  305. * Import defaults
  306. */
  307. $cfg['Import']['format'] = 'sql';
  308. $cfg['Import']['allow_interrupt'] = TRUE;
  309. $cfg['Import']['skip_queries'] = '0';
  310. $cfg['Import']['sql_compatibility'] = 'NONE';
  311. $cfg['Import']['csv_replace'] = FALSE;
  312. $cfg['Import']['csv_terminated'] = ';';
  313. $cfg['Import']['csv_enclosed'] = '"';
  314. $cfg['Import']['csv_escaped'] = '\\';
  315. $cfg['Import']['csv_new_line'] = 'auto';
  316. $cfg['Import']['csv_columns'] = '';
  317. $cfg['Import']['ldi_replace'] = FALSE;
  318. $cfg['Import']['ldi_terminated'] = ';';
  319. $cfg['Import']['ldi_enclosed'] = '"';
  320. $cfg['Import']['ldi_escaped'] = '\\';
  321. $cfg['Import']['ldi_new_line'] = 'auto';
  322. $cfg['Import']['ldi_columns'] = '';
  323. $cfg['Import']['ldi_local_option'] = 'auto'; // 'auto' for autodetection, TRUE or FALSE for forcing


  324. /**
  325. * Link to the official MySQL documentation.
  326. * Be sure to include no trailing slash on the path.
  327. * See [url]http://dev.mysql.com/doc/[/url] for more information
  328. * about MySQL manuals and their types.
  329. */
  330. $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';

  331. /**
  332. * Type of MySQL documentation:
  333. *   viewable   - "viewable online", current one used on MySQL website
  334. *   searchable - "Searchable, with user comments"
  335. *   chapters   - "HTML, one page per chapter"
  336. *   chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
  337. *   big        - "HTML, all on one page"
  338. *   old        - old style used in phpMyAdmin 2.3.0 and sooner
  339. *   none       - do not show documentation links
  340. */
  341. $cfg['MySQLManualType'] = 'viewable';


  342. /**
  343. * PDF options
  344. */
  345. $cfg['PDFPageSizes']        = array('A3', 'A4', 'A5', 'letter', 'legal');
  346. $cfg['PDFDefaultPageSize']  = 'A4';


  347. /**
  348. * Language and charset conversion settings
  349. */
  350. // Default language to use, if not browser-defined or user-defined
  351. $cfg['DefaultLang'] = 'gb2312';

  352. // Default connection collation (used for MySQL >= 4.1)
  353. $cfg['DefaultConnectionCollation'] = 'utf8_unicode_ci';

  354. // Force: always use this language - must be defined in
  355. //        libraries/select_lang.lib.php
  356. // $cfg['Lang']     = 'en-iso-8859-1';

  357. // Regullar expression to limit listed languages, eg. '^(cs|en)' for Czech and
  358. // English only
  359. $cfg['FilterLanguages'] = '';

  360. // Default charset to use for recoding of MySQL queries, does not take
  361. // any effect when charsets recoding is switched off by
  362. // $cfg['AllowAnywhereRecoding'] or in language file
  363. // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
  364. $cfg['DefaultCharset'] = 'gb2312';

  365. // Allow charset recoding of MySQL queries, must be also enabled in language
  366. // file to make harder using other language files than unicode.
  367. // Default value is FALSE to avoid problems on servers without the iconv
  368. // extension and where dl() is not supported
  369. $cfg['AllowAnywhereRecoding'] = FALSE;

  370. // You can select here which functions will be used for charset conversion.
  371. // Possible values are:
  372. //      auto   - automatically use available one (first is tested iconv, then
  373. //               recode)
  374. //      iconv  - use iconv or libiconv functions
  375. //      recode - use recode_string function
  376. $cfg['RecodingEngine'] = 'auto';

  377. // Specify some parameters for iconv used in charset conversion. See iconv
  378. // documentation for details:
  379. // [url]http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html[/url]
  380. $cfg['IconvExtraParams'] = '//TRANSLIT';

  381. // Available charsets for MySQL conversion. currently contains all which could
  382. // be found in lang/* files and few more.
  383. // Charsets will be shown in same order as here listed, so if you frequently
  384. // use some of these move them to the top.
  385. $cfg['AvailableCharsets'] = array(
  386.     'iso-8859-1',
  387.     'iso-8859-2',
  388.     'iso-8859-3',
  389.     'iso-8859-4',
  390.     'iso-8859-5',
  391.     'iso-8859-6',
  392.     'iso-8859-7',
  393.     'iso-8859-8',
  394.     'iso-8859-9',
  395.     'iso-8859-10',
  396.     'iso-8859-11',
  397.     'iso-8859-12',
  398.     'iso-8859-13',
  399.     'iso-8859-14',
  400.     'iso-8859-15',
  401.     'windows-1250',
  402.     'windows-1251',
  403.     'windows-1252',
  404.     'windows-1256',
  405.     'windows-1257',
  406.     'koi8-r',
  407.     'big5',
  408.     'gb2312',
  409.     'utf-16',
  410.     'utf-8',
  411.     'utf-7',
  412.     'x-user-defined',
  413.     'euc-jp',
  414.     'ks_c_5601-1987',
  415.     'tis-620',
  416.     'SHIFT_JIS'
  417. );

  418. /**
  419. * Customization & design
  420. *
  421. * The graphical settings are now located in themes/themename/layout.inc.php
  422. */

  423. $cfg['LeftPointerEnable']   = TRUE;         // enable the left panel pointer
  424.                                             // (used when LeftFrameLight is FALSE)
  425.                                             // see also LeftPointerColor
  426.                                             // in layout.inc.php

  427. $cfg['BrowsePointerEnable'] = TRUE;        // enable the browse pointer
  428.                                             // see also BrowsePointerColor
  429.                                             // in layout.inc.php

  430. $cfg['BrowseMarkerEnable'] = TRUE;         // enable the browse marker
  431.                                             // see also BrowseMarkerColor
  432.                                             // in layout.inc.php

  433. $cfg['TextareaCols']        = 40;           // textarea size (columns) in edit mode
  434.                                             // (this value will be emphasized (*2) for sql
  435.                                             // query textareas and (*1.25) for query window)
  436. $cfg['TextareaRows']        = 7;            // textarea size (rows) in edit mode
  437. $cfg['LongtextDoubleTextarea'] = TRUE;      // double size of textarea size for longtext fields
  438. $cfg['TextareaAutoSelect']  = TRUE;         // autoselect when clicking in the textarea of the querybox
  439. $cfg['CharTextareaCols']    = 40;           // textarea size (columns) for CHAR/VARCHAR
  440. $cfg['CharTextareaRows']    = 2;            // textarea size (rows) for CHAR/VARCHAR
  441. $cfg['CtrlArrowsMoving']    = TRUE;         // Enable Ctrl+Arrows moving between fields when editing?
  442. $cfg['LimitChars']          = 50;           // Max field data length in browse mode for all non-numeric fields
  443. $cfg['ModifyDeleteAtLeft']  = TRUE;         // show edit/delete links on left side of browse
  444.                                             // (or at the top with vertical browse)
  445. $cfg['ModifyDeleteAtRight'] = FALSE;        // show edit/delete links on right side of browse
  446.                                             // (or at the bottom with vertical browse)
  447. $cfg['DefaultDisplay']      = 'horizontal'; // default display direction
  448.                                             // (horizontal|vertical|horizontalflipped)
  449. $cfg['DefaultPropDisplay']  = 'horizontal'; // default display direction for altering/
  450.                                             // creating columns (tbl_properties)
  451.                                             // (horizontal|vertical)

  452. $cfg['HeaderFlipType']      = 'css';        // table-header rotation via faking or css? (css|fake)
  453.                                             // NOTE: CSS only works in IE browsers!
  454. $cfg['ShowBrowseComments']  = TRUE;         // shows stored relation-comments in 'browse' mode.
  455. $cfg['ShowPropertyComments']= TRUE;         // shows stored relation-comments in 'table property' mode.
  456. $cfg['RepeatCells']         = 100;          // repeat header names every X cells? (0 = deactivate)

  457. $cfg['EditInWindow']        = TRUE;         // Set to TRUE if Edit link should open the query to edit in the query window (assuming Javascript is enabled), and to FALSE if we should edit in the right panel
  458. $cfg['QueryWindowWidth']    = 550;          // Width of Query window
  459. $cfg['QueryWindowHeight']   = 310;          // Height of Query window
  460. $cfg['QueryHistoryDB']      = FALSE;         // Set to TRUE if you want DB-based query history.
  461.                                             // If FALSE, this utilizes JS-routines to display
  462.                                             // query history (lost by window close)
  463. $cfg['QueryWindowDefTab']   = 'sql';        // which tab to display in the querywindow on startup
  464.                                             // (sql|files|history|full)
  465. $cfg['QueryHistoryMax']     = 25;           // When using DB-based query history, how many entries
  466.                                             // should be kept?
  467. $cfg['BrowseMIME']          = TRUE;         // Use MIME-Types (stored in column comments table) for
  468. $cfg['MaxExactCount']       = 20000;        // When approximate count < this, PMA will get exact count for
  469.                                             // table rows.
  470. $cfg['WYSIWYG-PDF']         = TRUE;         // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
  471.                                             // the PDF page editor. Requires an IE6/Mozilla based browser.

  472. $cfg['NaturalOrder']        = TRUE;         // Sort table and database in natural order


  473. //-----------------------------------------------------------------------------
  474. // custom-setup by mkkeck: 2004-05-04
  475. //    some specials for new icons and scrollings
  476. // FIXME:
  477. // 2004-05-08 rabus: We need to rearrange these variables.

  478. // Window title settings
  479. $cfg['TitleTable']          = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
  480. $cfg['TitleDatabase']       = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
  481. $cfg['TitleServer']         = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
  482. $cfg['TitleDefault']        = '@HTTP_HOST@ | @PHPMYADMIN@';

  483. $cfg['ErrorIconic']          = TRUE;    // show some icons for warning, error and information messages (true|false)?
  484. $cfg['MainPageIconic']       = TRUE;    // show icons in list on main page and on menu tabs (true|false)?
  485. $cfg['ReplaceHelpImg']       = TRUE;    // show help button instead of strDocu (true|false)?

  486. // theme manager
  487. $cfg['ThemePath']           = './themes';    // using themes manager please set up here the path to 'themes'
  488.                                              // else leave empty
  489. $cfg['ThemeManager']        = TRUE;          // if you want to use selectable themes and if ThemesPath not empty
  490.                                              // set it to true, else set it to false (default is false);
  491. $cfg['ThemeDefault']        = 'original';         // set up default theme, if ThemePath not empty
  492.                                              // you can set up here an valid path to themes or 'original' for
  493.                                              // the original pma-theme
  494. $cfg['ThemePerServer']      = FALSE;         // allow different theme for each configured server

  495. //-----------------------------------------------------------------------------


  496. /**
  497. * Default queries
  498. * %d will be replaced by the database name.
  499. * %t will be replaced by the table name.
  500. * %f will be replaced by a list of field names.
  501. * (%t and %f only applies to DefaultQueryTable)
  502. */
  503. $cfg['DefaultQueryTable']    = 'SELECT * FROM %t WHERE 1';
  504. $cfg['DefaultQueryDatabase'] = '';

  505. /**
  506. * SQL Query box settings
  507. * These are the links display in all of the SQL Query boxes
  508. */
  509. $cfg['SQLQuery']['Edit']      = TRUE;       // Edit link to change a query
  510. $cfg['SQLQuery']['Explain']   = TRUE;       // EXPLAIN on SELECT queries
  511. $cfg['SQLQuery']['ShowAsPHP'] = TRUE;       // Wrap a query in PHP
  512. $cfg['SQLQuery']['Validate']  = FALSE;      // Validate a query (see $cfg['SQLValidator'] as well)
  513. $cfg['SQLQuery']['Refresh']   = TRUE;       // Refresh the results page


  514. /**
  515. * Webserver upload/save/import directories
  516. */
  517. $cfg['UploadDir']             = '';         // Directory for uploaded files that can be executed by
  518.                                             // phpMyAdmin. For example './upload'. Leave empty for
  519.                                             // no upload directory support. Use %u for username
  520.                                             // inclusion.
  521. $cfg['SaveDir']               = '';         // Directory where phpMyAdmin can save exported data on
  522.                                             // server. For example './save'. Leave empty for no save
  523.                                             // directory support. Use %u for username inclusion.
  524. $cfg['docSQLDir']             = '';         // Directory for docSQL imports, phpMyAdmin can import
  525.                                             // docSQL files from that directory. For example
  526.                                             // './docSQL'. Leave empty for no docSQL import support.
  527. $cfg['TempDir']               = '';         // Directory where phpMyAdmin can save temporary files.
  528.                                             // This is needed for MS Excel export, see documentation
  529.                                             // how to enable that.


  530. /**
  531. * Misc. settings
  532. */
  533. $cfg['GD2Available']          = 'auto';     // Is GD >= 2 available? Set to yes/no/auto. 'auto'
  534.                                             // does autodetection, which is a bit expensive for
  535.                                             // php < 4.3.0, but it is the only safe vay how to
  536.                                             // determine GD version.
  537. $cfg['TrustedProxies']        = array();    // List of trusted proxies for IP allow/deny

  538. /**
  539. * SQL Parser Settings
  540. */
  541. $cfg['SQP']['fmtType']      = 'html';       // Pretty-printing style to use on queries (html, text, none)
  542. $cfg['SQP']['fmtInd']       = '1';          // Amount to indent each level (floats ok)
  543. $cfg['SQP']['fmtIndUnit']   = 'em';         // Units for indenting each level (CSS Types - {em,px,pt})
  544. // The graphical settings are now located in themes/themename/layout.inc.php

  545. /**
  546. * If you wish to use the SQL Validator service, you should be
  547. * aware of the following:
  548. * All SQL statements are stored anonymously for statistical purposes.
  549. * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
  550. * All rights reserved.
  551. */
  552. $cfg['SQLValidator']['use']      = FALSE;   // Make the SQL Validator available
  553. $cfg['SQLValidator']['username'] = '';      // If you have a custom username, specify it here (defaults to anonymous)
  554. $cfg['SQLValidator']['password'] = '';      // Password for username

  555. /**
  556. * Developers ONLY!
  557. * To use the following, please install the DBG extension from [url]http://dd.cron.ru/dbg/[/url]
  558. */
  559. $cfg['DBG']['enable'] = FALSE;              // Make the DBG stuff available
  560. $cfg['DBG']['profile']['enable'] = FALSE;   // Produce profiling results of PHP
  561. $cfg['DBG']['profile']['threshold'] = 0.5;  // Threshold of long running code to display
  562.                                             // Anything below the threshold is not displayed


  563. /**
  564. * MySQL settings
  565. */
  566. // Column types;
  567. // varchar, tinyint, text and date are listed first, based on estimated popularity
  568. $cfg['ColumnTypes'] = array(
  569.    'VARCHAR',
  570.    'TINYINT',
  571.    'TEXT',
  572.    'DATE',
  573.    'SMALLINT',
  574.    'MEDIUMINT',
  575.    'INT',
  576.    'BIGINT',
  577.    'FLOAT',
  578.    'DOUBLE',
  579.    'DECIMAL',
  580.    'DATETIME',
  581.    'TIMESTAMP',
  582.    'TIME',
  583.    'YEAR',
  584.    'CHAR',
  585.    'TINYBLOB',
  586.    'TINYTEXT',
  587.    'BLOB',
  588.    'MEDIUMBLOB',
  589.    'MEDIUMTEXT',
  590.    'LONGBLOB',
  591.    'LONGTEXT',
  592.    'ENUM',
  593.    'SET',
  594.    'BOOL'
  595. );

  596. // Attributes
  597. // Note: the "ON UPDATE CURRENT_TIMESTAMP" attribute is added dynamically
  598. // for MySQL >= 4.1.2, in libraries/tbl_properties.inc.php

  599. $cfg['AttributeTypes'] = array(
  600.    '',
  601.    'BINARY',
  602.    'UNSIGNED',
  603.    'UNSIGNED ZEROFILL'
  604. );

  605. // Available functions
  606. if ($cfg['ShowFunctionFields']) {
  607.     $cfg['Functions'] = array(
  608.        'ASCII',
  609.        'CHAR',
  610.        'SOUNDEX',
  611.        'LCASE',
  612.        'UCASE',
  613.        'NOW',
  614.        'PASSWORD',
  615.        'OLD_PASSWORD',
  616.        'MD5',
  617.        'SHA1',
  618.        'ENCRYPT',
  619.        'COMPRESS',
  620.        'UNCOMPRESS',
  621.        'RAND',
  622.        'LAST_INSERT_ID',
  623.        'COUNT',
  624.        'AVG',
  625.        'SUM',
  626.        'CURDATE',
  627.        'CURTIME',
  628.        'UTC_DATE',
  629.        'UTC_TIME',
  630.        'UTC_TIMESTAMP',
  631.        'FROM_DAYS',
  632.        'FROM_UNIXTIME',
  633.        'PERIOD_ADD',
  634.        'PERIOD_DIFF',
  635.        'TO_DAYS',
  636.        'UNIX_TIMESTAMP',
  637.        'USER',
  638.        'WEEKDAY',
  639.        'CONCAT'
  640.     );

  641.     // Which column types will be mapped to which Group?
  642.     $cfg['RestrictColumnTypes'] = array(
  643.        'VARCHAR'      => 'FUNC_CHAR',
  644.        'TINYINT'      => 'FUNC_NUMBER',
  645.        'TEXT'         => 'FUNC_CHAR',
  646.        'DATE'         => 'FUNC_DATE',
  647.        'SMALLINT'     => 'FUNC_NUMBER',
  648.        'MEDIUMINT'    => 'FUNC_NUMBER',
  649.        'INT'          => 'FUNC_NUMBER',
  650.        'BIGINT'       => 'FUNC_NUMBER',
  651.        'FLOAT'        => 'FUNC_NUMBER',
  652.        'DOUBLE'       => 'FUNC_NUMBER',
  653.        'DECIMAL'      => 'FUNC_NUMBER',
  654.        'DATETIME'     => 'FUNC_DATE',
  655.        'TIMESTAMP'    => 'FUNC_DATE',
  656.        'TIME'         => 'FUNC_DATE',
  657.        'YEAR'         => 'FUNC_DATE',
  658.        'CHAR'         => 'FUNC_CHAR',
  659.        'TINYBLOB'     => 'FUNC_CHAR',
  660.        'TINYTEXT'     => 'FUNC_CHAR',
  661.        'BLOB'         => 'FUNC_CHAR',
  662.        'MEDIUMBLOB'   => 'FUNC_CHAR',
  663.        'MEDIUMTEXT'   => 'FUNC_CHAR',
  664.        'LONGBLOB'     => 'FUNC_CHAR',
  665.        'LONGTEXT'     => 'FUNC_CHAR',
  666.        'ENUM'         => '',
  667.        'SET'          => ''
  668.     );

  669.     // Map above defined groups to any function
  670.     $cfg['RestrictFunctions'] = array(
  671.         'FUNC_CHAR'   => array(
  672.             'ASCII',
  673.             'CHAR',
  674.             'SOUNDEX',
  675.             'LCASE',
  676.             'UCASE',
  677.             'PASSWORD',
  678.             'OLD_PASSWORD',
  679.             'MD5',
  680.             'SHA1',
  681.             'ENCRYPT',
  682.             'COMPRESS',
  683.             'UNCOMPRESS',
  684.             'LAST_INSERT_ID',
  685.             'USER',
  686.             'CONCAT'
  687.         ),

  688.         'FUNC_DATE'   => array(
  689.             'NOW',
  690.             'CURDATE',
  691.             'CURTIME',
  692.             'FROM_DAYS',
  693.             'FROM_UNIXTIME',
  694.             'PERIOD_ADD',
  695.             'PERIOD_DIFF',
  696.             'TO_DAYS',
  697.             'UNIX_TIMESTAMP',
  698.             'UTC_DATE',
  699.             'UTC_TIME',
  700.             'UTC_TIMESTAMP',
  701.             'WEEKDAY'
  702.         ),

  703.         'FUNC_NUMBER' => array(
  704.             'ASCII',
  705.             'CHAR',
  706.             'MD5',
  707.             'SHA1',
  708.             'ENCRYPT',
  709.             'RAND',
  710.             'LAST_INSERT_ID',
  711.             'UNIX_TIMESTAMP',
  712.             'COUNT',
  713.             'AVG',
  714.             'SUM'
  715.         )
  716.     );

  717.     // Default functions for above defined groups
  718.     $cfg['DefaultFunctions'] = array(
  719.         'FUNC_CHAR'         => '',
  720.         'FUNC_DATE'         => '',
  721.         'FUNC_NUMBER'       => '',
  722.         'first_timestamp'   => 'NOW'
  723.     );


  724. } // end if

  725. // Search operators
  726. $cfg['NumOperators'] = array(
  727.    '=',
  728.    '>',
  729.    '>=',
  730.    '<',
  731.    '<=',
  732.    '!=',
  733.    'LIKE',
  734.    'NOT LIKE'
  735. );

  736. $cfg['TextOperators'] = array(
  737.    'LIKE',
  738.    'LIKE %...%',
  739.    'NOT LIKE',
  740.    '=',
  741.    '!=',
  742.    'REGEXP',
  743.    'NOT REGEXP'
  744. );

  745. $cfg['EnumOperators'] = array(
  746.    '=',
  747.    '!='
  748. );

  749. $cfg['SetOperators'] = array(
  750.    'IN',
  751.    'NOT IN'
  752. );

  753. $cfg['NullOperators'] = array(
  754.    'IS NULL',
  755.    'IS NOT NULL'
  756. );

  757. $cfg['UnaryOperators'] = array(
  758.    'IS NULL'     => 1,
  759.    'IS NOT NULL' => 1
  760. );

  761. ?>
复制代码

[ 本帖最后由 xinruby02 于 2007-4-12 18:55 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-11-21 08:20 , Processed in 0.087929 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表