Troubles executing import/migration scripts

Discourse can’t find its database. So you need to fix that. Was this a standard install or a development install? Have a look at the appropriate guide and make discourse work as the first step.