How to migrate from any old version of strapi to the latest version of strapi while developing?

I am using strapi for one of my project. and am using strapi v3 with MySql DB. Now am planning to upgrade my strapi from v3 to v4(current). I have tried with few solution but, not able to migrate everything as per my requirement. could you please guide me to upgrade the strapi version which is useful for all my future upgrades.

Thanks in advance