您的位置:首页 > 编程语言 > PHP开发

phpMyAdmin-3.4.0-all-languages的安装

2011-11-27 11:58 537 查看

phpMyAdmin-3.4.0-all-languages的安装

2011-05-14 17:59:52| 分类:

Mysql |字号 订阅

1.解压

2. 在/phpmyadmin/libraries”目录下找到“config.default.php”。

$cfg['PmaAbsoluteUri'] = ''; 改为 $cfg['PmaAbsoluteUri'] = 'http://localhost';

说明:定义PHPMYADMIN位置,本地测试填写:localhost;服务器测试填写:ip or domain,即你的网站的域名。

$cfg['Servers'][$i]['host'] = ''; 改为 $cfg['Servers'][$i]['host'] = 'localhost';

(说明:默认无需修改)

$cfg['Servers'][$i]['user'] = ''; 改为 $cfg['Servers'][$i]['user'] = 'root';

说明:默认网站数据库用户名

$cfg['Servers'][$i]['password'] = '';

改为 $cfg['Servers'][$i]['password'] = '****';

说明:输入你数据库的密码

$cfg['blowfish_secret'] = ''; 改为 $cfg['blowfish_secret'] = 'cookie';

说明:本地无需设置,网络需设成cookie

$cfg['Servers'][$i]['auth_type'] = 'config';改为 $cfg['Servers'][$i]['auth_type'] = 'cookie';

说明:网络须启用cookie来防止恶意注入

$cfg['blowfish_secret'] = ''; 改为 $cfg['blowfish_secret'] = 'cookie';

$cfg['DefaultLang'] = 'en'; 改成zh 显示中文

网络上很多教程,让大家把从“/phpmyadmin/libraries”下拷贝一份“config.default.php”到“/phpmyadmin”下,重命名为“config.inc.php”,那些是phpMyadmin3以前的的版本的配置方法,在phpMyadmin3发布以后,就不需要这样做了,只要修改libraries/config.default.php配置文件的配置项即可。这是因为phpmyadmin现在的版本默认首先加载libraries/config.default.php配置文件的内容,如果有config.inc.php,就会在config.inc.php配置文件中找到相同的变量并覆盖,所以如果没有特别的设定,你不需要再去创建一个config.inc.php,只要在libraries/config.default.php进行相关的配置即可。

4.关于短语密码的问题。现在phpMyadmin版本可以不用设置短语密码了。

下载链接:http://www.phpmyadmin.net/home_page/downloads.php

下载版本:phpMyAdmin-3.4.5-all-languages.zip

解压后按如下进行修改:

1. 从phpMyAdmin/libraries/下拷贝config.default.php到phpMyAdmin下,并改名为config.ini.php

2. 修改phpMyAdmin/config.ini.php

$cfg['PmaAbsoluteUri'] ='http://127.0.0.1/phpMyAdmin'; //phpMyAdmin的安装路径

$cfg['blowfish_secret'] = 'hejone'; //加密密匙,可随意更改。

$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL的主机名称或者IP地址

$cfg['Servers'][$i]['port'] = '3306′; // MySQL端口 - 空白将用默认端口3306

$cfg['Servers'][$i]['auth_type'] = 'cookie'; // 认证方式

$cfg['Servers'][$i]['user']='root'; // MySQL用户,如root

$cfg['Servers'][$i]['password'] = 'pswd'; // MySQL用户密码

将phpMyAdmin文件夹移动到php的主目录下。从浏览器输入http://localhost/phpMyAdmin/就可以看到phpMyAdmin的管理界面啦。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: