- 论坛徽章:
- 0
|
记一次phpMyAdmin配置
修改:[color="#ff0000"]phpMyAdmin-2.9.2-all-languages/libraries/config.default.php
[color="#ff0000"]
[color="#ff0000"]
$cfg['PmaAbsoluteUri'] = 'http://www.test.org/phpMyadmin/';(这里要有/的)
[color="#ff0000"]$cfg['Servers'][$i]['host'] = '127.0.0.1'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = [color="#0080ff"]'33060'; // MySQL port - leave blank for default port
$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')
$cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires 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).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (valid choices: config, http, HTTP or cookie)
$cfg['Servers'][$i]['user'] = [color="#0080ff"]'admin'; // MySQL user
$cfg['Servers'][$i]['password'] = [color="#0080ff"]'12345'; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['nopassword'] = FALSE; // Whether to try to connect without password
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
// this db is displayed in ---------------------------------------
[color="#ff0000"]如果报错:
[color="#ff0000"]Wrong permissions on configuration file, should not be world writable!
#chmod 755 [color="#ff0000"]config.default.php
[color="#ff0000"]
[color="#ff0000"]$cfg['Servers'][$i]['host'] = 'localhost';
[color="#ff0000"]改为$cfg['Servers'][$i]['host'] = '127.0.0.1'; 即可
![]()
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28922/showart_281085.html |
|