Perl und mysql socket [Gelöst]

Du kommst mit der Installation nicht voran oder willst noch was nachfragen? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
Benutzeravatar
Deejoy
Beiträge: 140
Registriert: 20.12.2003 00:09:23

Perl und mysql socket [Gelöst]

Beitrag von Deejoy » 10.06.2005 22:11:09

Hi,
hab da gerade ein Problem mit perl.
Ich bekomme bzgl mysql folgende fehlermeldung

Code: Alles auswählen

failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
Ist ja auch richtig da der socket wo anders ist. wie kann ich den jetzt aber bei perl ändern ??
Zuletzt geändert von Deejoy am 11.06.2005 09:36:42, insgesamt 1-mal geändert.

Benutzeravatar
Deejoy
Beiträge: 140
Registriert: 20.12.2003 00:09:23

Beitrag von Deejoy » 10.06.2005 23:02:25

Hi,

oder etwas anders ausgedrückt.

mache ich ein install DBD::mysql bekomme ich folgende meldungen

Code: Alles auswählen

t/10dsnlist........DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/10dsnlist.t line 45
Cannot connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
t/10dsnlist........dubious                                                   
        Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-9
        Failed 9/9 tests, 0.00% okay
t/20createdrop.....DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/20createdrop.t line 45
Cannot connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
t/20createdrop.....dubious                                                   
        Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-5
        Failed 5/5 tests, 0.00% okay
t/30insertfetch....DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/30insertfetch.t line 48
Cannot connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
t/30insertfetch....dubious                                                   
        Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-11
        Failed 11/11 tests, 0.00% okay
t/40bindparam......DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/40bindparam.t line 64
Cannot connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
t/40bindparam......dubious                                                   
        Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-28
        Failed 28/28 tests, 0.00% okay
t/40blobs..........DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/40blobs.t line 68
Cannot connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
t/40blobs..........dubious                                                   
        Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-11
        Failed 11/11 tests, 0.00% okay
t/40listfields.....DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/40listfields.t line 57
Cannot connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
t/40listfields.....dubious                                                   
        Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-18
        Failed 18/18 tests, 0.00% okay
t/40nulls..........DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/40nulls.t line 50
Cannot connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
t/40nulls..........dubious                                                   
        Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-11
        Failed 11/11 tests, 0.00% okay
t/40numrows........DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/40numrows.t line 59
Cannot connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
t/40numrows........dubious                                                   
        Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-25
        Failed 25/25 tests, 0.00% okay
t/50chopblanks.....DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/50chopblanks.t line 57
Cannot connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
t/50chopblanks.....dubious                                                   
        Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-35
        Failed 35/35 tests, 0.00% okay
t/50commit.........DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/50commit.t line 64
Can't call method "tables" on an undefined value at t/lib.pl line 216.
t/50commit.........dubious                                                   
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-30
        Failed 30/30 tests, 0.00% okay
t/60leaks..........skipped
        all skipped: $ENV{SLOW_TESTS} is not set or Proc::ProcessTable not installed 
t/ak-dbd...........DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/ak-dbd.t line 59
t/ak-dbd...........ok 3/91Can't call method "tables" on an undefined value at t/lib.pl line 216.
t/ak-dbd...........dubious                                                   
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1, 4-91
        Failed 89/91 tests, 2.20% okay
t/akmisc...........Mysql connect('database=test;host=','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/akmisc.t line 140
t/akmisc...........NOK 1Cannot connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        It looks as if your server is not up and running.
        This test requires a running server.
        Please make sure your server is running and retry.
t/akmisc...........dubious                                                   
        Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-352
        Failed 352/352 tests, 0.00% okay
t/dbdadmin.........DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/dbdadmin.t line 74
t/dbdadmin.........NOK 1Cannot connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
t/dbdadmin.........dubious                                                   
        Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-21
        Failed 21/21 tests, 0.00% okay
t/insertid.........DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/insertid.t line 13
t/insertid.........dubious                                                   
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-12
        Failed 12/12 tests, 0.00% okay
t/mysql............Mysql connect('database=test;host=','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/mysql.t line 55
not ok 1: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
        It looks as if your server is not up and running.
        This test requires a running server.
        Please make sure your server is running and retry.
FAILED before any test output arrived
t/mysql2...........Mysql connect('database=test;host=','',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at t/mysql2.t line 29
Can't call method "getserverinfo" on an undefined value at t/mysql2.t line 30.
t/mysql2...........dubious        


ist ja logisch läuft ja auch nicht dort. Nur wie änder ich das ?

Benutzeravatar
Deejoy
Beiträge: 140
Registriert: 20.12.2003 00:09:23

Beitrag von Deejoy » 11.06.2005 09:36:22

Hi,

konnte es mitlerweile lösen das problem war das ein d zuviel war :(

Antworten