安装bugzilla卡在验证mysql连接失败

  There was an error connecting to MySQL:

  install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.
Compilation failed in require at (eval 1260) line 3, <DATA> chunk 558.

 at Bugzilla/DB.pm line 1284


This might have several reasons:

* MySQL is not running.
* MySQL is running, but there is a problem either in the
  server configuration or the database access rights. Read the Bugzilla
  Guide in the doc directory. The section about database configuration
  should help.
* Your password for the 'bugs' user, specified in $db_pass, is
  incorrect, in './localconfig'.
* There is a subtle problem with Perl, DBI, or MySQL. Make
  sure all settings in './localconfig' are correct. If all else fails, set
  '$db_check' to 0.

翻译过来是


有一个连接到MySQL的错误:

    install_driver(MySQL的)失败:尝试重新加载DBD / mysql.pm中止。
编译失败,需要在(EVAL1260)3号线,<DATA>块558。

 在Bugzilla的/ DB.pm线1284


这可能有以下几个原因:

* MySQL未运行。
* MySQL的运行,但有一个问题,无论是在
  服务器配置或数据库的访问权限。阅读的Bugzilla
  doc目录中的指南。关于数据库配置的部分
  应该会有所帮助。
*您的密码“错误的用户,$ db_pass指定,
  不正确,在'。/ localconfig'。
*用Perl DBI,或MySQL是一个微妙的问题。使
  确定“。/ localconfig中的所有设置都是正确的。如果一切都失败,设置

  '$ db_check'为0。


我的解决方案:DOS命令下:ppm upgrade DBI.就可以了。希望对后来百度到这篇文档的人能有所帮忙。理由:我判断是perl连接mysql的问题,然后我开始下载了DBD-mysql-4.022安装还是没有用,后来在国外的论坛上看见这个解决方案!


我用的Bugzilla版本是4.4.4.登陆界面提交bug之前,页面是正常的。但是一旦提交bug就会报错。以下是浏览器的错误:

Software error:
Cannot determine local time zone

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

[Wed Jun 25 10:43:57 2014] post_bug.cgi: Cannot determine local time zone 

解决:

我也是头痛了很久,后来发现一种办法,为了大家,不要分也无所谓了
修改 Bugzilla/Util.pm

use Date::Parse;

use Date::Format;

# 增加如下

BEGIN { $ENV{TZ} = ‘Asia/Shanghai’; } 
use DateTime;
use DateTime::TimeZone;
use Text::Wrap;

然后再编译一次Bugzilla。在windows下就是执行checksetup.pl

///方法二

楼主是不是Windows环境 如果是windows环境记得要装DateTime::TimeZone::Local::Win32,不然就会中这个问题。


Special Case Platforms

If you are on the Win32 platform, you will want to also install DateTime::TimeZone::Local::Win32. This will enable you to specify a time zone of 'local' when creating a DateTime object.

参看:
http://search.cpan.org/dist/DateTime-TimeZone/lib/DateTime/TimeZone.pm


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值