How to migrate a MySQL server database from an older version to a newer?

I am trying to import a database from an older MySQL server (v 5.0) to a newer (8.0).

So I exported the dump file from the original database, and tried to import in the newer system, but then it’s showing a thousand syntax errors.

The thing is that the older database is working fine, so I presume that the problem is the version. May someone help? Thanks!