If you see the error immediately after uploading the file
Make sure the character set of old database matches with the new one
If you see the error after few seconds of uploading the file Try editing your php.ini file
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M
post_max_size = 750M
upload_max_filesize = 750M