Upgrade/Transition Path from MySQL Community 5.6.31 to Enterprise
Upgrade to 5.7.  Follow all the steps there, including testing mysql_upgrade.
Test your code against 5.7.
Then embark on upgrading from 5.7 to 8.0; it's more complex but still doable.