Unable to log in and not able to understand the log in nextcloud/data/

no problem, that’s what we’re here for…

so lets check whether you have Nextcloud snap installed on your system at all;

issue the following command in your shell;
$ snap list nextcloud

the result should be something like this if you have the Nextcloud snap installed;
grafik

:thinking: wondering why you would reinstall mysql not knowing what type of installation was used?

…probably not. Nextcloud snap has everything needed to run Nextcloud included in a nice package which makes it easy to install and maintain, see