ComSubVie
01.08.01, 15:45
Hi
ich fahre mit SuSE 7.1 (Hausvorschrift, würde ich nicht freiwillig machen) und MySQL 3.23.30-gamma. MySQL liefert auf status folgendes:
mysql> status
--------------
mysql Ver 11.10 Distrib 3.23.30-gamma, for suse-linux (i686)
Connection id: 6
Current database:
Current user: root@localhost
Current pager: stdout
Using outfile: ''
Server version: 3.23.30-gamma-log
Protocol version: 10
Connection: Localhost via UNIX socket
Client characterset: latin1
Server characterset: latin1
UNIX socket: /var/lib/mysql/mysql.sock
Die socket-Datei existiert auch; lokal kann ich per mysql auch auf die Datenbank zugreifen.
Bei folgendem Perl-Script bekomme ich die oben genannte Fehlermeldung:
#!/usr/bin/perl -w
use DBI();
$dbh = DBI->connect(
"DBI:mysql:database=mysql;host=localhost",
"root","123", {'RaiseError' => 1} );
$sth = $dbh->prepare("SHOW DATABASES");
$sth->execute();
while ( @ary = $sth->fetchrow_array() ) {
print join("\t", @ary), "\n";
}
$sth->finish();
Wenn ich folgendes PHP-Script über apache auf dem Server aufrufe, bekomme ich auch diese Fehlermeldung
<?php
$mysqluser = "root";
$mysqlpasswd = "123";
$mysqlhost = "localhost";
$connID = mysql_pconnect( $mysqlhost, $mysqluser, $mysqlpasswd );
$result = mysql_list_dbs();
echo "Databases at the local MySQL server\n";
while ( $row = mysql_fetch_row( $result ) ) {
echo "$row[0]\n";
}
?>
Wo liegt das Problem? Kann irgendwer helfen??
[ 01. August 2001: Beitrag editiert von: ComSubVie ]
ich fahre mit SuSE 7.1 (Hausvorschrift, würde ich nicht freiwillig machen) und MySQL 3.23.30-gamma. MySQL liefert auf status folgendes:
mysql> status
--------------
mysql Ver 11.10 Distrib 3.23.30-gamma, for suse-linux (i686)
Connection id: 6
Current database:
Current user: root@localhost
Current pager: stdout
Using outfile: ''
Server version: 3.23.30-gamma-log
Protocol version: 10
Connection: Localhost via UNIX socket
Client characterset: latin1
Server characterset: latin1
UNIX socket: /var/lib/mysql/mysql.sock
Die socket-Datei existiert auch; lokal kann ich per mysql auch auf die Datenbank zugreifen.
Bei folgendem Perl-Script bekomme ich die oben genannte Fehlermeldung:
#!/usr/bin/perl -w
use DBI();
$dbh = DBI->connect(
"DBI:mysql:database=mysql;host=localhost",
"root","123", {'RaiseError' => 1} );
$sth = $dbh->prepare("SHOW DATABASES");
$sth->execute();
while ( @ary = $sth->fetchrow_array() ) {
print join("\t", @ary), "\n";
}
$sth->finish();
Wenn ich folgendes PHP-Script über apache auf dem Server aufrufe, bekomme ich auch diese Fehlermeldung
<?php
$mysqluser = "root";
$mysqlpasswd = "123";
$mysqlhost = "localhost";
$connID = mysql_pconnect( $mysqlhost, $mysqluser, $mysqlpasswd );
$result = mysql_list_dbs();
echo "Databases at the local MySQL server\n";
while ( $row = mysql_fetch_row( $result ) ) {
echo "$row[0]\n";
}
?>
Wo liegt das Problem? Kann irgendwer helfen??
[ 01. August 2001: Beitrag editiert von: ComSubVie ]