Gentoo Archives: gentoo-user

From: "Stéphane Guedon" <stephane@××××××××××.eu>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mysql
Date: Sun, 11 Jul 2010 17:17:01
Message-Id: 201007111916.34679.stephane@22decembre.eu
In Reply to: Re: [gentoo-user] mysql by roundyz@hotmail.ru
1 Le dimanche 11 juillet 2010 20:07:11, roundyz@×××××××.ru a écrit :
2 > St??phane Guedon wrote:
3 > >> Hello
4 > >>
5 > >> Could someone help me concerning mysql.
6 > >>
7 > >> My servers (both laptop hosted mysql and server hosted) are buggy. Every
8 > >> time I restart them through the init script, it crash ! :
9 > >>
10 > >> 18:15:06 root@einstein:~ # rc-service mysql restart
11 > >> pdns | * Stopping PowerDNS (default) ...
12 > >> mediatomb | * Stopping MediaTomb ...
13 > >> [ ok ] mysql | * Stopping ...
14 > >> mysql | * Stopping mysqld (0)
15 > >> [ ok ] mysql | * Starting ...
16 > >> mysql | * Starting (/etc/mysql/my.cnf)
17 > >> mysql | * MySQL NOT started (0)
18 > >> [ !! ] mysql | * ERROR: mysql failed to start
19 > >> 18:15:44 root@einstein:~ # ps -A|grep mys
20 > >>
21 > >> 2333 ? 00:00:00 mysqld
22 > >>
23 > >> 18:15:56 root@einstein:~ # killall mysqld
24 > >> 18:17:37 root@einstein:~ # rc-service mysql zap
25 > >> mysql | * Manually resetting mysql to stopped state
26 > >> 18:17:44 root@einstein:~ # rc-service mysql start
27 > >> mysql | * Starting ...
28 > >> mysql | * Starting (/etc/mysql/my.cnf)
29 > >> mysql | * MySQL NOT started (0)
30 > >> [ !! ] mysql | * ERROR: mysql failed to start
31 > >> 18:17:53 root@einstein:~ # ps -A|grep mys
32 > >>
33 > >> 2628 ? 00:00:00 mysqld
34 > >>
35 > >> Of course, it crashs also on boot process, whereas at least two services
36 > >> (pdns and mediatomb) need it !
37 > >>
38 > >> ==========================
39 > >>
40 > >> Here is the end of emerge --info mysql for the server hosted, which is
41 > >> the most problematic :
42 > >>
43 > >> dev-db/mysql-5.1.46 was built with the following:
44 > >> USE="community debug latin1 (multilib) perl -big-tables -cluster
45 > >> -embedded -extraengine -max-idx-128 - minimal -pbxt -profiling
46 > >> (-selinux) -ssl -static -test -xtradb" CFLAGS="-march=native -O3 -pipe
47 > >> -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing"
48 > >> CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer
49 > >> -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions - fno-strict-aliasing
50 > >> -felide-constructors -fno-rtti -fno-implicit-templates
51 > >> -fno-strict-aliasing"
52 > >>
53 > >> ==========================
54 > >>
55 > >> I think I have read carefully the doc concerning mysql :
56 > >> http://www.gentoo.org/doc/fr/mysql-howto.xml.
57 > >>
58 > >> What can I do ?
59 > >>
60 > >> Thanks
61 >
62 > Hello,
63 >
64 > What do the logs in /var/log/mysql/ read? Thats where I'd look for the
65 > clue. Also check your config file.
66
67 19:12:09 root@einstein:/var/log/mysql # ls -l
68 total 36
69 -rw-rw---- 1 mysql mysql 0 Jul 11 15:05 mysql.err
70 -rw-rw---- 1 mysql mysql 0 Jul 11 15:05 mysql.log
71 -rw-rw---- 1 mysql mysql 36816 Apr 21 10:52 mysqld.err
72
73 19:14:11 root@einstein:/var/log/mysql # tail mysqld.err
74 100323 8:30:20 [Note] Event Scheduler: Loaded 0 events
75 100323 8:30:20 [Note] /usr/sbin/mysqld: ready for connections.
76 Version: '5.1.44-log' socket: '/var/run/mysqld/mysqld.sock' port: 3306
77 Gentoo Linux mysql-5.1.44-r1
78 100421 10:52:15 [Note] /usr/sbin/mysqld: Normal shutdown
79
80 100421 10:52:17 [Note] Event Scheduler: Purging the queue. 0 events
81 100421 10:52:20 InnoDB: Starting shutdown...
82 100421 10:52:39 InnoDB: Shutdown completed; log sequence number 0 8395213
83 100421 10:52:40 [Note] /usr/sbin/mysqld: Shutdown complete
84
85 This file is like this since DAYS ! I don't know why !
86
87 I use the usual config file given by the emerge process...
88
89 >
90 > Ragards,
91 >
92 > Matt
93
94 --
95 Stéphane Guedon
96 page web : http://www.22decembre.eu/
97 carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
98 clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-user] Re: mysql walt <w41ter@×××××.com>