Comment 4 for bug 382727

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

On Fri, Jun 05, 2009 at 01:33:21PM -0000, pascal wrote:
> Jun 5 15:31:40 pascal-laptop mysqld_safe[15491]:
> Jun 5 15:31:40 pascal-laptop AppArmor(init): Skipping profile
> /etc/apparmor.d/usr.sbin.mysqld~
> Jun 5 15:31:41 pascal-laptop mysqld_safe[15673]: started
> Jun 5 15:31:41 pascal-laptop mysqld[15676]: 090605 15:31:41 [Warning]
> Can't create test file /home/mysql/pascal-laptop.lower-test
> Jun 5 15:31:41 pascal-laptop mysqld[15676]: 090605 15:31:41 [Warning]
> Can't create test file /home/mysql/pascal-laptop.lower-test
> Jun 5 15:31:41 pascal-laptop mysqld[15676]: 090605 15:31:41 InnoDB:
> Operating system error number 13 in a file operation.
> Jun 5 15:31:41 pascal-laptop mysqld[15676]: InnoDB: The error means
> mysqld does not have the access rights to
> Jun 5 15:31:41 pascal-laptop mysqld[15676]: InnoDB: the directory.

Why is mysql trying to use /home/mysql/ as its data directory?

Is /var/lib/mysql/ a symlink to /home/mysql/ ?

This is a non-default setup and thus mysqld apparmor profile needs to be
updated to account for this custom configuration.

--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com