Import MySQL into snap installation

I’m having an VPS with a classic Nextcloud installation for some years. I messed up my server seriously and it’s time to reinstall the entire system.
I have made backups of nextcloud directories and the configuration files. Also I have a dump of the MySQL database. All ready to start on a fresh installation.

Now I want to test on my local computer, so installed a snap version of nextcloud. Import of config and data is no issue, but I can’t find a way to access the database of the snap installation. I have read that it is in directories just like the other data.

So I have the next questions:
Is it advisable to go and run a snap version on a server?
Is it possible to import a MySQL dump in a snap nextcloud environment?

Thanks in advance!

Try sudo nextcloud.mysql-client.

1 Like

So simple!
Great, thanks!