mysql_install_db: Can't create test file *.lower-test

When I install MySQL on an Ubuntu machine, I tend to move MySQL's data and temp directories to another locations on a bigger partition that the root's.

But even after setting the correct user permissions to the new data directory, attempting to initialize the data directory to have mysql and information_schema schemas will fail, not due to not enough direcotry permissions as the error suggests, but for the security application apparmor that is installed by default with Ubuntu.

I have no interest in using this application but you probably do so you may no want to apply this solution.

/etc/init.d/apparmor stop/etc/init.d/apparmor update-rc.d -f apparmor removeapt-get purge apparmorreboot
>> Apply this solution at your own risk  <<

Comments

Popular posts from this blog

Hosting Apache Tapestry5.1 on GAE (Google App Engine)

Apache Tapestry PageActivationContext tutorial

Testing SOAP services using pingdom