Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 May 2007 09:34:18 +0100
From:      Tom Evans <tevans.uk@googlemail.com>
To:        Olivier Mueller <om-lists-bsd@omx.ch>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: mysql frequently crash on 6.2
Message-ID:  <1178094858.1217.5.camel@zoot.mintel.co.uk>
In-Reply-To: <1178052282.1279.6.camel@bigapple.omnis.ch>
References:  <d018a9bd0704301811n47a34e7ax457f527f083e49e0@mail.gmail.com> <20070501020721.GA44472@icarus.home.lan> <d018a9bd0704302358h1cb35046i2c4498fcb8fec5d7@mail.gmail.com> <53892.209.47.38.69.1178028723.squirrel@wettoast.dyndns.org> <1178033180.1239.13.camel@zoot.mintel.co.uk> <1178052282.1279.6.camel@bigapple.omnis.ch>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-yarqMf8V0Pmp+IBD25NH
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2007-05-01 at 22:44 +0200, Olivier Mueller wrote:
> Hi,
>=20
> On Tue, 2007-05-01 at 16:26 +0100, Tom Evans wrote:
> > On Tue, 2007-05-01 at 10:12 -0400, Mike Jakubik wrote:
> > > I've had problems with 6.2 and mysql on a large server as well. High =
CPU
> > > usage and crashes. I switched the threading library to libthr and the
> > > problems went away.
> > If you don't know how to switch what threading library is used,
> > libmap.conf(5) should explain it, or here is what we use: [...]
>=20
> Thanks for the input!  Do you have to recompile the mysql server after
> the change, or just to restart it to validate the change?=20
>=20
>=20
> And does anyone know if it will help in case of such errors  (FreeBSD)
> 6.0 and 6.1, latest 5.x mysqld) :
>=20
> 070426  0:11:30 [ERROR] /usr/local/libexec/mysqld: Incorrect key file
> for table './pia/pia_ads.MYI'; try to repair it
>         =20
> [root@pidb1 /var/db/mysql/pia]# ls -la pia_ads.*
> -rw-rw----  1 mysql  mysql  216427164 Apr 25 23:59 pia_ads.MYD
> -rw-rw----  1 mysql  mysql  561668096 Apr 26 00:15 pia_ads.MYI
> -rw-rw----  1 mysql  mysql      40200 Feb 25 23:38 pia_ads.frm
>=20
> The table is not that big, but there are 48 (!) indexes. And the problem
> only occurs on high load, after a few minutes/hours, it's hard to
> reproduce "on request" (I wish I could, to submit a bugreport to the
> mysql devs).=20
>=20
> Regards,
> Olivier
>=20

You shouldn't have to recompile mysql, just restart (as long as it is
dynamically linked; default from ports is). I'd always use mysql from
ports, as it is more targeted to freebsd.

We saw key file errors when using mysql 5.0(.27 iirc), but we have in
fact moved all of our production boxes back to mysql 4.0, as 5.0 branch
seemed far too unstable, slow and error prone (not wanting to start a
holy war here, just our experiences :).

Cheers

Tom

--=-yarqMf8V0Pmp+IBD25NH
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQBGOE0GlcRvFfyds/cRAljcAJ9BtVoCYzhcjvP8k1Pdnz0wUmX3YQCghps5
Bb5qWKzKqTZxShGSNKI6Axw=
=Hr3c
-----END PGP SIGNATURE-----

--=-yarqMf8V0Pmp+IBD25NH--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1178094858.1217.5.camel>