Web Hosting with Hosting Solutions, quality services at cheap prices. We are the complete solution to your web hosting needs. Home | Hosting Plans  | Order  | Support  | Contact Us

 

 Virtual Hosting
 Hosting Plans
 Reseller Plans
 Dedicated Servers
Added Features
 Free Domain
 Domain Registration
 Web Promotion
 Web Design
 Control Panel
 Affiliates
Online Help
 Tutorials
 Glossary
 Faq's
  Policy
 Service Agreement
 AUP
 Spam
Company
 Our Network
 30 Day Guarantee
 Contact Us
 Add Your Link
 Order

Click here to speak with us live

Accessing your MySQL database with Perl

MySQL Top

   What is MySQL

   
Accessing with Perl
The Perl module, DBI.pm is a convenient way to connect to the database from within Perl scripts.

Here are the basics of connecting: (Please be advised that we can not support your custom programming or scripts.)

Note: substitute the following values in the script below:
$hostname = the database server (i.e. sql2.hostingsolutions.com), $database = the new database (named after your username), $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);



For more information, please read the documentation about DBI.pm.

 

1998-2006 Hosting Solutions, Inc E-mail us at: techsupport@hostingsolutions.com with your questions and comments about our services We appreciate your feedback on our site"Hosting Solutions, Inc" in partnership with Internet Services