When I use Get-SPWebApplication command on sharepoint sever got 9 web applications names.When I use Get-SPContentDatabase got 15 content databases.How this mismatch happened??any idea???
This is because, one web application can connect to multiple content databases. So mismatch means, you have multiple databases in the web applications. You can check it via Central admin or run the below powershell.
Get-SPContentDatabase | select WebApplication, Name, CurrentSiteCount
Note: One content database only attach to single web application.