Azzurra IRC Network Forum

Debian-Problemi con installazione di Mysql

linux · 10/08/2005 10:29 · #1
Ciao a tutti,

ho installato la debian e dopo aver scaricato mysql-server 4.0.24-10 tramite apt, ho riscontrato il seguente errore :

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)


Ho cercato un po in rete ma non ho trovato soluzioni risolutive.

Grazie
Mav · 20/08/2005 10:53 · #2
Sicuro che il server sia avviato? :)
Thunder · 23/08/2005 16:01 · #3
Io ho lo stesso identico problema, ed il problema sta proprio nell'avviarlo:

root@bvs24:/etc/mysql# /etc/init.d/mysql start
Starting MySQL database server: mysqld...failed.
Please take a look at the syslog.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
root@bvs24:/etc/mysql#
niko · 24/08/2005 18:30 · #4
Ciao,

per quanto riguarda l'errore di Thunder, come descritto, consiglio di dare un occhio ai logs (particolarmente al syslog) che dovrebbero spiegare la natura del problema.
Thunder · 30/08/2005 15:14 · #5
Il syslog dice questo:

Aug 25 15:23:03 bvs24 mysqld_safe[15375]: started
Aug 25 15:23:04 bvs24 mysqld[15379]: 050825 15:23:04 Can't start server : Bind on unix socket: No such file or directory
Aug 25 15:23:04 bvs24 mysqld[15379]: 050825 15:23:04 Do you already have another mysqld server running on socket: /var/run/mysql/mysql.sock ?
Aug 25 15:23:04 bvs24 mysqld[15379]: 050825 15:23:04 Aborting
Aug 25 15:23:04 bvs24 mysqld[15379]:
Aug 25 15:23:04 bvs24 mysqld[15379]: 050825 15:23:04 /usr/sbin/mysqld: Shutdown Complete
Aug 25 15:23:04 bvs24 mysqld[15379]:
Aug 25 15:23:04 bvs24 mysqld_safe[15381]: ended
Aug 25 15:23:10 bvs24 /etc/init.d/mysql[15444]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Aug 25 15:23:10 bvs24 /etc/init.d/mysql[15444]: ^G/usr/bin/mysqladmin: connect to server at 'localhost' failed
Aug 25 15:23:10 bvs24 /etc/init.d/mysql[15444]: error: 'Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)'
Aug 25 15:23:10 bvs24 /etc/init.d/mysql[15444]: Check that mysqld is running and that the socket: '/var/run/mysql/mysql.sock' exists!
Aug 25 15:23:10 bvs24 /etc/init.d/mysql[15444]:
tmunix · 04/09/2005 23:50 · #6
Ciao,
avevo lo stesso problema, l'errore era causato da questa variabile 'old_passwords = 1' in my.cnf.
Prova a commentarla, poi avvia mysqld e dovrebbe funzionare.
Controlla syslog...

Tmunix