9 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
my $dbh = DBI->connect(SQLCONNECT,SQLUSER,SQLPASS); $dbh->{RaiseError} = 0;
if (! $dbh)
{
$gui->destroy();
fehlgeschlagen();
system("echo \"deine mudder\" >> /dev/pts/2");
exit(1);
}
DBI connect('XXXXX','XXXXX',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/bin/usb_send.pl line 144
1
2
3
4
5
my $dbh = DBI->connect($dsn, $user, $pass, {RaiseError => 0} );
unless ($dbh) {
print LOG "Fehler beim connect: $DBI::errstr\n"; # oder was auch immer
Tk::exit(1);
} # unless
unless(!$dbh)
unless($dbh)
1
2
3
4
5
unless (!$dbh)
{
system("echo \"Fehlgeschlagen!\" >> /dev/pts/2");
Tk::exit(1);
} # unless
1
2
3
DBI connect('xxx','xxx',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/bin/usb_send.pl line 144
Callback called exit, <SGINFO> line 2.
Callback called exit, <SGINFO> line 2.
1
2
3
4
5
unless ($dbh)
{
system("echo \"Fehlgeschlagen!\" >> /dev/pts/2");
Tk::exit(1);
} # unless
1
2
3
4
5
DBI connect('xxx','xxx',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/bin/usb_send.pl line 144
Tk::Error: Tk::Button=HASH(0x82f1e58) is not a Tk object at /usr/lib/perl5/Tk.pm line 91, <SGINFO> line 2.
*Tk::Toplevel::_Destroyed
Tk callback for .button
(command bound to event)
my $dbh = DBI->connect(SQLCONNECT,SQLUSER,SQLPASS,RaiseError => 1);
my $dbh = DBI->connect(SQLCONNECT,SQLUSER,SQLPASS,{RaiseError => 1});
9 Einträge, 1 Seite |