Nextcloudpi -> howto reuse old database?

hi there,
while upgrading my #odroid #hc2 to #bullseye I totally destroyed my #nextcloudpi setup an spent some horrible days trying to bring it back again… without success :frowning:

I ended up reinstalling the last build for my board and “reinserting” my old data directory an got my data back. :+1:
Unfortunately, I am still missing my (shared) calendars and contacts an don’t know how to “reconnect” my old database, which resides in


Any suggestions, how to reuse my old database as a database-noob?

PS: I already tried Bernies script []( with a nextcloud_dummy on my local machine, without success:


  • Wed 14 Dec 2022 08:29:46 PM CET → START calcardbackup ver. 5.0.0 (06.11.2022), AGPL-3.0
  • Checking dependencies and preparing…
  • no usersfile given:
  • - will fetch all available items from database
  • Using URL: https://nextcloud-hc2
  • can’t read status.php (cURL code ‘6’).
  • Nextcloud 21.0.4 detected.
  • Database of chosen Nextcloud installation is MySQL/MariaDB.
  • Looking for calendars in your Nextcloud:
    ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/run/mysqld/mysqld.sock’ (2)
    – calcardbackup: ERROR –
    – Database connection could not be established!
    – removing temporary files…
    – calcardbackup: Exiting.