2012-10-25 79 views
2

我在我的系统上安装了Bugzilla服务器,并意外丢失了它的登录名。我已经做了一个研究,但迄今没有任何工作。我试图做的事情是:Bugzilla缺少超级用户信息

我尝试使用MySQL接口添加更多管理用户。然“MySQL的”命令行,并使用下面的命令:

mysql> use bugs;<br /> 
mysql> update profiles set groupset=0x7ffffffffffffff where login_name = "admin";<br /> 

我得到一个错误消息说:

ERROR 1054 (42S22): Unknown column 'groupset' in 'field list' 

我还发现,我用管理员对我的电子邮件注册但我不能恢复我的密码:

mysql> select login_name from profiles where userid=1; 
+-------------------+ 
| login_name  | 
+-------------------+ 
| [email protected] | 
+-------------------+ 
1 row in set (0.00 sec) 

每当我试图删除我得到这个超级用户:

mysql> delete from profiles where userid=1; 
ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`bugzilla`.`components`, CONSTRAINT `fk_components_initialowner_profiles_userid` FOREIGN KEY (`initialowner`) REFERENCES `profiles` (`userid`) ON UPDATE CASCADE) 
mysql> update profiles set groupset=0x7ffffffffffffff where login_name = "(user's login name)"; 

我改变使用

sudo checksetup.pl [email protected] 

尝试登录到本地主机的Bugzilla 用户ID我的密码:[email protected] 密码:(我的密码)

我得到以下内部错误:

Bugzilla has suffered an internal error. Please save this page and send it to [email protected] with details of what you were doing at the time this message appeared. 

There was an error sending mail from 'bugzilla-daemon' to '[email protected]': Couldn't find 'sendmail' executable in your PATH and $Email::Send::Sendmail::SENDMAIL is not set 
Traceback: 

at Bugzilla/Mailer.pm line 190 
    Bugzilla::Mailer::MessageToMTA(...) called at Bugzilla/Token.pm line 307 
    Bugzilla::Token::Cancel(...) called at Bugzilla/Token.pm line 323 
    Bugzilla::Token::DeletePasswordTokens(...) called at Bugzilla/Auth/Verify/DB.pm line 85 
    Bugzilla::Auth::Verify::DB::check_credentials(...) called at Bugzilla/Auth/Verify/Stack.pm line 62 
    Bugzilla::Auth::Verify::Stack::check_credentials(...) called at Bugzilla/Auth.pm line 72 
    Bugzilla::Auth::login(...) called at Bugzilla.pm line 345 
    Bugzilla::login(...) called at /var/www/bugzilla/index.cgi line 40 

是否有方法更改用户名?

到目前为止没有任何工作。我如何登录到Bugzilla?谢谢

+0

你在使用什么操作系统? Windows还是Unix/Linux? –

+0

我使用的是Ubuntu 12.04 – Vladimir

回答

6

您可以使用checksetup.pl script来做到这一点。

checksetup.pl [email protected]` 
+0

请参阅我编辑的问题。它的工作,我改变了我的密码,但用户名现在似乎是一个问题。有没有更改用户名的方法? – Vladimir

+4

@Vladimir在您编辑的问题中,您似乎正在收到与缺少sendmail相关的错误。尝试'sudo apt-get install sendmail-bin'并尝试再次登录。 –

+0

这是工作!我能够登录。非常感谢!! – Vladimir