1、基本上不用配置,只需设置一下:
$cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin/'; //地址
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
如果要中文显示设置以下两项:
$cfg['DefaultLang'] = 'zh';
$cfg['DefaultCharset'] = 'iso-8859-1';2、存放的路径与PHP和MYSQL的安装路径没有任何关系。
$cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin/'; //地址
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
如果要中文显示设置以下两项:
$cfg['DefaultLang'] = 'zh';
$cfg['DefaultCharset'] = 'iso-8859-1';2、存放的路径与PHP和MYSQL的安装路径没有任何关系。
*****最新版的phpMyadmin比以前的几版又强大了很多!推荐大家使用!首选修改:
$cfgPmaAbsoluteUri = '';
改成你的phpmyadmin所在的目录
$cfgPmaAbsoluteUri = 'http://localhost/myadmin/';
需要修改一下目录下的config.inc.php文件,把174行的:
$cfgDefaultLang = 'en';
改为
$cfgDefaultLang = 'zh';这样就成中文版的了!虽然意思有点别扭……呵呵~!还有这里:
$cfgServers[$i]['host'] = 'localhost'; // MySQL hostname
$cfgServers[$i]['port'] = ''; // MySQL port - leave blank for default port
$cfgServers[$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfgServers[$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfgServers[$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfgServers[$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables)
$cfgServers[$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfgServers[$i]['user'] = 'root'; // MySQL user
$cfgServers[$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)
$cfgServers[$i]['only_db'] = ''; // If set to a db-name, only
// this db is displayed
// at left frame
// It may also be an array
// of db-names
$cfgServers[$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
$cfgServers[$i]['bookdb'] = ''; // Book db - leave blank for no book support
$cfgServers[$i]['booktable'] = ''; // Book table - leave blank for no book support
$cfgServers[$i]['relation'] = ''; // table to describe the relation between links (see doc)
// - leave blank for no relation-links support一般按默认就可以了!这里是有关登录MYSQL服务器的设置,按上面改,缺啥补啥,这样就是使用MYSQL的缺省配置啦~呵呵:)
需要改服务器的配置么?
$cfgServers[$i]['auth_type'] = 'http';
2、另外还需要将PHP安装成模块方式