51Testing软件测试论坛

标题: bugzilla安装真麻烦,报错求指导 [打印本页]

作者: xiaoyong10000    时间: 2012-6-12 16:06
标题: bugzilla安装真麻烦,报错求指导
本帖最后由 xiaoyong10000 于 2012-6-12 16:11 编辑

第一次checksetup.pl运行后,已经将所有包多装完了;第二次运行生成了localconfig文件 , 修改完其中项
# The DNS name of the host that the database server runs on.
$db_host = 'localhost';

# The name of the database
$db_name = 'bugs';

# Who we connect to the database as.
$db_user = 'bugs';

# 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 = '';
确认正确了;再次运行checksetup.pl报数据库连接错误,请大神帮忙看看解决办法
Checking for           DBD-mysql (v4.00)   ok: found v4.005
Had to create DBD::mysql::dr::imp_data_size unexpectedly at C:/Perl/lib/DBI.pm l
ine 1207, <DATA> chunk 275.
Use of uninitialized value in subroutine entry at C:/Perl/lib/DBI.pm line 1207,
<DATA> chunk 275.
Had to create DBD::mysql::db::imp_data_size unexpectedly at C:/Perl/lib/DBI.pm l
ine 1237, <DATA> chunk 275.
Use of uninitialized value in subroutine entry at C:/Perl/lib/DBI.pm line 1237,
<DATA> chunk 275.
There was an error connecting to MySQL:

    Undefined subroutine &DBD::mysql::db::_login called at C:/Perl/site/lib/DBD/
mysql.pm line 142, <DATA> chunk 275.[
/b]
到这个文件C:/Perl/site/lib/DBD/
mysql.pm 查看了142行 是:
DBD::mysql::db::_login($this, $dsn, $username, $password)
          or $this = undef;

感觉是没有读到localconfig中的字段或者读错,有没有大神帮忙解决下的 , 我的mysql版本是5.5,perl版本是 v5.8.8, bugzilla版本是bugzilla-3[1].1.3,不要说bugzilla太老,用4.2也是一样
作者: xiaoyong10000    时间: 2012-6-13 13:56
顶下,真心求助……
作者: gaha    时间: 2012-8-30 18:35
http://bbs.51testing.com/thread-182941-1-1.html
作者: xiaoshi_2011    时间: 2012-9-10 15:07
路过,表示关注
作者: 蛊魅    时间: 2013-4-15 15:33
在checksetup.pl 中将数据库的密码修改为安装mysql时,设定的密码




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2