Configuration management with different database and websites
Basically you need to make sure both sites share the same UUID. 

Do you have drush? If so:

In the shell of your old site (copying from) get the UUID

drush cget system.site uuid


(You'll get something like 'system.site:uuid': bfb11978-d1a3-4eda-91fb-45decf134e25 - copy the value)

Then in the shell of your new site (copying to) set the UUID 

drush cset system.site uuid &lt;your_uuid&gt;


EG: drush cset system.site uuid bfb11978-d1a3-4eda-91fb-45decf134e25

Then if you get an error something like "placeholder ... These entities need to be deleted before importing." run this command:

drush ev '\Drupal::entityManager()-&gt;getStorage("shortcut_set")-&gt;load("default")-&gt;delete();'


After all that, drush cim sync -y should allow you to sync the settings between your environments.

Source