导入旧数据库后,我正在运行.checksetup.pl,但我收到了以下错误。
我正在使用debian 8 OS
Bugzilla升级版本5.0.3
DBD::mysql::db do failed: Table 'audit_log' already exists [for Statement "CREATE TABLE audit_log (
user_id mediumint,
class varchar(255) NOT NULL,
object_id integer NOT NULL,
field varchar(64) NOT NULL,
removed mediumtext,
added mediumtext,
at_time datetime NOT NULL
) ENGINE = InnoDB CHARACTER SET utf8"] at Bugzilla/DB.pm line 837.
Bugzilla::DB::_bz_add_table_raw(Bugzilla::DB::Mysql=HASH(0x2c22c10), "audit_log", HASH(0x7bb03f0)) called at Bugzilla/DB.pm line 796
Bugzilla::DB::bz_add_table(Bugzilla::DB::Mysql=HASH(0x2c22c10), "audit_log", HASH(0x7bb03f0)) called at Bugzilla/DB.pm line 509
Bugzilla::DB::bz_setup_database(Bugzilla::DB::Mysql=HASH(0x2c22c10)) called at Bugzilla/DB/Mysql.pm line 558
Bugzilla::DB::Mysql::bz_setup_database(Bugzilla::DB::Mysql=HASH(0x2c22c10)) called at ./checksetup.pl line 121
答案 0 :(得分:0)
checksetup.pl的第121行正在尝试再次创建表。我建议你导出bugzilla DB,然后删除bugzilla DB,再次运行checksetup.pl,它将重新创建你的表。然后将数据导回数据库。
120#创建表,并执行任何特定于数据库的架构更改。
121 $ dbh-> bz_setup_database();
如果它对您没有帮助,请告诉我。