I am trying to spin up a local copy of my Backdrop site using Lando.
1) I initiated a new Lando site using my sites codebase. Got site running with fresh database
2) I enabled Backup and Migrate and pulled the database into the new site with Backup and Migrate
3) I tried to sync config, but got this message:
Configuration sync failed. The following errors were reported:
The field "field_articles_image" could not be created because a database table with the name "field_data_field_articles_image" already exists.
Should I have imported the config before importing the database?
If you're doing a full site import for the first time, it's not a "config sync" so much as just pulling in the entire active config. Backup and Migrate will include all the database tables, but it doesn't (yet) handle any configuration. So right now if you have a clean Backdrop install that you want to replace with a completely different database dump and configuration, you would do the following:
Since the database already is matched with the config, no syncing is necessary. As you found, if you try to do the sync anyway, it will fail because Backdrop thinks it needs to create the matching database tables for the new configuration files.