> -------------------------------------
> require 'DBI';

> dbh = DBI.connect('DBI:Mysql:test','username','password');

> dbh.disconnect;
> ----------------------------------------------------------

> When I try to execute it, I've this message :
>  "Too many argouments for connect at filename ....".
> Why? May someone help me?

Try -:

---------------------------------------

#!/usr/bin/perl
#
use DBI;

$dbh = DBI->connect('DBI:mysql:test','username','password');

$dbh->disconnect;
 
---------------------------------------

        instead. Special Note: The "->" instead of a "." between the DBI and
the connect. And the Dollar Signs in front of the dbh variable names.

Cheers.

James :) Collins



Reply via email to