Gentoo Archives: gentoo-user

From: Fredrik Lundgren <fredrik.bg.lundgren@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ... Can't connect to local MySQL server ...
Date: Sun, 05 Feb 2006 01:48:19
Message-Id: 000801c629f4$c4dcedd0$419d72d5@Larissa
In Reply to: Re: [gentoo-user] ... Can't connect to local MySQL server ... by John Jolet
1 Thanks for the suggestions!
2
3 The problem is that
4
5 # /etc/init.d/mysql start
6 * ...
7 * Starting mysql (/etc/mysql/my.cnf)
8 * MySQL NOT started (0) [!!]
9
10 In my.cnf
11
12 ....
13 ....
14 [client]
15 # password = your_password
16 port = 3306
17 socket = /var/run/mysqld/mysqld.sock
18 ...
19 ...
20
21 [mysqld]
22 ...
23 ...
24 user = mysql
25 port = 3306
26 socket = /var/run/mysqld/mysqld.sock
27 ....
28 ...
29
30 So it appears that /var/run/mysqld/mysqld.sock somehow is corrupted
31 How should that be fixed?
32
33 Fredrik
34
35 ----- Original Message -----
36 From: "John Jolet" <john@×××××.net>
37 To: <gentoo-user@l.g.o>
38 Sent: Sunday, February 05, 2006 1:40 AM
39 Subject: Re: [gentoo-user] ... Can't connect to local MySQL server ...
40
41
42 >
43 > On Feb 4, 2006, at 6:22 PM, A. Khattri wrote:
44 >
45 >> On Sun, 5 Feb 2006, Fredrik Lundgren wrote:
46 >>
47 >>> When I try to visit with
48 >>> $ mysql -u root -p
49 >>> password. *******
50 >>>
51 >>> I get
52 >>> ERROR 2002 (HY000): Can't connect to local MySQL server through
53 >>> socket
54 >>> 'var/run/mysqld.sock' (2)
55 >>>
56 >>> Evidently my configuration is wrong
57 >>>
58 >>> Has anyone a tip or two ?
59 >>
60 >> Maybe start mysqld?
61 >>
62 >> /etc/init.d/mysql start
63 >>
64 > and make sure it's still running. and make sure there's an entry for
65 > the mysql client in the my.cnf pointing to the proper socket.
66 >>> and how do I get mysql to start at boot?
67 >>
68 >> Maybe use rc-update?
69 >>
70 >> rc-update add mysql default
71 >>
72 >>
73 >> (Yes, its in the handbook)
74 >>
75 >> --
76 >>
77 >> --
78 >> gentoo-user@g.o mailing list
79 >>
80 >
81 > --
82 > gentoo-user@g.o mailing list
83 >
84 >
85
86
87 --
88 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] ... Can't connect to local MySQL server ... John Jolet <john@×××××.net>