I built an RPM to chroot MySQL. All worked fine on one platform, but failed on the other. I got the following error:
Fatal error: Can't change to run as user 'mysql'
This is not interesting at all. To find out what's missing, I ran
# strace -f mysqld_safe --chroot=/chroot/mysql
The option "-f" trace child processes as they are created by currently traced processes.