Host in Database Access on Web Hosting
The host in database access represents the domain name that needs to be contacted in order to connect to the database.
On our local computer, we
use localhost as the domain.
However, on web hosting, we will also
use localhost (as a rule).
The point is that the database running on the hosting is usually not accessible from the external world. It runs on the same computer as our PHP.