Solve missmatched Site UUID in Drupal

You might get the error on config import:

The import failed due to the following reasons:
Site UUID in source storage does not match the target storage.

This happens because your uuid value in system.site.yml is different than the one you have in the Database

As a fix, you either get you uuid from DB and set in your system.site.yml or set the uuid from the config file to match the one in DB

Get the current UUID from DB:

$ drush config-get "system.site" uuid

 Set a known UUID in DB:

$ drush config:set system.site uuid 0ecb403a-d0db-4e89-a37f-21xxx5dv930 -y

 

********************************** ************************* ************************ **************** ****************** *********** ************** ************* ************ *************