|
本帖最后由 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也是一样 |
|