Deploying a previous grafana.db database

I built a new unit with a Raspberry Pi 3+ using buster and installed Influxdb, Chronograf and Grafana. I would like to reuse the grafana.db database from my old setup which had dashboards that I prefer not recreating. I’ve been able to transfer old influxdb databases and get them to show in the current grafana.db database. When I replace the existing grafana database in /var/lib/grafana/ with the old file (same name) I get ‘Failed to update datasource’.
Is it possible to reuse this previous database so that all configurations can be retained?