Click to See Complete Forum and Search --> : Perl-Internal Error when connect to db


joelmon
12-02-2001, 05:01 AM
I have dbi installed, I checked. I use mysql. I am using linux (raq 3) and if needed, root privledges.

The code of (db.cgi) chmod to 755 is:
#!/usr/bin/perl


use DBI;
my $dbh = DBI->connect("dbi:mysql:mysql:localhost:3306", "?", "?");

(NOTE: ? ? were not in the code, of course ;) )

So. It might just be the fact it's 4 am, would this be because I need to install Dbd as well for mysql?

Just curious as to why it would give such an error.

Thanks

Fimbulvetr
12-02-2001, 02:26 PM
http://www.linuxnewbie.org/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=14&t=004124