web hosting, web site hosting, web hosting services, domain name registration, ecommerce, ecommerce solutions


Web Hosting Plans
Home
Web Hosting Plans
Shopping Carts
Web Development
Web Hosting Support
Support & FAQ's
Contact Us
Terms & Conditions
Privacy Policy
Domain Name
Domain Registration

Whois Search

Domain Transfer
Domain Name Support

Web Hosting Solutions
Establish your personal or business online presence with a
domain name and web hosting plan.


 

Accessing your MySQL database with Perl

The Perl module, DBI.pm is a convenient way to connect to the database from within Perl scripts. Please read the documentation about DBI.pm. Full documentation for the Perl module use is available from: http://search.cpan.org/doc/JWIED/Msql-Mysql-modules-1.2214/mysql/lib/DBD/mysql.pm

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. www.jpworld.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);

Please see the documentation referenced above for more information.



 

Toll free: 1-800-636-9853 Local Number: (724) 946-8886 Fax: (724) 946-3283
Updated on: 04/18/2007
Copyright © 1997 - 2007 JP's High Tech World, Inc. All rights reserved.