<?php
/* $id: config.inc.php,v 1.204.2.1 2003/10/10 14:24:24 nijel exp $ */
// vim: expandtab sw=4 ts=4 sts=4:
/**
* phpmyadmin configuration file
*
* all directives are explained in documentation.html
*/
/**
* sets the php error reporting - please do not change this line!
*/
if (!isset($old_error_reporting)) {
error_reporting(e_all);
@ini_set('display_errors', '1');
}
/**
* your phpmyadmin url
*
* complete the variable below with the full url ie
* [url]http://www.your_web.net/path_to_your_phpmyadmin_directory/[/url]
*
* it must contain characters that are valid for a url, and the path is
* case sensitive on some web servers, for example unix-based servers.
*
* in most cases you can leave this variable empty, as the correct value
* will be detected automatically. however, we recommend that you do
* test to see that the auto-detection code works in your system. a good
* test is to browse a table, then edit a row and save it. there will be
* an error message if phpmyadmin cannot auto-detect the correct value.
*
* if the auto-detection code does work properly, you can set to true the
* $cfg['pmaabsoluteuri_disablewarning'] variable below.
*/
$cfg['pmaabsoluteuri'] = '';-----这里设置你的phpmyadmin的url,如:[url]http://localhost/phpmyadmin/[/url]
/**
* disable the default warning about $cfg['pmaabsoluteuri'] not being set
* you should use this if and only if the pmaabsoluteuri auto-detection
* works perfectly.
*/
$cfg['pmaabsoluteuri_disablewarning'] = false;
/**
* disable the default warning that is displayed on the db details structure page if
* any of the required tables for the relationfeatures could not be found
*/
$cfg['pmanorelation_disablewarning'] = false;
/**
* the 'cookie' auth_type uses blowfish algorithm to encrypt the password. if
* at least one server configuration uses 'cookie' auth_type, enter here a
* passphrase that will be used by blowfish.
$cfg['blowfish_secret'] = '';-----设定好root密码后这里也要填写
/**
* server(s) configuration
*/
$i = 0;
// the $cfg['servers'] array starts with $cfg['servers'][1]. do not use $cfg['servers'][0].
// you can disable a server config entry by setting host to ''.
$i++;
$cfg['servers'][$i]['host'] = 'localhost'; // mysql hostname or ip address----这里可以设定远程mysql服务器ip地址
$cfg['servers'][$i]['port'] = ''; // mysql port - leave blank for default port-----默认为3306
$cfg['servers'][$i]['socket'] = ''; // path to the socket - leave blank for default socket
$cfg['servers'][$i]['connect_type'] = 'tcp'; // how to connect to mysql server ('tcp' or 'socket')-----连接mysql服务器的方式
$cfg['servers'][$i]['compress'] = false; // use compressed protocol for the mysql connection
// (requires php >= 4.3.0)-----是否使用压缩协议,php版本须>= 4.3.0
$cfg['servers'][$i]['controluser'] = ''; // mysql control user settings
// (this user must have read-only
$cfg['servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables)-----mysql控制用户设定,该用户只对mysql数据库下的user和db表有完全权限
$cfg['servers'][$i]['auth_type'] = 'config';
// authentication method (config, http or cookie based)?-----如果php安装模式为apache,可以使用http和cookie;如果php安装模式为cgi,可以使用cookie;默认为config,是不安全的,不推荐。