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

 找回密码
 立即注册
搜索

安装phpmyadmin时出现的问题。。

[复制链接]
fanmaochen 发表于 2007-7-23 19:00:47 | 显示全部楼层 |阅读模式
看图

下面是config.default.php主要部分代码.

  1. */
  2. $cfg['PmaAbsoluteUri'] = 'http://*********/';

  3. /**
  4. * Disable the default warning that is displayed on the DB Details Structure page if
  5. * any of the required Tables for the relationfeatures could not be found
  6. */
  7. $cfg['PmaNoRelation_DisableWarning']  = FALSE;

  8. /**
  9. * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
  10. * at least one server configuration uses 'cookie' auth_type, enter here a
  11. * passphrase that will be used by blowfish. The maximum length seems to be 46
  12. * characters.
  13. */
  14. $cfg['blowfish_secret'] = 'dsa^$@@%asd';

  15. /**
  16. * Server(s) configuration
  17. */
  18. $i = 0;
  19. // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use
  20. // $cfg['Servers'][0]. You can disable a server config entry by setting host
  21. // to ''. If you want more than one server, just copy following section
  22. // (including $i incrementation) serveral times. There is no need to define
  23. // full server array, just define values you need to change.
  24. $i++;
  25. $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
  26. $cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
  27. $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
  28. $cfg['Servers'][$i]['ssl']           = false;        // Use SSL for connecting to MySQL server?
  29. $cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
  30. $cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
  31. $cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
  32.                                                     // (requires PHP >= 4.3.0)
  33. $cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
  34.                                                     // (this user must have read-only
  35. $cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
  36.                                                     // and "mysql/db" tables).
  37.                                                     // The controluser is also
  38.                                                     // used for all relational
  39.                                                     // features (pmadb)
  40. $cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (valid choices: config, http, HTTP, signon or cookie)
  41. $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  42. $cfg['Servers'][$i]['password']      = '******';          // MySQL password (only needed
  43.                                                     // with 'config' auth_type)
  44. $cfg['Servers'][$i]['SignonSession'] = '';          // Session to use for 'signon' auth method
  45. $cfg['Servers'][$i]['SignonURL']     = '';          // URL where to redirect user to login for 'signon' auth method
  46. $cfg['Servers'][$i]['LogoutURL']     = '';          // URL where to redirect user after logout
  47. $cfg['Servers'][$i]['nopassword']    = FALSE;       // Whether to try to connect without password
  48. $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
  49.                                                     // this db is displayed in left frame
  50.                                                     // It may also be an array of db-names, where sorting order is relevant.
  51. $cfg['Servers'][$i]['hide_db']       = '';          // Database name to be hidden from listings
  52. $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname

  53. $cfg['Servers'][$i]['pmadb']         = '';          // Database used for Relation, Bookmark and PDF Features
  54.                                                     // (see scripts/create_tables.sql)
  55.                                                     //   - leave blank for no support
  56.                                                     //     DEFAULT: 'phpmyadmin'
  57. $cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark table
  58.                                                     //   - leave blank for no bookmark support
  59.                                                     //     DEFAULT: 'pma_bookmark'
  60. $cfg['Servers'][$i]['relation']      = '';          // table to describe the relation between links (see doc)
  61.                                                     //   - leave blank for no relation-links support
  62.                                                     //     DEFAULT: 'pma_relation'
  63. $cfg['Servers'][$i]['table_info']    = '';          // table to describe the display fields
  64.                                                     //   - leave blank for no display fields support
  65.                                                     //     DEFAULT: 'pma_table_info'
  66. $cfg['Servers'][$i]['table_coords']  = '';          // table to describe the tables position for the PDF schema
  67.                                                     //   - leave blank for no PDF schema support
  68.                                                     //     DEFAULT: 'pma_table_coords'
  69. $cfg['Servers'][$i]['pdf_pages']     = '';          // table to describe pages of relationpdf
  70.                                                     //   - leave blank if you don't want to use this
  71.                                                     //     DEFAULT: 'pma_pdf_pages'
  72. $cfg['Servers'][$i]['column_info']   = '';          // table to store column information
  73.                                                     //   - leave blank for no column comments/mime types
  74.                                                     //     DEFAULT: 'pma_column_info'
  75. $cfg['Servers'][$i]['history']       = '';          // table to store SQL history
  76.                                                     //   - leave blank for no SQL query history
  77.                                                     //     DEFAULT: 'pma_history'
  78. $cfg['Servers'][$i]['designer_coords'] = '';        // table to store the coordinates for Designer
  79.                                                     //   - leave blank for no Designer feature
  80.                                                     //     DEFAULT: 'pma_designer_coords'
  81. $cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pma_* tables
  82.                                                     // are up to date. This prevents compatibility
  83.                                                     // checks and thereby increases performance.
  84. $cfg['Servers'][$i]['AllowRoot']     = TRUE;        // whether to allow root login
  85. $cfg['Servers'][$i]['AllowDeny']['order']           // Host authentication order, leave blank to not use
  86.                                      = '';
  87. $cfg['Servers'][$i]['AllowDeny']['rules']           // Host authentication rules, leave blank for defaults
  88.                                      = array();

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

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

  121. // Left frame setup
  122. $cfg['LeftFrameLight']        = TRUE;    // use a select-based menu and display only the
  123.                                          // current tables in the left frame.
  124. $cfg['LeftFrameDBTree']       = TRUE;    // turn the select-based light menu into a tree
  125. $cfg['LeftFrameDBSeparator']  = '_';     // the separator to sub-tree the select-based light menu tree
  126. $cfg['LeftFrameTableSeparator']= '__';   // Which string will be used to generate table prefixes
  127.                                          // to split/nest tables into multiple categories
  128. $cfg['LeftFrameTableLevel']   = '1';     // How many sublevels should be displayed when splitting
  129.                                          // up tables by the above Separator
  130. $cfg['ShowTooltip']           = TRUE;    // display table comment as tooltip in left frame
  131. $cfg['ShowTooltipAliasDB']    = FALSE;   // if ShowToolTip is enabled, this defines that table/db comments
  132. $cfg['ShowTooltipAliasTB']    = FALSE;   // are shown (in the left menu and db_structure) instead of
  133.                                          // table/db names. Setting ShowTooltipAliasTB to 'nested' will only
  134.                                          // use the Aliases for nested descriptors, not the table itself.

  135. $cfg['LeftDisplayLogo']       = TRUE;   // display logo at top of left frame
  136. $cfg['LeftLogoLink']          = 'main.php';   // where should logo link point to
  137.                                         // (can also contain an external URL)
  138. $cfg['LeftLogoLinkWindow']    = 'main'; // whether to open the linked page
  139.                                         // in the main window ('main')
  140.                                         // or in a new window ('new')
  141. $cfg['LeftDisplayServers']    = FALSE;  // display server choice at top of left frame
  142. $cfg['DisplayServersList']    = FALSE;  // server choice as links
  143. $cfg['DisplayDatabasesList']  = FALSE;  // database choice in light as links

  144. // In the main frame, at startup...
  145. $cfg['ShowStats']             = TRUE;   // allow to display statistics and space usage in
  146.                                         // the pages about database details and table
  147.                                         // properties
  148. $cfg['ShowPhpInfo']           = FALSE;  // show php info link
  149. $cfg['ShowServerInfo']        = TRUE;   // show MySQL server information
  150. $cfg['ShowChgPassword']       = FALSE;  // show change password link
  151. $cfg['ShowCreateDb']          = TRUE;   // show create database form
  152. $cfg['SuggestDBName']         = TRUE;   // suggest a new DB name if possible (false = keep empty)

  153. // In browse mode...
  154. $cfg['ShowBlob']              = FALSE;  // display blob field contents
  155. $cfg['NavigationBarIconic']   = 'both'; // Use icons instead of text for the navigation bar buttons
  156.                                         // and on right panel top menu (server db table) (TRUE|FALSE|'both')
  157. $cfg['ShowAll']               = FALSE;  // allows to display all the rows
  158. $cfg['MaxRows']               = 30;     // maximum number of rows to display
  159. $cfg['Order']                 = 'ASC';  // default for 'ORDER BY' clause (valid
  160.                                         // values are 'ASC', 'DESC' or 'SMART' -ie
  161.                                         // descending order for fields of type
  162.                                         // TIME, DATE, DATETIME & TIMESTAMP,
  163.                                         // ascending order else-)

  164. // In edit mode...
  165. $cfg['ProtectBinary']         = 'blob'; // disallow editing of binary fields
  166.                                         // valid values are:
  167.                                         //   FALSE  allow editing
  168.                                         //   'blob' allow editing except for BLOB fields
  169.                                         //   'all'  disallow editing
  170. $cfg['ShowFunctionFields']    = TRUE;   // Display the function fields in edit/insert mode
  171. $cfg['CharEditing']           = 'input';
  172.                                         // Which editor should be used for CHAR/VARCHAR fields:
  173.                                         //  input - allows limiting of input length
  174.                                         //  textarea - allows newlines in fields
  175. $cfg['InsertRows']            = 2;      // How many rows can be inserted at one time

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


  179. // For the export features...
  180. $cfg['ZipDump']               = TRUE;   // Allow the use of zip/gzip/bzip
  181. $cfg['GZipDump']              = TRUE;   // compression for
  182. $cfg['BZipDump']              = TRUE;   // dump files
  183. $cfg['CompressOnFly']         = TRUE;   // Will compress gzip/bzip2 exports on
  184.                                         // fly without need for much memory.
  185.                                         // If you encounter problems with
  186.                                         // created gzip/bzip2 files disable
  187.                                         // this feature.

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

  193. $cfg['DefaultTabServer']      = 'main.php';
  194.                                    // Possible values:
  195.                                    // 'main.php' = the welcome page
  196.                                    // (recommended for multiuser setups)
  197.                                    // 'server_databases.php' = list of databases
  198.                                    // 'server_status.php' = runtime information
  199.                                    // 'server_variables.php' = MySQL server variables
  200.                                    // 'server_privileges.php' = user management
  201.                                    // 'server_processlist.php' = process list
  202. $cfg['DefaultTabDatabase']    = 'db_structure.php';
  203.                                    // Possible values:
  204.                                    // 'db_structure.php' = tables list
  205.                                    // 'db_sql.php' = sql form
  206.                                    // 'db_search.php' = search query
  207.                                    // 'db_operations.php' = operations on database
  208. $cfg['DefaultTabTable']       = 'tbl_structure.php';
  209.                                    // Possible values:
  210.                                    // 'tbl_structure.php' = fields list
  211.                                    // 'tbl_sql.php' = sql form
  212.                                    // 'tbl_select.php' = select page
  213.                                    // 'tbl_change.php' = insert row page
  214.                                    // 'sql.php' = browse page

  215. /**
  216. * Export defaults
  217. */

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

  220. $cfg['Export']['asfile']                    = FALSE;
  221. $cfg['Export']['charset']                   = '';
  222. $cfg['Export']['onserver']                  = FALSE;
  223. $cfg['Export']['onserver_overwrite']        = FALSE;
  224. $cfg['Export']['remember_file_template']    = TRUE;
  225. $cfg['Export']['file_template_table']       = '__TABLE__';
  226. $cfg['Export']['file_template_database']    = '__DB__';
  227. $cfg['Export']['file_template_server']      = '__SERVER__';

  228. $cfg['Export']['ods_columns']               = FALSE;
  229. $cfg['Export']['ods_null']                  = 'NULL';

  230. $cfg['Export']['odt_structure']             = TRUE;
  231. $cfg['Export']['odt_data']                  = TRUE;
  232. $cfg['Export']['odt_columns']               = TRUE;
  233. $cfg['Export']['odt_relation']              = TRUE;
  234. $cfg['Export']['odt_comments']              = TRUE;
  235. $cfg['Export']['odt_mime']                  = TRUE;
  236. $cfg['Export']['odt_null']                  = 'NULL';

  237. $cfg['Export']['htmlexcel_columns']         = FALSE;
  238. $cfg['Export']['htmlexcel_null']            = 'NULL';

  239. $cfg['Export']['htmlword_structure']        = TRUE;
  240. $cfg['Export']['htmlword_data']             = TRUE;
  241. $cfg['Export']['htmlword_columns']          = FALSE;
  242. $cfg['Export']['htmlword_null']             = 'NULL';

  243. $cfg['Export']['xls_columns']               = FALSE;
  244. $cfg['Export']['xls_null']                  = 'NULL';

  245. $cfg['Export']['csv_columns']               = FALSE;
  246. $cfg['Export']['csv_null']                  = 'NULL';
  247. $cfg['Export']['csv_separator']             = ';';
  248. $cfg['Export']['csv_enclosed']              = '"';
  249. $cfg['Export']['csv_escaped']               = '\\';
  250. $cfg['Export']['csv_terminated']            = 'AUTO';
  251. $cfg['Export']['excel_columns']             = FALSE;
  252. $cfg['Export']['excel_null']                = 'NULL';
  253. $cfg['Export']['excel_edition']             = 'win'; // win/mac

  254. $cfg['Export']['latex_structure']           = TRUE;
  255. $cfg['Export']['latex_data']                = TRUE;
  256. $cfg['Export']['latex_columns']             = TRUE;
  257. $cfg['Export']['latex_relation']            = TRUE;
  258. $cfg['Export']['latex_comments']            = TRUE;
  259. $cfg['Export']['latex_mime']                = TRUE;
  260. $cfg['Export']['latex_null']                = '\textit{NULL}';
  261. $cfg['Export']['latex_caption']             = TRUE;
  262. $cfg['Export']['latex_structure_caption']   = 'strLatexStructure';
  263. $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
  264. $cfg['Export']['latex_data_caption']        = 'strLatexContent';
  265. $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
  266. $cfg['Export']['latex_data_label']          = 'tab:__TABLE__-data';
  267. $cfg['Export']['latex_structure_label']     = 'tab:__TABLE__-structure';

  268. $cfg['Export']['sql_structure']             = TRUE;
  269. $cfg['Export']['sql_data']                  = TRUE;
  270. $cfg['Export']['sql_compatibility']         = 'NONE';
  271. $cfg['Export']['sql_disable_fk']            = FALSE;
  272. $cfg['Export']['sql_use_transaction']       = FALSE;
  273. $cfg['Export']['sql_drop_database']         = FALSE;
  274. $cfg['Export']['sql_drop_table']            = FALSE;
  275. $cfg['Export']['sql_if_not_exists']         = TRUE;
  276. $cfg['Export']['sql_procedure_function']    = FALSE;
  277. $cfg['Export']['sql_auto_increment']        = TRUE;
  278. $cfg['Export']['sql_backquotes']            = TRUE;
  279. $cfg['Export']['sql_dates']                 = FALSE;
  280. $cfg['Export']['sql_relation']              = FALSE;
  281. $cfg['Export']['sql_columns']               = TRUE;
  282. $cfg['Export']['sql_delayed']               = FALSE;
  283. $cfg['Export']['sql_ignore']                = FALSE;
  284. $cfg['Export']['sql_hex_for_binary']        = TRUE;
  285. $cfg['Export']['sql_type']                  = 'insert'; // insert/update/replace
  286. $cfg['Export']['sql_extended']              = TRUE;
  287. $cfg['Export']['sql_max_query_size']        = 50000;
  288. $cfg['Export']['sql_comments']              = FALSE;
  289. $cfg['Export']['sql_mime']                  = FALSE;
  290. $cfg['Export']['sql_header_comment']        = ''; // \n is replaced by new line

  291. $cfg['Export']['pdf_structure']             = FALSE;
  292. $cfg['Export']['pdf_data']                  = TRUE;
  293. $cfg['Export']['pdf_report_title']          = '';

  294. /**
  295. * Import defaults
  296. */
  297. $cfg['Import']['format'] = 'sql';
  298. $cfg['Import']['allow_interrupt'] = TRUE;
  299. $cfg['Import']['skip_queries'] = '0';
  300. $cfg['Import']['sql_compatibility'] = 'NONE';
  301. $cfg['Import']['csv_replace'] = FALSE;
  302. $cfg['Import']['csv_terminated'] = ';';
  303. $cfg['Import']['csv_enclosed'] = '"';
  304. $cfg['Import']['csv_escaped'] = '\\';
  305. $cfg['Import']['csv_new_line'] = 'auto';
  306. $cfg['Import']['csv_columns'] = '';
  307. $cfg['Import']['ldi_replace'] = FALSE;
  308. $cfg['Import']['ldi_terminated'] = ';';
  309. $cfg['Import']['ldi_enclosed'] = '"';
  310. $cfg['Import']['ldi_escaped'] = '\\';
  311. $cfg['Import']['ldi_new_line'] = 'auto';
  312. $cfg['Import']['ldi_columns'] = '';
  313. $cfg['Import']['ldi_local_option'] = 'auto'; // 'auto' for autodetection, TRUE or FALSE for forcing


  314. /**
  315. * Link to the official MySQL documentation.
  316. * Be sure to include no trailing slash on the path.
  317. * See [url]http://dev.mysql.com/doc/[/url] for more information
  318. * about MySQL manuals and their types.
  319. */
  320. $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';

  321. /**
  322. * Type of MySQL documentation:
  323. *   viewable   - "viewable online", current one used on MySQL website
  324. *   searchable - "Searchable, with user comments"
  325. *   chapters   - "HTML, one page per chapter"
  326. *   chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
  327. *   big        - "HTML, all on one page"
  328. *   old        - old style used in phpMyAdmin 2.3.0 and sooner
  329. *   none       - do not show documentation links
  330. */
  331. $cfg['MySQLManualType'] = 'viewable';


  332. /**
  333. * PDF options
  334. */
  335. $cfg['PDFPageSizes']        = array('A3', 'A4', 'A5', 'letter', 'legal');
  336. $cfg['PDFDefaultPageSize']  = 'A4';


  337. /**
  338. * Language and charset conversion settings
  339. */
  340. // Default language to use, if not browser-defined or user-defined
  341. $cfg['DefaultLang'] = 'en-iso-8859-1';

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

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

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

  350. // Default charset to use for recoding of MySQL queries, does not take
  351. // any effect when charsets recoding is switched off by
  352. // $cfg['AllowAnywhereRecoding'] or in language file
  353. // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
  354. $cfg['DefaultCharset'] = 'iso-8859-1';

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

  360. // You can select here which functions will be used for charset conversion.
  361. // Possible values are:
  362. //      auto   - automatically use available one (first is tested iconv, then
  363. //               recode)
  364. //      iconv  - use iconv or libiconv functions
  365. //      recode - use recode_string function
  366. $cfg['RecodingEngine'] = 'auto';

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

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

  408. /**
  409. * Customization & design
  410. *
  411. * The graphical settings are now located in themes/themename/layout.inc.php
  412. */

  413. $cfg['LeftPointerEnable']   = TRUE;         // enable the left panel pointer
  414.                                             // (used when LeftFrameLight is FALSE)
  415.                                             // see also LeftPointerColor
  416.                                             // in layout.inc.php

  417. $cfg['BrowsePointerEnable'] = TRUE;        // enable the browse pointer
  418.                                             // see also BrowsePointerColor
  419.                                             // in layout.inc.php

  420. $cfg['BrowseMarkerEnable'] = TRUE;         // enable the browse marker
  421.                                             // see also BrowseMarkerColor
  422.                                             // in layout.inc.php

  423. $cfg['TextareaCols']        = 40;           // textarea size (columns) in edit mode
  424.                                             // (this value will be emphasized (*2) for sql
  425.                                             // query textareas and (*1.25) for query window)
  426. $cfg['TextareaRows']        = 7;            // textarea size (rows) in edit mode
  427. $cfg['LongtextDoubleTextarea'] = TRUE;      // double size of textarea size for longtext fields
  428. $cfg['TextareaAutoSelect']  = TRUE;         // autoselect when clicking in the textarea of the querybox
  429. $cfg['CharTextareaCols']    = 40;           // textarea size (columns) for CHAR/VARCHAR
  430. $cfg['CharTextareaRows']    = 2;            // textarea size (rows) for CHAR/VARCHAR
  431. $cfg['CtrlArrowsMoving']    = TRUE;         // Enable Ctrl+Arrows moving between fields when editing?
  432. $cfg['LimitChars']          = 50;           // Max field data length in browse mode for all non-numeric fields
  433. $cfg['ModifyDeleteAtLeft']  = TRUE;         // show edit/delete links on left side of browse
  434.                                             // (or at the top with vertical browse)
  435. $cfg['ModifyDeleteAtRight'] = FALSE;        // show edit/delete links on right side of browse
  436.                                             // (or at the bottom with vertical browse)
  437. $cfg['DefaultDisplay']      = 'horizontal'; // default display direction
  438.                                             // (horizontal|vertical|horizontalflipped)
  439. $cfg['DefaultPropDisplay']  = 3;            // default display direction for altering/
  440.                                             // creating columns (tbl_properties)
  441.                                             // (horizontal|vertical|<number>)
  442.                                             // number indicates maximal number for which vertical model is used

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

  448. $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
  449. $cfg['QueryWindowWidth']    = 550;          // Width of Query window
  450. $cfg['QueryWindowHeight']   = 310;          // Height of Query window
  451. $cfg['QueryHistoryDB']      = FALSE;         // Set to TRUE if you want DB-based query history.
  452.                                             // If FALSE, this utilizes JS-routines to display
  453.                                             // query history (lost by window close)
  454. $cfg['QueryWindowDefTab']   = 'sql';        // which tab to display in the querywindow on startup
  455.                                             // (sql|files|history|full)
  456. $cfg['QueryHistoryMax']     = 25;           // When using DB-based query history, how many entries
  457.                                             // should be kept?
  458. $cfg['BrowseMIME']          = TRUE;         // Use MIME-Types (stored in column comments table) for
  459. $cfg['MaxExactCount']       = 20000;        // When approximate count < this, PMA will get exact count for table rows.
  460. $cfg['MaxExactCountViews']  = 0;            // Zero means that no row count is done for views; see the doc
  461. $cfg['WYSIWYG-PDF']         = TRUE;         // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
  462.                                             // the PDF page editor. Requires an IE6/Mozilla based browser.

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


  464. //-----------------------------------------------------------------------------
  465. // custom-setup by mkkeck: 2004-05-04
  466. //    some specials for new icons and scrollings
  467. /**
  468. * @todo 2004-05-08 rabus: We need to rearrange these variables.
  469. */

  470. // Window title settings
  471. $cfg['TitleTable']          = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
  472. $cfg['TitleDatabase']       = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
  473. $cfg['TitleServer']         = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
  474. $cfg['TitleDefault']        = '@HTTP_HOST@ | @PHPMYADMIN@';

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

  478. // theme manager
  479. $cfg['ThemePath']           = './themes';    // using themes manager please set up here the path to 'themes'
  480.                                              // else leave empty
  481. $cfg['ThemeManager']        = TRUE;          // if you want to use selectable themes and if ThemesPath not empty
  482.                                              // set it to true, else set it to false (default is false);
  483. $cfg['ThemeDefault']        = 'original';         // set up default theme, if ThemePath not empty
  484.                                              // you can set up here an valid path to themes or 'original' for
  485.                                              // the original pma-theme
  486. $cfg['ThemePerServer']      = FALSE;         // allow different theme for each configured server

  487. //-----------------------------------------------------------------------------


  488. /**
  489. * Default queries
  490. * %d will be replaced by the database name.
  491. * %t will be replaced by the table name.
  492. * %f will be replaced by a list of field names.
  493. * (%t and %f only applies to DefaultQueryTable)
  494. */
  495. $cfg['DefaultQueryTable']    = 'SELECT * FROM %t WHERE 1';
  496. $cfg['DefaultQueryDatabase'] = '';

  497. /**
  498. * SQL Query box settings
  499. * These are the links display in all of the SQL Query boxes
  500. */
  501. $cfg['SQLQuery']['Edit']      = TRUE;       // Edit link to change a query
  502. $cfg['SQLQuery']['Explain']   = TRUE;       // EXPLAIN on SELECT queries
  503. $cfg['SQLQuery']['ShowAsPHP'] = TRUE;       // Wrap a query in PHP
  504. $cfg['SQLQuery']['Validate']  = FALSE;      // Validate a query (see $cfg['SQLValidator'] as well)
  505. $cfg['SQLQuery']['Refresh']   = TRUE;       // Refresh the results page


  506. /**
  507. * Webserver upload/save/import directories
  508. */
  509. $cfg['UploadDir']             = '';         // Directory for uploaded files that can be executed by
  510.                                             // phpMyAdmin. For example './upload'. Leave empty for
  511.                                             // no upload directory support. Use %u for username
  512.                                             // inclusion.
  513. $cfg['SaveDir']               = '';         // Directory where phpMyAdmin can save exported data on
  514.                                             // server. For example './save'. Leave empty for no save
  515.                                             // directory support. Use %u for username inclusion.
  516. $cfg['TempDir']               = '';         // Directory where phpMyAdmin can save temporary files.
  517.                                             // This is needed for MS Excel export, see documentation
  518.                                             // how to enable that.


  519. /**
  520. * Misc. settings
  521. */
  522. $cfg['GD2Available']          = 'auto';     // Is GD >= 2 available? Set to yes/no/auto. 'auto'
  523.                                             // does autodetection, which is a bit expensive for
  524.                                             // php < 4.3.0, but it is the only safe vay how to
  525.                                             // determine GD version.
  526. $cfg['TrustedProxies']        = array();    // List of trusted proxies for IP allow/deny

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

  534. /**
  535. * If you wish to use the SQL Validator service, you should be
  536. * aware of the following:
  537. * All SQL statements are stored anonymously for statistical purposes.
  538. * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
  539. * All rights reserved.
  540. */
  541. $cfg['SQLValidator']['use']      = FALSE;   // Make the SQL Validator available
  542. $cfg['SQLValidator']['username'] = '';      // If you have a custom username, specify it here (defaults to anonymous)
  543. $cfg['SQLValidator']['password'] = '';      // Password for username

  544. /**
  545. * Developers ONLY!
  546. * To use the following, please install the DBG extension from [url]http://dd.cron.ru/dbg/[/url]
  547. */
  548. $cfg['DBG']['enable'] = FALSE;              // Make the DBG stuff available
  549. $cfg['DBG']['profile']['enable'] = FALSE;   // Produce profiling results of PHP
  550. $cfg['DBG']['profile']['threshold'] = 0.5;  // Threshold of long running code to display
  551.                                             // Anything below the threshold is not displayed


  552. /**
  553. * MySQL settings
  554. */
  555. // Column types;
  556. // varchar, tinyint, text and date are listed first, based on estimated popularity
  557. $cfg['ColumnTypes'] = array(
  558.    'VARCHAR',
  559.    'TINYINT',
  560.    'TEXT',
  561.    'DATE',
  562.    'SMALLINT',
  563.    'MEDIUMINT',
  564.    'INT',
  565.    'BIGINT',
  566.    'FLOAT',
  567.    'DOUBLE',
  568.    'DECIMAL',
  569.    'DATETIME',
  570.    'TIMESTAMP',
  571.    'TIME',
  572.    'YEAR',
  573.    'CHAR',
  574.    'TINYBLOB',
  575.    'TINYTEXT',
  576.    'BLOB',
  577.    'MEDIUMBLOB',
  578.    'MEDIUMTEXT',
  579.    'LONGBLOB',
  580.    'LONGTEXT',
  581.    'ENUM',
  582.    'SET',
  583.    'BOOL'
  584. );

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

  588. $cfg['AttributeTypes'] = array(
  589.    '',
  590.    'BINARY',
  591.    'UNSIGNED',
  592.    'UNSIGNED ZEROFILL'
  593. );

  594. // Available functions
  595. if ($cfg['ShowFunctionFields']) {
  596.     $cfg['Functions'] = array(
  597.        'ASCII',
  598.        'CHAR',
  599.        'SOUNDEX',
  600.        'LCASE',
  601.        'UCASE',
  602.        'NOW',
  603.        'PASSWORD',
  604.        'OLD_PASSWORD',
  605.        'MD5',
  606.        'SHA1',
  607.        'ENCRYPT',
  608.        'COMPRESS',
  609.        'UNCOMPRESS',
  610.        'RAND',
  611.        'LAST_INSERT_ID',
  612.        'COUNT',
  613.        'AVG',
  614.        'SUM',
  615.        'CURDATE',
  616.        'CURTIME',
  617.        'UTC_DATE',
  618.        'UTC_TIME',
  619.        'UTC_TIMESTAMP',
  620.        'FROM_DAYS',
  621.        'FROM_UNIXTIME',
  622.        'PERIOD_ADD',
  623.        'PERIOD_DIFF',
  624.        'TO_DAYS',
  625.        'UNIX_TIMESTAMP',
  626.        'USER',
  627.        'WEEKDAY',
  628.        'CONCAT',
  629.        'HEX',
  630.        'UNHEX'
  631.     );

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

  660.     // Map above defined groups to any function
  661.     $cfg['RestrictFunctions'] = array(
  662.         'FUNC_CHAR'   => array(
  663.             'ASCII',
  664.             'CHAR',
  665.             'SOUNDEX',
  666.             'LCASE',
  667.             'UCASE',
  668.             'PASSWORD',
  669.             'OLD_PASSWORD',
  670.             'MD5',
  671.             'SHA1',
  672.             'ENCRYPT',
  673.             'COMPRESS',
  674.             'UNCOMPRESS',
  675.             'LAST_INSERT_ID',
  676.             'USER',
  677.             'CONCAT',
  678.                 'HEX',
  679.                 'UNHEX'
  680.         ),

  681.         'FUNC_DATE'   => array(
  682.             'NOW',
  683.             'CURDATE',
  684.             'CURTIME',
  685.             'FROM_DAYS',
  686.             'FROM_UNIXTIME',
  687.             'PERIOD_ADD',
  688.             'PERIOD_DIFF',
  689.             'TO_DAYS',
  690.             'UNIX_TIMESTAMP',
  691.             'UTC_DATE',
  692.             'UTC_TIME',
  693.             'UTC_TIMESTAMP',
  694.             'WEEKDAY'
  695.         ),

  696.         'FUNC_NUMBER' => array(
  697.             'ASCII',
  698.             'CHAR',
  699.             'MD5',
  700.             'SHA1',
  701.             'ENCRYPT',
  702.             'RAND',
  703.             'LAST_INSERT_ID',
  704.             'UNIX_TIMESTAMP',
  705.             'COUNT',
  706.             'AVG',
  707.             'SUM'
  708.         )
  709.     );

  710.     // Default functions for above defined groups
  711.     $cfg['DefaultFunctions'] = array(
  712.         'FUNC_CHAR'         => '',
  713.         'FUNC_DATE'         => '',
  714.         'FUNC_NUMBER'       => '',
  715.         'first_timestamp'   => 'NOW'
  716.     );


  717. } // end if

  718. // Search operators
  719. $cfg['NumOperators'] = array(
  720.    '=',
  721.    '>',
  722.    '>=',
  723.    '<',
  724.    '<=',
  725.    '!=',
  726.    'LIKE',
  727.    'NOT LIKE'
  728. );

  729. $cfg['TextOperators'] = array(
  730.    'LIKE',
  731.    'LIKE %...%',
  732.    'NOT LIKE',
  733.    '=',
  734.    '!=',
  735.    'REGEXP',
  736.    'NOT REGEXP'
  737. );

  738. $cfg['EnumOperators'] = array(
  739.    '=',
  740.    '!='
  741. );

  742. $cfg['SetOperators'] = array(
  743.    'IN',
  744.    'NOT IN'
  745. );

  746. $cfg['NullOperators'] = array(
  747.    'IS NULL',
  748.    'IS NOT NULL'
  749. );

  750. $cfg['UnaryOperators'] = array(
  751.    'IS NULL'     => 1,
  752.    'IS NOT NULL' => 1
  753. );

  754. ?>
复制代码
回复

使用道具 举报

 楼主| fanmaochen 发表于 2007-7-23 20:44:55 | 显示全部楼层
郁闷!
回复

使用道具 举报

 楼主| fanmaochen 发表于 2007-7-23 22:04:42 | 显示全部楼层
phpMyAdmin 无法读取您的配置文件!
这可能是因为 php 发现了语法错误或 php 未能找到文档。
请直接使用下面的链接调用配置文件,然后读取您收到的 php 错误提示。通常的错误都是因为某处漏了引号或分号。
如果您看到的是一个空白页,则代表没有任何问题。

./config.inc.php


无法载入 mcrypt 扩展,<br />请检查 PHP 配置


这是新问题。。。。。。。。。。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-11-22 00:26 , Processed in 0.114406 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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