There are following below two SQL Queries, we can find All Multi Websites and All Multi Stores.
[1] – To Get All Multi Websites
The follow below SQL Query to run
SELECT * FROM core_config_data WHERE path in ("web/unsecure/base_url", "web/secure/base_url");
Once run above command, below main website & other websites result
- Main(default) Website=https://mage2db.com
- First Website=https://mage2db.com-website-1.com
- Second Website=https://mage2db.com-website-2.com
- Third Website=https://mage2db.com-website-3.com
[2] – To Get All Multi Stores
SELECT * FROM core_config_data WHERE path in ("web/unsecure/base_url", "web/secure/base_url");
Once run above command, below main website & other stores result
- Main(default) Website=https://mage2db.com
- First Store=https://mage2db.com-store-1.com
- Second Store=https://mage2db.com-store-2.com
- Third Store=https://mage2db.com-store-3.com