<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>My Daily Computer Solutions &#187; connect</title>
	<atom:link href="http://www.dailycomputersolutions.com/blog/index.php/iphone,problems,jobvermeulen,blog,daily,solutions/connect/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailycomputersolutions.com/blog</link>
	<description>All day computer problems with solutions and advice.</description>
	<lastBuildDate>Tue, 20 Dec 2011 13:41:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PERL connect to SQL server</title>
		<link>http://www.dailycomputersolutions.com/blog/index.php/2008/11/17/perl-connect-t-sql/</link>
		<comments>http://www.dailycomputersolutions.com/blog/index.php/2008/11/17/perl-connect-t-sql/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 19:15:52 +0000</pubDate>
		<dc:creator>Job Vermeulen (admin)</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.dailycomputersolutions.com/blog/?p=125</guid>
		<description><![CDATA[To connect you PERL application to an SQL server is pretty easy. First you need the driver for supporting SQL connections. Install driver: Open command prompt Typ: ppm install DBD-mysql After a correct installation of the driver your SQL connection &#8230; <a href="http://www.dailycomputersolutions.com/blog/index.php/2008/11/17/perl-connect-t-sql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To connect you PERL application to an SQL server is pretty easy.</p>
<p>First you need the driver for supporting SQL connections.</p>
<p>Install driver:</p>
<ol>
<li>Open command prompt</li>
<li>Typ: ppm install <tt>DBD-mysql</tt></li>
</ol>
<p>After a correct installation of the driver your SQL connection can be made as follow:</p>
<pre id="pre4" style="margin-top: 0pt;" lang="perl">#!/usr/local/bin/perl
print "Content-type:text/html\n\n";

use DBI;

$username = '';
$password = '';
$database = '';
$hostname = '';

$dbh = DBI-&gt;connect("dbi:mysql:database=$database;" .
 "host=$hostname;port=3306", $username, $password);</pre>
<p>This is all you need to connect to your server.<br />
If you don&#8217;t know your server ip, try connecting to your website address.</p>
<p>A very good website about this subject is:<br />
<a href="http://www.codeproject.com/KB/perl/perldbi.aspx">http://www.codeproject.com/KB/perl/perldbi.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dailycomputersolutions.com/blog/index.php/2008/11/17/perl-connect-t-sql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

