Thanks, I got the problem fixed using mysqldump.