$dsn="DBI:mysql:database=$database;host=$hostname;port=$port"; $dbh=DBI->connect($dsn, $user, $password);