Finally the code was able to connect and compile and produce templates with out any issues.
But it took more than an hour to alter my database.
Forgot to mention while altering the database I got this strange error....
Adding full-text index for short_desc column in bugs table...
Adding new index 'bugs_short_desc_idx' to the bugs table ...
DBD::mysql::db do failed: The used table type doesn't support FULLTEXT indexes at Bugzilla/DB.pm line 468Obtaining help from DBA, I resolved this error....
mysql> use bugs;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> alter table bugs engine=MyISAM;
Query OK, 16940 rows affected (4.16 sec)
Records: 16940 Duplicates: 0 Warnings: 0
mysql> alter table longdescs engine=MyISAM;
Query OK, 77114 rows affected (2.29 sec)
Records: 77114 Duplicates: 0 Warnings: 0
mysql>
Basically it was some thing to do with the d/b engines setup default with specific tables.Altered it and it worked fine.