常州五颜六色网络技术有限公司 -> 技术文档 -> 配置 phpMyAdmin2.8 登录 -> 注册 -> 回复主题 -> 发表主题

无言沙漠 2006-05-18 17:31
下载:官方站点 http://www.phpmyadmin.net/ 下载

对phpmyadmin进行设置:

解压后得到一个目录,与以前的版本不同,2.8版的phpMyAdmin 的根目录中没有名为 config.inc.php 的配置文件,现在的配置文件是 libraries/config.default.php 进在该文件中

找到 $cfg['PmaAbsoluteUri']
修改你将上传到空间的phpMyAdmin的网址
如:$cfg['PmaAbsoluteUri'] = 'http://你的站点/phpmyadmin/';

还有下面的
$cfg['Servers'][$i]['host'] = 'localhost';(通常用默认,也有例外)

$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
config: 按照 自身 libraries/config.default.php 文件中的配置提供用户名和密码
cookie:用于输入口令方式登陆,如果选择此项,需要设置$cfg['blowfish_secret'] = 'cookie';(见后面的介绍)

$cfg['Servers'][$i]['user'] = 'root'; // MySQL user(用户名,自己机里用root,在网上设你的mysql用户名)
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
自己机里不用设
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only(你只有一个数据就设置一下)

注:$cfg['blowfish_secret'] = '';
本机的话不需要设置,但是网络的话需要设置成cookie:
$cfg['blowfish_secret'] = 'cookie';

设置完毕可以上传到网上了。

浏览http://你的站点/phpmyadmin/ 当然你设置不同就用那个网址。
如果设置$cfg['Servers'][$i]['auth_type'] = 'cookie'; 所以显示会要求输入帐号密码,这里的帐号和密码你在提供商获得的mysql数据库的帐号、密码。


查看完整版本: [-- 配置 phpMyAdmin2.8 --] [-- top --]



Copyright © 2005-2014 5y6s Inc. 苏ICP备05001866号 Powered by PHPWind 5.0.1
Time 0.007419 second(s),query:3 Gzip enabled