hate google translate :@
then the problems I had I got around them on that server,
now on another machine
Connection failed: SQLSTATE [HY000] [2002] Can not connect to local MySQL server through socket '/ var / run / mysqld / mysqld.sock' (2)
the solution seems easy enough to create the file myslqld.sock and start the MySQL daemon
unfortunately it is not so
root@torino:/var/run/mysqld# touch /var/run/mysqld/mysqld.sock
root@torino:/var/run/mysqld# chown mysql /var/run/mysqld/mysqld.sock
root@torino:/var/run/mysqld# !/etc
/etc/init.d/mysql start
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
root@torino:/var/run/mysqld# ls -sl
totale 0
root@torino:/var/run/mysqld# ls -asl
totale 8
4 drwxrwxrwx 2 mysql root 4096 5 gen 10:25 .
4 drwxr-xr-x 14 root root 4096 5 gen 10:18 ..
the file mysqld.sock erased ideas for the solution?
__________________________________________________________________
mistero del informatica :
ha ripreso a funzionare da solo
(01-05-2010 05:13 AM)theprincy Wrote: and now i have
Connection failed: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)
how can I solve?
(01-05-2010 05:37 AM)motokochan Wrote: What are you trying to do when you get this message?
message out when you sign on the panel that both sites
then mistakenly
Connection failed: SQLSTATE [HY000] [2002] Can not connect to local MySQL server through socket '/ var / run / mysqld / mysqld.sock' (111)
I solved this way, but I'm not sure that is the correct way or if there are other solutions easier.
Then I deleted apache2 php5-mysql mysql-server and then install it again
while error
Connection failed: SQLSTATE [HY000] [2002] Can not connect to local MySQL server through socket '/ var / run / mysqld / mysqld.sock' (13)
I completed these steps,
cd / var / run / mysqld /
rm-Rf mysqld.sock
touch / var / run / mysqld / mysqld.sock
chown mysql: mysql mysqld.sock
/ etc / init.d / mysql start