Problema mysql.sock

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
KrAiD.
Nivel 1

Nivel 1
Mesaje: 123
Membru din: 10 Dec 2014, 17:09
Regat: Jinno
Aprecieri: 0
Mulţumiri: 1  
Medalii

am o problema :| imi apare asta , am citit pe multe site-uri si am aplicat si nici o rezolvare :( va rog

Eroare
failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
failed, retrying in 5 secondsSuccess HOTBACKUP
Avatar utilizator
Syron
Developer

Developer
Mesaje: 712
Membru din: 14 Mai 2014, 23:41
Aprecieri: 5  
Mulţumiri: 138  
Medalii

Verifică dacă serverul MySQL e pornit.
Foloseşte comanda 'top' in PuTTy si identifică procesul 'mysql' 'mysqld'.
Poţi porni un server MySQL 5.x cu următoarea comandă:
/usr/local/etc/rc.d/mysql-server start
Poţi opri un server MySQL 5.x cu următoarea comandă:
/usr/local/etc/rc.d/mysql-server stop
Avatar utilizator
KrAiD.
Nivel 1

Nivel 1
Mesaje: 123
Membru din: 10 Dec 2014, 17:09
Regat: Jinno
Aprecieri: 0
Mulţumiri: 1  
Medalii

root@host:/usr/home/game # top
last pid: 769; load averages: 0.00, 0.09, 0.07 up 0+00:07:19 17:11:13
27 processes: 1 running, 26 sleeping
CPU: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
Mem: 15M Active, 20M Inact, 523M Wired, 22M Buf, 431M Free
Swap: 768M Total, 768M Free

PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
655 root 1 20 0 23808K 11780K select 0:00 0.00% httpd
717 root 1 20 0 15684K 4776K select 0:00 0.00% sshd
755 root 1 20 0 9820K 2048K RUN 0:00 0.00% top
720 root 1 20 0 10820K 2840K pause 0:00 0.00% csh
663 root 1 20 0 11216K 4128K select 0:00 0.00% sendmail
713 www 1 20 0 23808K 12120K lockf 0:00 0.00% httpd
476 root 1 20 0 9504K 1504K select 0:00 0.00% syslogd
670 root 1 44 0 9532K 1612K nanslp 0:00 0.00% cron
649 root 1 20 0 12960K 4052K select 0:00 0.00% sshd
714 www 1 20 0 23808K 11812K lockf 0:00 0.00% httpd
705 root 1 52 0 9504K 1484K ttyin 0:00 0.00% getty
715 www 1 20 0 23808K 11804K kqread 0:00 0.00% httpd
704 root 1 52 0 9504K 1484K ttyin 0:00 0.00% getty
711 root 1 52 0 9504K 1484K ttyin 0:00 0.00% getty
707 root 1 52 0 9504K 1484K ttyin 0:00 0.00% getty
706 root 1 52 0 9504K 1484K ttyin 0:00 0.00% getty
root@host:/usr/home/game # /usr/local/etc/rc.d/mysql-server start
Starting mysql.
root@host:/usr/home/game #
Avatar utilizator
K4nT
Nivel 4

Nivel 4
Mesaje: 515
Membru din: 26 Iun 2014, 11:23
Server: Nu am inca
Regat: Jinno
Aprecieri: 2  
Mulţumiri: 24  
 Contact:
Medalii

Nu ai instsalat bine mysql.
Instaleaza dupa comenzile date de mine mai jos :

Cod: Selectaţi tot

reboot

Cod: Selectaţi tot

cd /var/db

Cod: Selectaţi tot

rm -rf mysql

Cod: Selectaţi tot

tar -xzvf mysql.tar.gz

Cod: Selectaţi tot

chmod -R 777 mysql

Cod: Selectaţi tot

reboot
Sa ii spui daca imerge.
Imagine
Imagine
Imagine
Imagine
Afișează semnătura
Avatar utilizator
KrAiD.
Nivel 1

Nivel 1
Mesaje: 123
Membru din: 10 Dec 2014, 17:09
Regat: Jinno
Aprecieri: 0
Mulţumiri: 1  
Medalii

Rezolvat multu
Pentru acest mesaj, KrAiD. for the post:
Vaynzo
Închis
Răspunsuri
4
Vizualizări
611
Răspunsuri
4
Vizualizări
247
Răspunsuri
2
Vizualizări
285
Răspunsuri
3
Vizualizări
658

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Google [Bot] și 137 vizitatori