Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: problems with reading data from cfg file

by Jazz (Curate)
on Sep 10, 2001 at 01:55 UTC ( [id://111334]=note: print w/replies, xml ) Need Help??


in reply to problems with reading data from cfg file

What would be more helpful than "Konnte Datenbankverbindung nicht herstellen: $!" (which, according to babelfish means "Data base connection could not manufacture") would be to use DBI's $DBI::errstr, which will give you the exact connection problem.

my $dbh = DBI->connect("dbi:mysql:$database:$db_server", "$db_user", "$db_pass") or die "Error: $DBI::errstr $!\n";

I really, really hope that you didn't enter the real login info in your post. But if that was the real info (change it!), the $DBI::errstr was "Unknown MySQL Server Host (db07.puretec.de)".

Jasmine

Log In?
Username:
Password:

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

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

    No recent polls found