phpMyAdmin2.8.2.1安装指南

来源:百度文库 编辑:神马文学网 时间:2024/04/29 20:27:50
先下载一份最新版的phpMyAdmin MYSQL管理器。
也可以看 软件安装说明
解压后得到一个phpMyAdmin的目录(你可以改名)
找到目录里的config.default.php文件,打开
找到 $cfg[‘PmaAbsoluteUri‘]
修改你将上传到空间的phpMyAdmin的网址
如:$cfg[‘PmaAbsoluteUri‘] = ‘http://hztv.com.ru/phpmyadmin/‘;
还有下面的
$cfg[‘Servers‘][$i][‘host‘] = ‘localhost‘;(数据库服务器,通常用默认,也有例外)
$cfg[‘Servers‘][$i][‘auth_type‘] = ‘config‘; // Authentication method (config, http or cookie based)?
登录方式,在自己的机子里调试用config,如果在网上用http或cookie。
$cfg[‘Servers‘][$i][‘user‘] = ‘root‘; // MySQL user(数据库用户名,自己机子里用root,在网上设你的数据库用户名)
$cfg[‘Servers‘][$i][‘password‘] = ‘‘; // MySQL password (数据库密码,自己机子里不用设)
$cfg[‘Servers‘][$i][‘only_db‘] = ‘‘; // If set to a db-name, only(数据库名称)
还有设置
$cfg[‘DefaultLang‘] = ‘zh‘;  中文显示默认
设置完毕可以上传到网上了。
浏览http://hztv.com.ru/phpmyadmin/  当然你设置不同就用那个网址。
以phpMyAdmin 2.6.4-pl4为例:
第36行 $cfg[‘PmaAbsoluteUri‘] = ‘http://f15.aaa.livedoor.jp/~zjtv/phpmyadmin/‘;
这个是你空间上phpMyAdmin所在的路径
第50行 $cfg[‘blowfish_secret‘] = ‘www.myand.com‘;
当访问方式设置为cookie时,需要添加随意字符串
第59行 $cfg[‘Servers‘][$i][‘host‘]          = ‘mysql2.aaacafe.ne.jp‘; //
数据库服务器地址
第60行 $cfg[‘Servers‘][$i][‘port‘]          = ‘‘;
数据库服务器端口默认3306可不填,除非特定的端口才需要填写
第73行 $cfg[‘Servers‘][$i][‘auth_type‘]     = ‘cookie‘;
指定访问方式,config, http或者cookie
第74行 $cfg[‘Servers‘][$i][‘user‘]          = ‘f15_xxxx‘;
数据库用户名
第75行 $cfg[‘Servers‘][$i][‘password‘]      = ‘xxxxxxxx‘;
数据库密码
第77行 $cfg[‘Servers‘][$i][‘only_db‘]       = ‘‘;
这里可以不填。当你想进入phpMyAdmin后直接访问指定的数据库,填入数据库名称。
按以上的操作就完工了。
如果有多个数据库服务器也可以继续设置
第123行 $cfg[‘Servers‘][$i][‘host‘]            = ‘mysql1.aaacafe.ne.jp‘;
数据库服务器地址
第131行$cfg[‘Servers‘][$i][‘auth_type‘]       = ‘config‘;
指定访问方式,config, http或者cookie
第132行 $cfg[‘Servers‘][$i][‘user‘]            = ‘f31_xxxx‘;
数据库用户名
第133行 $cfg[‘Servers‘][$i][‘password‘]        = ‘xxxxxxxxxx‘;
数据库密码