
mysql_install_db &&
chown -R mysql.mysql /var/lib/mysql/ &&
chmod 755 /var/lib/mysql

if mount | grep "/tmp" | grep -q tmpfs ; then
  message ""
  message "if /tmp is tmpfs and if mysql is being used against big"
  message "tables (> 2G) there is a big possibility of data/index"
  message "corruption, especially on myisamchk"
  message ""
  message "Consider mounting /tmp on a regular file system"
  message ""
fi

if module_installed akonadi; then
lin -c akonadi
fi
