Gentoo Archives: gentoo-server

From: Bishop Bettini <php@××××××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] mysql
Date: Mon, 12 Jul 2010 13:05:38
Message-Id: 20100712085904.rhmd8c5hc0g4k8k4@mail.ideacode.com
1 If the mysql log (per Brandon's suggestion) doesn't show anything
2 useful, you can always try strace on the mysqld executable directly.
3 Something along the lines of:
4
5 sudo -i
6
7 # stop mysql clean, figure out how your system starts it up
8 /etc/init.d/mysql stop
9 mysql_flags=$(/etc/init.d/mysql --debug start 2>&1 | grep 'starting
10 mysqld with' | cut -f 2- -d:)
11 /etc/init.d/mysql stop
12
13 # manually run mysql, through strace to see what's going on
14 emerge -av strace
15 strace /usr/sbin/mysqld $mysql_flags 2>&1 | tee /tmp/strace.mysql.out
16
17 exit
18
19
20 Then the log file /tmp/strace.mysql.out might show a SEGV or some
21 other bad bad problem.
22
23 bishop
24
25 --
26 Bishop Bettini
27 ideacode, Inc.
28 (main) +1 919 341 5170 / (fax) +1 919 521 4100
29
30 CELEBRATING 10 YEARS OF GREAT SOFTWARE!