Accessing your MySQL database with Perl Print

  • 0

The Perl module, is a convenient way to connect to the database from within Perl scripts. Please read the documentation about Full documentation for the Perl module use is available from:

Please be advised that ChromeIS can not support your custom programming or scripts.

Here are the basics of connecting:
NOTE: substitute the following values in the script below:

$hostname = "localhost"

$database = the new database

$user = your username and $password = the password you set.

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

Was this answer helpful?

« Back