Home > MySQL > Connecting to MySQL using perl.

Connecting to MySQL using perl.

Perl access to MySQL is available but access is restricted to the Pulsant web servers.

We support the use of DBI, the standard method for Perl:

use DBI;
$dbh = DBI->connect(‘dbi:mysql;database=DATABASE; host=$servername’, $username, $password);

You will need to set $servername, $username and $password to suit your database as detailed for MySQL