2012-10-25 109 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