Windows 2003 IIS 6.0安装phpMyAdmin-3.4.3.2-all-languages

2011年8月10日 | 分类: 学学知识 | 标签: , , ,

本文以phpMyAdmin-3.4.3.2-all-languages zip包为例,安装位置:d:\admin

其实这个没什么好说的,php环境有了,mysql数据库有了,这个就跟一个普通的php程序没什么差别了。

不过安装完成以后有一些细节问题比较扯淡,好不容易解决了,在此一并附上解决方法。

1、重中之重,下载phpMyAdmin压缩包并解压到d:\admin

2、编辑d:\admin\libraries下的config.default.php文件

找到cfg['PmaAbsoluteUri'] = ”改成cfg['PmaAbsoluteUri'] = ‘http://localhost/phpmyadmin/’
//localhost处为你的实际浏览地址,在目录后面一定要加上“/”结束。

找到cfg['blowfish_secret'] = ”改成cfg['blowfish_secret'] = ‘www.xeker.org’
//这里随便写,只要不留空即可

找到cfg['Servers'][$i]['host'] = ‘localhost’
//说明:如果连接本机数据库则无需修改,如果连接远程数据库,则需将localhost改成数据库实际IP地址

3、到此基本结束。http://localhost即可访问

细节问题:

问题提示:
“配置文件现在需要一个短语密码”
解决方法:
编辑phpMyAdmin/libraries/config.default.php
将$cfg['blowfish_secret'] = ”; 改成 $cfg['blowfish_secret'] = ‘www.xeker.org’; (注:其中的’www.xeker.org′为随意的字符)
编辑phpMyAdmin目录下的config.sample.inc.php
将$cfg['blowfish_secret'] = ”; 改成 $cfg['blowfish_secret'] = ‘www.xeker.org’; (注:其中的’www.xeker.org′为随意的字符)

问题提示:
“phpMyAdmin 高级功能未全部设置,部分功能不可用。要查出原因请点这里。”
解决方法:
1、在mysql中创建名为phpmyadmin的数据库。
2、将phpmyadmin安装目录下的scripts/create_tables.sql导入这个数据库。
3、修改config.inc.php文件,内容如下:
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'root'; (你的用户名)
$cfg['Servers'][$i]['controlpass'] = 'root'; (你的密码)
/* Advanced phpMyAdmin features */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
/* Contrib / Swekey authentication */
// $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';

4、问题解决

本文转载自邪客心情,原文地址:http://www.xeker.org/archives/1595

如需转载敬请保留以上版权信息,邪客向你表示感激!

  1. 2012年2月11日03:40

    I precisely had to thank you so much yet again. I’m not certain the things that I would have achieved in the absence of the type of concepts shared by you on this problem. It absolutely was the frightening condition in my position, but seeing a well-written approach you treated that made me to cry for fulfillment. I’m just thankful for the help and in addition hope you really know what a great job you are undertaking teaching some other people through your blog. More than likely you’ve never met all of us.

  2. 2012年2月8日10:28

    Hello! This is my first comment here so I just wanted to give a quick shout out and tell you I really enjoy reading your posts. Can you recommend any other blogs/websites/forums that deal with the same topics? Thanks a lot!

  3. 2011年9月17日10:11

    建议出点2008的教程

  4. 2011年9月5日15:28

    好久没更新了哦~