I am having an issue with Nextcloud snap instance and after working through several steps to fix, I am finally at an impass and I am unable to proceed.
The root issue was: MySQL was not starting correctly due to corrupt log files, so I removed those so they could be recreated
sudo rm /var/snap/nextcloud/current/mysql/ib_logfile0
sudo rm /var/snap/nextcloud/current/mysql/ib_logfile1
The problem is that I cannot set the “innodb_force_recovery=4” per the instructions in the links below.
https://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
Any thoughts on how I can force innodb recovery in the snap?