mysql-server-5.1 can't chroot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.1 (Ubuntu) |
Won't Fix
|
Low
|
Jamie Strandboge |
Bug Description
Package: mysql-server-5.1
Release: Karmic alpha-6 (up-to-date @ bugreport)
Version: 5.1.37-1ubuntu4
Hello,
I have installed a LAMP server when installed the base system. Usually I use mysql in chroot-ed environment, here is a good howto:
http://
When I started the mysql, in logs there are these messages:
... mysqld: 090922 15:47:43 [ERROR] chroot: Operation not permitted
... mysqld: 090922 15:47:43 [ERROR] Aborting
Since Jaunty, when mysql runs in chroot, there must modify the apparmor config (enable sys_chroot cap, and accesing many files - it passed).
Then were:
... mysqld: 090922 15:57:40 [ERROR] Fatal error: Can't change to run as user 'mysql' ; Please check that the user exists!
... mysqld:
... mysqld: 090922 15:57:40 [ERROR] Aborting
... mysqld:
Okay, I changed running user from mysql to root - mysql started in chroot. It's not a good idea to run as root, I rejected this chance.
I moved usr.sbin.mysqld from apparmor directory, then mysql started in chroot, but it wanted to use /var/log/
(In /proc/pid_
I downgraded to mysql-server-5.0, and now mysql runs perfectly in chroot with user mysql.
affects: | ubuntu → mysql-dfsg-5.1 (Ubuntu) |
Thank you for taking the time to report this issue and helping to make Ubuntu better. We appreciate the difficulties you are facing - why are you running mysqld in a chroot?