services restarting issue

milan

Verified User
Joined
Dec 29, 2005
Messages
78
pfff. as the way I am looking at there whent something wrong with my installation. But here I go again

the issue I'am having now is next:
Today my mysql services have been locked.

Code:
Error connecting to MySQL: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2

So as a normal person would do I whant to restart the mysql services:

mysql:
Code:
server1:/# /etc/rc.d/init.d/mysql restart
-su: /etc/rc.d/init.d/mysql: No such file or directory

server1:/# mysql restart
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I was thinking is this a mysql problem or just in general since I get errors whit restarting any services in DA services panel, so I tried to restart sshd with ssh:
Code:
server1:/# /etc/rc.d/init.d/sshd restart
-su: /etc/rc.d/init.d/sshd: No such file or directory

could anyone help me out with this.
 
Last edited:
Are you sure mysql and ssh are in /etc/rc.d/init.d ?

I'm not certain about this, but I thought in debian they were in /etc/init.d
(e.g. /etc/init.d/sshd restart and /etc/init.d/mysql restart).
 
Back
Top