On February 2, 2004 13:10, Dave Cash wrote:
> On Mon, 2 Feb 2004, Shanta McBain wrote:
> > How do you pass the host name ie localhost?
> > Dose anyone has a working example I can hack?
>
> I'm not sure the lack of hostname is the problem, as I think DBI
> defaults to localhost.  But since the database argument is just a
> regular DBI dsn, you could do this:
>
>   [% USE DBI( database = 'dbi:mysql:forager;host=localhost',
>               username = 'user',
>               password = 'pw' )
>   %]
>
> I haven't tested that, but I think it should work.  However, I'm not
> convinced it will solve your problem.

Thanks Dave 
But It is not connecting to the db. I can access no problem from Perl. using 
DBI. 

-- 
Thank
Shanta McBain
http://computersystemconsulting.ca
Online web application and stores. Development and hosting.


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to