I found what was not correct :
my /etc/apparmor.d/usr.sbin.mysqld was not correctly set up with the
location I use for mysql (/home/mysql)
Tow lines:
/var/lib/mysql/ r,
/var/lib/mysql/** rwk,
should be replaced by:
/home/mysql/ r,
/home/mysql/** rwk,
It is well described in
On Tue, Sep 15, 2009 at 09:27:21AM -, Marc Uszynski wrote:
I found what was not correct :
my /etc/apparmor.d/usr.sbin.mysqld was not correctly set up with the
location I use for mysql (/home/mysql)
status invalid
--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com
** Changed
Here they are:
/var/log/kern.log
Jul 2 10:26:51 maison-desktop kernel: [518763.806843] type=1503
audit(1246523211.630:219): operation=inode_create requested_mask=a::
denied_mask=a:: fsuid=0 name=/home/mysql/maison-desktop.lower-test pid=743
profile=/usr/sbin/mysqld
Jul 2 10:26:51
Sorry, I tried to look for a solution but could not succeed.
here is part of daemon.log:
Jul 2 10:26:51 maison-desktop mysqld_safe[722]: 090702 10:26:51 [Warning]
Can't create test file /home/mysql/maison-desktop.lower-test
Jul 2 10:26:51 maison-desktop mysqld_safe[722]: 090702 10:26:51
It seems that you're using a non-standard location to hold your data
(/home/mysql). There may be an issue with mysqld AppArmor profile. See
https://wiki.ubuntu.com/DebuggingApparmor for more information to deal
with this issue.
Could you please provide the following information:
* apparmor
** Attachment added: Dependencies.txt
http://launchpadlibrarian.net/27445282/Dependencies.txt
** Attachment added: DpkgTerminalLog.txt
http://launchpadlibrarian.net/27445283/DpkgTerminalLog.txt
--
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to
install/upgrade: le
Relevant errors:
* Starting MySQL database server mysqld
...fail!
invoke-rc.d: initscript mysql, action start failed.
dpkg : erreur de traitement de mysql-server-5.0 (--configure) :
le sous-processus post-installation script a retourné une erreur de sortie
d'état 1
Could you post the