Here is the template for connecting to a DB through DBI:
$dbh = DBI->connect($data_source, $username, $password)
or die $DBI::errstr;
and here is how $data_source is described:
dbi:DriverName:database=database_name;host=hostname;port=port
My understanding is that host + port identifies an instance of a mysqld process containing multiple schemas, and that a schema contains tables. Where, then, in this heirarchy, is a "database"? Sometimes it seems the word "database" refers to the mysqld instance, and other times to a schema.
UPDATE 1: Is it ever correct to refer to the "server" (e.g. a daemon process -- NOT a piece of hardware) to which clients connect on a TCP/IP port and send SQL requests as a "database"? If not, what is it called?