Any Perl script that uses DBI with the MySQL DBD module should begin with the following line:
Note the unusual capitalization of Mysql that is used in the Perl API. The name of this extension is case sensitive.
You establish a connection to a MySQL database by calling the connect() method on the master Mysql object. The following statement opens a new connection to the database mysql10 on a local MySQL server and assigns a database handle named $dbh.
$dbh = Mysql->connect("localhost", "mysql10", "username" "password");
Mysql->connect() should have exactly four arguments:
host— The hostname ...