The major version upgrade using the DMS Data migration service is not supported. Please provide the feedback here for adding this feature.
You can use the dump and restore but still it is preferred that you upgrade your mysql before moving to azure database for Mysql. One of the scenario is explained here in detail.
Please get back to us for any questions.
Regards
Navtej S