Sometimes you need to change the base URL if you migrate from development or pre-production environment to a production environment.
You can do it manually by connecting to your database via phpMyAdmin and change the value of “web/unsecure/base_url” in the “core_config_data” table
Or you can run the following by line command :
mysql> update core_config_data set value='http://YourNewDomain.com/' where path='web/unsecure/base_url'; mysql> update core_config_data set value='https://YourNewDomain.com/' where path='web/secure/base_url';
In the same table “core_config_data” of your Magento website, you can edit Google Analytics account value by looking for the path “google/analytics/account” as well as for Solr by looking for the path “webmods_solrsearch/settings/solr_server_url” .