Calendar
数据载入中,请稍候......
Placard
数据载入中,请稍候......
Category
数据载入中,请稍候......
Latest Entries
数据载入中,请稍候......
Latest Comments
数据载入中,请稍候......
Last Messages
数据载入中,请稍候......
User Login
数据载入中,请稍候......
Links
Information
数据载入中,请稍候......
Search
Other


Welcome to my blog!
  配置 phpMyAdmin2.8.2 方法
 

对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';(见后面的介绍)
当验证使用config时,需要填写下面两行
    $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(你只有一个数据就设置一下)
当验证使用cookie时
    (也就是$cfg['Servers'][$i]['auth_type'] = 'cookie';)
     注:$cfg['blowfish_secret'] = '';
本机的话不需要设置,但是网络的话需要设置成cookie:
     $cfg['blowfish_secret'] = 'cookie';
     这时
         $cfg['Servers'][$i]['user'] = 'root';
         $cfg['Servers'][$i]['password'] = '';
     这两处设置为默认

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

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

[ 阅读全文 | 回复(0) | 引用通告 | 编辑

  Post  by  badboy 发表于 2006-7-19 11:18:05
发表评论:
数据载入中,请稍候......
数据载入中,请稍候......