Problema start server

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

Nou Venit
Mesaje: 38
Membru din: 27 Oct 2014, 16:28
Server: Metin2FRZ
Regat: Jinno
Aprecieri: 0
Mulţumiri: 1  
Medalii

Salut all , am un server dedicat , si am dat un reboot , ei bine dupa acel reboot cand pornesc ch1 imi da eroarea asta :


Serverul Este Online Asteapta 30 secunde!



vds# mysql_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 PLAYER
mysql_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)




Na dupa asta am incercat sa deschid 2 CH-uri , tot degeaba tot asa .... , pot sa ii mai fac ceva ?
Avatar utilizator
AdrianC
Nivel 4

Nivel 4
Mesaje: 676
Membru din: 30 Noi 2014, 20:37
Server: #.#
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 47  
Medalii

Deschide Putty/Freebsd, te conectezi la server şi după scrie următoarea comandă:

Cod: Selectaţi tot

portsnap fetch extract
(Această comandă va instala porturile Mysql, apache etc.. )
după ce termină de instalat porturile scrie următoarea comandă:

Cod: Selectaţi tot

cd /usr/ports/databases/mysql50-server/ 
(Această comandă ne va duce în folderul MySql.)
Apoi scrie comanda

Cod: Selectaţi tot

make install WITH_XCHARSET=all clean
după

Cod: Selectaţi tot

/usr/local/bin/mysql_install_db 
următorul pas

Cod: Selectaţi tot

chgrp -R mysql /var/db/mysql/
următorul pas

Cod: Selectaţi tot

/usr/local/bin/mysqld_safe –user=mysql & 
următorul pas

Cod: Selectaţi tot

/usr/local/bin/mysqladmin -u root password desiredpasswordhere  
(în loc de desiredpasswordhere, scrieţi parola dvs..)
apoi edităm rc.conf scriind comanda..

Cod: Selectaţi tot

ee /etc/rc.conf  
și adăugăm

Cod: Selectaţi tot

mysql_enable="YES"  
Apoi salvaţi, reboot şi iar vă conectaţi la server cu putty, bineînteles după ce porneşte serverul.
şi scrie

Cod: Selectaţi tot

mysql -p 
apoi

Cod: Selectaţi tot

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'  
(root, este userul de la baza de date..cel din navicat ..)
apoi scrie

Cod: Selectaţi tot

IDENTIFIED BY 'parola ta aici' WITH GRANT OPTION;
apoi scrie

Cod: Selectaţi tot

GRANT ALL PRIVILEGES ON *.* TO 'mt2'@'localhost'
(aici este bine să nu schimbaţi acel user mt2, pentru că toate sf-urile au userul mt2)
şi apoi

Cod: Selectaţi tot

IDENTIFIED BY 'mt2!@#' WITH GRANT OPTION; 
Închis
Răspunsuri
7
Vizualizări
448
Răspunsuri
6
Vizualizări
429
Răspunsuri
10
Vizualizări
482
Răspunsuri
7
Vizualizări
434

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

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 56 vizitatori