Bug#673161: Starting mysqld in a chroot

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#673161: Starting mysqld in a chroot

Arnold Metselaar
Hi,

I was mistaken in my previous message.  Generating a decent /etc/mtab with the line

grep "${CHROOT_PATH}" /etc/mtab | sed -e "s:${CHROOT_PATH}/\?:/:" >"${CHROOT_PATH}/etc/mtab"

in /etc/schroot/setup.d/99mini-buildd helped get rid of warnings from df,  
but mysqld was trying to start without it as well.

Mysqld tries to bind to a port at start-up, and fails when another mysqld outside the chroot is already
bound to that port. When mysqld is not running in the host machine, it starts in a chroot just fine.
It should also work when mysqld in the host is listening on a non-standard port.

Regards,
Arnold



_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Bug#673161: Starting mysqld in a chroot

Francesco Riosa
Il 18/05/2012 08:21, Arnold Metselaar ha scritto:

> Hi,
>
> I was mistaken in my previous message.  Generating a decent /etc/mtab with the line
>
> grep "${CHROOT_PATH}" /etc/mtab | sed -e "s:${CHROOT_PATH}/\?:/:">"${CHROOT_PATH}/etc/mtab"
>
> in /etc/schroot/setup.d/99mini-buildd helped get rid of warnings from df,
> but mysqld was trying to start without it as well.
>
> Mysqld tries to bind to a port at start-up, and fails when another mysqld outside the chroot is already
> bound to that port. When mysqld is not running in the host machine, it starts in a chroot just fine.
> It should also work when mysqld in the host is listening on a non-standard port.
>
> Regards,
> Arnold

Dunno how this reached digikam mailing list but you can start mysql
without networking with the following in my.cnf:

[mysqld]
skip-networking

or starting mysqld with --skip-networking option

or at your pleasure change port (usually 3307) with:
[mysqld]
port = 3307

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel