Thread Database Handle zerstört (39 answers)
Opened by Escape at 2010-04-22 17:03

pq
 2010-04-23 18:57
#136427 #136427
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
welche versionen von DBI und DBD::mysql hast du?
hier:
DBI 1.609
DBD::mysql 4.013
datenbank hier auf localhost 3306:
Code: (dl )
1
2
3
4
5
6
$ perl -wle'
use DBI;
my $dbh = DBI->connect(
"dbi:mysql:mysql_compression=1\n:database=battie_test\n:host=kaiser.von.china:port=3306",
"foo", "foo");'
$

läuft ohne fehler durch.
Code: (dl )
1
2
3
4
5
6
$ perl -wle'
use DBI;
my $dbh = DBI->connect(
"dbi:mysql:mysql_compression=1\n:battie_test\n:kaiser.von.china:port=3306",
"foo", "foo");'
$

läuft auch durch.
wie passt das mit deiner aussage zusammen? sollte er nicht auf den host kaiser.von.china connecten bzw. sich beschweren, dass es den nicht gibt?

gegenprobe:
Code: (dl )
1
2
3
4
5
6
7
8
$ perl -wle'
use DBI;
my $dbh = DBI->connect(
"dbi:mysql:mysql_compression=1:battie_test:kaiser.von.china:port=3306",
"foo", "foo");'
DBI connect('mysql_compression=1:battie_test:kaiser.von.china:port=3306','foo',...)
failed: Unknown MySQL server host 'kaiser.von.china' (1) at -e line 3
$
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem
Antworten mit Zitat

View full thread Database Handle zerstört