I got the answer finally. When taking mysqldump for a database, Its dumping temporary table structure for a view first (creating a table with same name as view having just plain columns with no where conditions and joins under myisam storage engine even though innodb is my default storage engine). Later at the end of the dump i.e after dumping all tables structures and procedures for the database its dumping final view structure.
Example:
-- Temporary table structure for view sample_view
DROP TABLE IF EXISTS sample_view
;
/!50001 DROP VIEW IF EXISTS sample_view
/;
/*!50001 CREATE TABLE sample_view
(
colA
tinyint NOT NULL,
colB
tinyint NOT NULL
) ENGINE=MyISAM */;
-- Final view structure for view sample_view
/!50001 DROP TABLE IF EXISTS sample_view
/;
/!50001 DROP VIEW IF EXISTS sample_view
/;
/*!50001 CREATE ALGORITHM=UNDEFINED /
/!50013 DEFINER=root
@localhost
SQL SECURITY DEFINER /
/!50001 VIEW sample_view
AS select sp
.colA
AS colA
,sp
.colB
AS colB
from tableC
sp
where (sp
.START_DATE
= (select
max(b
.START_DATE
) from tableC
b
where ((b
.colA
= sp
.colA
) and
(b
.START_DATE
<= curdate())))) */;
So while importing ,I got error at final view structure for the specified view.Import did not proceeded further and aborted at this point. Even though i found the remaining views in database after this particular view in dump file, they are not correct ones.I misled by these temporary table structures. So mysql import is behaving as expected.
select "debugging"
right after line 35687 and reload!mysql -uxx -p < dumpfile.sql 1>error.log 2>&1