Migrating WordPress from old host to new host

I have transferred the files from old host to new host using Filezilla and then I export Wordpress database from old host and then import to new host using PHPMyadmin with .sql extension, after the transfer is complete, it gives me an error.
Both servers are using cpanel. Do you suggest any other options for the transfer ?