Check out example codes for "change magento database url usimg musql". It will help you in understanding the concepts better.

Code Example 1

UPDATE core_config_data SET value = 'http://www.hypernode.com/' WHERE path LIKE 'web/unsecure/base_url';
UPDATE core_config_data SET value = 'https://www.hypernode.com/' WHERE path LIKE 'web/secure/base_url';

Learn ReactJs, React Native from akashmittal.com