im dealing with the same thing. i went ahead and hardcoded the database values and it worked after that. but im still getting other issues so i cant say it worked 100%
The default database name is “db” and is used to prefix the database values in the global environment table. If another database name is used, it should be substituted for “db”.
At first, when I renamed my database from db to new-database-name, I forgot to update the app-level environment variables accordingly.
When I changed ${db.HOSTNAME} to ${new-database-name.HOSTNAME} (and did the same for all the others) the deployment worked.
The point you mentioned, “db”, is the “db” tab in the components of the App.
I was trapped while I try to restore my DB from a backup
When try to restore the DB,
Digital Ocean will create a new Database cluster from the backup.
After the new cluster is created, we have to attach the new DB cluster to the Strapi App.
And cancel the auto build immediately.
Then update all the environment variables as you said, to the ${xxxx.HOSTNAME} , where xxxx is the new DB cluster component name I want to attach to my strapi.