Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: problems with reading data from cfg file

by Jazz (Curate)
on Sep 10, 2001 at 01:55 UTC ( #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? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2023-01-29 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?