51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 3934|回复: 8
打印 上一主题 下一主题

[原创] 紧急求助 bugzilla 在xp安装连接不到数据库见截图

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-9-24 18:01:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
按照安装的流程,成功安装了bugzilla所需要的perl模块,同时安装了mysql6.0

使用mysql5.0 和6.0 遇到同样的问题,都是说连接不到数据库。

./localconfig里面的配置如下:

# What SQL database to use. Default is mysql. List of supported databases
# can be obtained by listing Bugzilla/DB directory - every module corresponds
# to one supported database and the name corresponds to a driver name.
#
$db_driver = "mysql";



#
# How to access the SQL database:
#
$db_host = 'localhost';         # where is the database?
$db_name = 'bugs';              # name of the SQL database
$db_user = 'bugs';              # user to attach to the SQL database

# Sometimes the database server is running on a non-standard
# port. If that's the case for your database server, set this
# to the port number that your database server is running on.
# Setting this to 0 means "use the default port for my database
# server."
$db_port = 3306;



#
# Enter your database password here. It's normally advisable to specify
# a password for your bugzilla database user.
# If you use apostrophe (') or a backslash (\) in your password, you'll
# need to escape it by preceding it with a '\' character. (\') or (\)
# (Far simpler just not to use those characters.)
#
$db_pass = '123456';


CMD的截图如下附件。

请高手帮忙看下哪里有问题啊,我配置了两天了!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2008-9-25 10:17:47 | 只看该作者
你创建数据库了吗?在mysql里面需要创建用户。
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2008-9-26 09:41:27 | 只看该作者
创建了阿,使用mysql gui工具都可以正常登陆。

我尝试更换了mysql的版本,还是同样的问题。是不是我创建的用户没有授权的原因呢
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2008-9-26 18:13:04 | 只看该作者

回复 1# 的帖子

你尝试一下:mysql5.0就可以
打开mysql,在脚本编辑框中输入create database bugs;回车执行
创建用户::在脚本编辑框中输入grant all privileges on bugs.* to 'bugs'@'localhost' identified by '123456';

apache服务你安装了吗?没有安装apache你可以在管理工具----Internet 信息服务进行配置


安装perl模块,配置localconfig文件
# Should checksetup.pl try to verify that your database setup is correct?
# (with some combinations of database servers/Perl modules/moonphase this
# doesn't work)
$db_check = 1;

# With the introduction of a configurable index page using the
# template toolkit, Bugzilla's main index page is now index.cgi.
# Most web servers will allow you to use index.cgi as a directory
# index, and many come preconfigured that way, but if yours doesn't
# then you'll need an index.html file that provides redirection
# to index.cgi. Setting $index_html to 1 below will allow
# checksetup.pl to create one for you if it doesn't exist.
# NOTE: checksetup.pl will not replace an existing file, so if you
#       wish to have checksetup.pl create one for you, you must
#       make sure that index.html doesn't already exist
$index_html = 1;

bugzilla需要的模块,apache或者iis服务,mysql数据库创建数据库和用户。
把这2个配置一下,然后再checksetup.pl一下看看,有没有问题。
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2008-9-27 18:09:49 | 只看该作者
恩,是的,更换了一个版本就可以了。

但是又遇到下面的问题,在配置apache httd.conf的过程中,如下图安装手册,需要添加这个蓝色的部分到里面


但是重启apache的时候却说 " ScriptInterpreterSource Registry-Script" 这个Registry 和script要分开

如下图二

我的安装手册就是在51testing上面下载的。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
回复 支持 反对

使用道具 举报

该用户从未签到

6#
发表于 2008-9-28 10:47:04 | 只看该作者
可以把你的apache的配置发过来看一下吗?
回复 支持 反对

使用道具 举报

该用户从未签到

7#
 楼主| 发表于 2008-9-28 18:42:27 | 只看该作者
回复楼上的问题:

用IIS已经配置到可以访问index.cgi页面了,但是登陆的时候,输入管理员和密码,就直接出现页面找不到。

我用的bugzilla.2.2,要怎么配置smtp邮件服务阿?需要再打补丁么?



另外,用apache作为服务器的配置就是像上面描述的一样啊,总是说那两个单词要分开。中间的小横线好像不认。
回复 支持 反对

使用道具 举报

该用户从未签到

8#
 楼主| 发表于 2008-9-28 18:48:51 | 只看该作者
mysql4.0.67版本
bugzilla2.05版本
iis信息服务
ActivePerl-5.8.8.822-MSWin32-x86-280952模块

配置好相关信息以后进入在地址栏输入http://localhost//bugzilla可以正常显示bugzilla界面,但是无法创建新的邮件账户。

Software error:
Bad file descriptor at C:/Perl/site/lib/Mail/Mailer.pm line 269.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

[Sun Sep 28 18:38:17 2008] token.cgi: Bad file descriptor at C:/Perl/site/lib/Mail/Mailer.pm line 269.
回复 支持 反对

使用道具 举报

该用户从未签到

9#
发表于 2008-10-6 09:32:31 | 只看该作者
你要进入管理页面进行邮件的配置就可以了 正常收发邮件了。参数设置里面进行邮件的配置设置就可以了。检查一下你的localconfig文件中的用户和密码,管理员用户和密码是在checksetup.pl的时候 模块安装成功以后输入的。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-5-13 05:30 , Processed in 0.076846 second(s), 30 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表