Gentoo Archives: gentoo-user

From: Alexander Kirillov <nevis2us@××××××××.su>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mysql won't start
Date: Mon, 12 Jun 2006 11:20:14
Message-Id: 448D4B61.6030400@infoline.su
In Reply to: [gentoo-user] mysql won't start by Paul Stear
1 > I moved my /var to a new disk and now amarok will nor work because it can't
2 > connect to mysql
3 > Can't connect to local MySQL server through
4 > socket '/var/run/mysqld/mysqld.sock' (2)
5 >
6 > If I /etc/init.d/mysql stop
7 > * Caching service dependencies ... [ ok ]
8 > * WARNING: mysql has not yet been started.
9 >
10 > If I /etc/init.d/mysql start
11 > * ...
12 > * Starting mysql (/etc/mysql/my.cnf)
13 > * MySQL NOT started (0)
14 >
15 > If I just type mysql, I get the following error:-
16 > ERROR 2002 (HY000): Can't connect to local MySQL server through
17 > socket '/var/run/mysqld/mysqld.sock' (2)
18 >
19 > So it looks as if I have really screwed up moving /var
20 > The /var/run/mysql directory is empty
21
22 Check the permissions on /var/run/mysql.
23 It should be owned by mysql.
24 What's in mysql logs? They're probably in /var/log/mysql
25
26 Sasha
27
28
29 --
30 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] mysql won't start Paul Stear <gentoo@××××××××××××.com>