why DBD::mysql need database name for connecttion ?

ZhangJun <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
in the pod:

####################
   Class Methods
       connect
               use DBI;

               $dsn = "DBI:mysql:$database";
               $dsn = "DBI:mysql:database=$database;host=$hostname";
               $dsn = "DBI:mysql:database=$database;host=$hostname;port=$port";

               $dbh = DBI->connect($dsn, $user, $password);

           A "database" must always be specified.

###################

why database is needed ?
the mysqlclient can connect to server without this, and then select database.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.