1 |
On Wed, 2005-08-31 at 17:20 -0400, Eric Crossman wrote: |
2 |
> On Wed, 2005-08-31 at 15:52 -0500, Michael Sullivan wrote: |
3 |
> > I am having trouble with /etc/init.d/mysql. I rebooted my system, and |
4 |
> > when it finished rebooting I tried to connect to the mysql daemon and |
5 |
> > failed. I looked in /var/log/mysql: There was a file there called |
6 |
> > mysql.err. The contents were: |
7 |
> > |
8 |
> > 050831 15:47:29 mysqld started |
9 |
> > 050831 15:47:30 Can't start server: Bind on TCP/IP port: Address already |
10 |
> > in use |
11 |
> > 050831 15:47:30 Do you already have another mysqld server running on |
12 |
> > port: 3306 ? |
13 |
> > 050831 15:47:30 Aborting |
14 |
> > |
15 |
> > 050831 15:47:30 /usr/sbin/mysqld: Shutdown Complete |
16 |
> > |
17 |
> > 050831 15:47:30 mysqld ended |
18 |
> > |
19 |
> > |
20 |
> > I tried netstat | grep '3306': |
21 |
> > |
22 |
> > bullet mysql # netstat | grep '3306' |
23 |
> > bullet mysql # |
24 |
> > |
25 |
> > The output was blank, so I assume that port 3306 is NOT in use. Any |
26 |
> > ideas? |
27 |
> > |
28 |
> |
29 |
> Try netstat -an | grep 3306. The "-n" option forces netstat to show port |
30 |
> numbers and not translate them to familiar names. The "-p" option is |
31 |
> also useful to determine what program has opened the port. |
32 |
> |
33 |
> Eric |
34 |
|
35 |
I ran netstat with -an grepping for port 3306. It found it: |
36 |
|
37 |
bullet ~ # netstat -an | grep 3306 |
38 |
tcp 0 0 127.0.0.1:3306 0.0.0.0:* |
39 |
LISTEN |
40 |
|
41 |
|
42 |
so I grepp'd netstat for mysql: |
43 |
|
44 |
bullet ~ # netstat | grep 'mysql' |
45 |
unix 3 [ ] STREAM CONNECTING |
46 |
0 /var/run/mysqld/mysqld.sock |
47 |
|
48 |
It was running, so I tried using the mysql client: |
49 |
|
50 |
bullet ~ # mysql -u root -p |
51 |
Enter password: |
52 |
ERROR 2002: Can't connect to local MySQL server through socket |
53 |
'/var/run/mysqld/mysqld.sock' (2) |
54 |
bullet ~ # |
55 |
|
56 |
I don't understand this... |
57 |
|
58 |
|
59 |
-- |
60 |
gentoo-user@g.o mailing list |