You know downgrades are not recommended, it’s always best to stick with a newer version and work around whatever issues you have but if you really have to downgrade then this way is pretty easy and always works 99% of the time to be honest.
As always make sure you take BACKUPS of your databases and mysql directory before you continue..
Edit /var/cpanel/cpanel.config and look for the mysql-version line and edit the number to whatever version you need i.e.
Save it and run the following command:
After this is done – login to your WHM control panel and run easyeapache and rebuild based on your last profile to connect everything back together.