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 ?
Problema start server
Deschide Putty/Freebsd, te conectezi la server şi după scrie următoarea comandă:
(Această comandă va instala porturile Mysql, apache etc.. )
după ce termină de instalat porturile scrie următoarea comandă:
(Această comandă ne va duce în folderul MySql.)
Apoi scrie comanda
după
următorul pas
următorul pas
următorul pas
(în loc de desiredpasswordhere, scrieţi parola dvs..)
apoi edităm rc.conf scriind comanda..
și adăugăm
Apoi salvaţi, reboot şi iar vă conectaţi la server cu putty, bineînteles după ce porneşte serverul.
şi scrie
apoi
(root, este userul de la baza de date..cel din navicat ..)
apoi scrie
apoi scrie
(aici este bine să nu schimbaţi acel user mt2, pentru că toate sf-urile au userul mt2)
şi apoi
Cod: Selectaţi tot
portsnap fetch extractdupă ce termină de instalat porturile scrie următoarea comandă:
Cod: Selectaţi tot
cd /usr/ports/databases/mysql50-server/ Apoi scrie comanda
Cod: Selectaţi tot
make install WITH_XCHARSET=all cleanCod: Selectaţi tot
/usr/local/bin/mysql_install_db Cod: Selectaţi tot
chgrp -R mysql /var/db/mysql/Cod: Selectaţi tot
/usr/local/bin/mysqld_safe –user=mysql & Cod: Selectaţi tot
/usr/local/bin/mysqladmin -u root password desiredpasswordhere apoi edităm rc.conf scriind comanda..
Cod: Selectaţi tot
ee /etc/rc.conf Cod: Selectaţi tot
mysql_enable="YES" şi scrie
Cod: Selectaţi tot
mysql -p Cod: Selectaţi tot
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' apoi scrie
Cod: Selectaţi tot
IDENTIFIED BY 'parola ta aici' WITH GRANT OPTION;Cod: Selectaţi tot
GRANT ALL PRIVILEGES ON *.* TO 'mt2'@'localhost'şi apoi
Cod: Selectaţi tot
IDENTIFIED BY 'mt2!@#' WITH GRANT OPTION; -
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Baidu [Spider], Semrush [Bot] și 93 vizitatori

