Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: connect database

by Bass-Fighter (Beadle)
on Jan 08, 2009 at 13:06 UTC ( [id://734878]=note: print w/replies, xml ) Need Help??


in reply to Re: connect database
in thread connect database

this is only the piece of the error, there is more, so I use strict.

I now changed it into this:

#!usr/bin/perl use 5.6.1; use strict; use warnings; use DBI; my$dbh = DBI->connect("DBI:Pg:dbname=five; port=5432", 'postgres', '', +{ RaiseError => 1, AutoCommit => 0 }) or die "kon de database niet openen!";

and now I get this:
DBD::Pg::db do failed: ERROR: parser: parse error at or near "voor" at character 94
DBD::Pg::db do failed: ERROR: parser: parse error at or near "voor" at character 94

and what is the meaning of that?

Replies are listed 'Best First'.
Re^3: connect database
by ikegami (Patriarch) on Jan 08, 2009 at 13:09 UTC

    DBD::Pg::dbdo failed: ERROR: parser: parse error at or near "voor" at character 94

    So it worked, cause you made it to some $dbh->do call further down.

      ohw... yeah I see now, I think I can get further now, Thanx

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://734878]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-19 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found