You typically use DBD::mysql through DBI, eg.
use DBI;
my $dbh = DBI->connect('dbi:mysql:mydatabase', $user, $password)
or die $DBI::errstr;
# do stuff with the database...
If you want to use the module directly, use the full name:
use DBD::mysql;
Though I can't think why you'd want to. See perldoc DBD::mysql for typical usage. |