I want to know the number of sites in a Liferay instance.
If I had access to the web UI I would go to Configuration then Sites and see their number, but I don't have access to the web UI, I only have access to the MySQL database.
When I run SELECT COUNT(*) FROM Group_; I get 16584, which is obviously too much as I expect the instance to have about a hundred sites. When I look at the detail, I see that the 16584 sites include "sites" like /name-surname for each user.
Question: Using only MySQL requests, how can I find the number of "actual" Liferay sites? That number should match (or nearly match) the number that would be seen by an administrator viewing the list at Configuration>Sites.
Using the Group_ table, select based on entries with a 'site' value of 1. That should give you results which correspond to Configuration > Sites.