Mantis安装于配置(Widows+IIs+MySQL+PHP)

2010-10-29  王嘉 

所需软件:
             MySQL-5.0                       Mysql数据库
             MySQLCC                        Control center 图形界面
             PHP-4.4.2 installer.exe        PHP环境
             mantis-1.19.rar                  缺陷管理工具
 
安装过程:
           1.安装MySQL
           2.安装MySQLCC
           3.安装PHP-4.4.2 installer.exe  
           4.运行E\Mysql\bin\myadmin.exe
           5.运行 Mysql  Control center ,在Rgister server窗口中的Host name:wind(你的计算机名字)
点击“Add”,在console Manager窗口中双击root@wind:3306开启
           6.设置Mantis
                1)打开IIS管理器(开始时找不到,后来发现系统根本没装IIS,拿来系统盘安装上,OK),在默认网站中添加一个虚拟目录Mantis,指向你的压缩Mantis目录(安装目录),在"属性"窗口的"文档"页面增加默认文档:index.php
                2)将E\Mantis中的config-inc.php.sample,复制一份,改名为config_inc.php,修改其中的设置(如下),
<?php
$g_iis = 'on'
 $g_hostname = 'localhost';
 $g_db_type = 'mysql';
 $g_database_name = 'bugtracker';
 $g_db_username = 'root';
 $g_db_password = 'root';
        $g_default_language ='chinese_simplified';
        $g_enable_email_notification='on';
?>
    当然,可以根据自己的需要进行设置······
    其实进行到这里,Mantis已经设置完成了,打开IE,输入:http:\\localhost\mantis,但是我这里却报错:mysql_connect():Client does not support authentication protocol”,查了下资料,原来的PHP版本太低,解决办法如下:

  mysql> SET PASSWORD FOR
   -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

Alternatively, use UPDATE and FLUSH PRIVILEGES:

mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
   -> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;

Substitute the password you want to use for ``newpwd'' in the preceding examples. MySQL cannot tell you what the original password was, so you'll need to pick a new one.

Tell the server to use the older password hashing algorithm:

Start mysqld with the --old-passwords option.

Assign an old-format password to each account that has had its password updated to the longer 4.1 format. You can identify these accounts with the following query:

mysql> SELECT Host, User, Password FROM mysql.user
   -> WHERE LENGTH(Password) > 16;

For each account record displayed by the query, use the Host and User values and assign a password using the OLD_PASSWORD() function and either SET PASSWORD or UPDATE, as described earlier.

还有一种办法就是配置高版本的PHP-5.5.3

这些都完成后,在把Mantis和MySQL连接下,运行http://localhost/mantis/admin/install.phpMantis,里面的脚本会自动生成Mantis表,然后在打开IE,输入:http:\\localhost\mantis,初始用户为:adminstrator  密码:root 即可登录。

551°/5502 人阅读/1 条评论 发表评论

小窝  2010-10-29

支持


登录 后发表评论