Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1989 → Rev 1990

/alcasar.sh
931,7 → 931,12
##########################################################################################
init_db ()
{
if [ `systemctl is-active mysqld` == "active" ]
then
systemctl stop mysqld
fi
rm -rf /var/lib/mysql # to be sure that there is no former installation
/usr/sbin/mysql-prepare-db-dir
[ -e /etc/my.cnf.default ] || cp /etc/my.cnf /etc/my.cnf.default
$SED "s?^tmpdir.*?tmpdir=/tmp?g" /etc/my.cnf
$SED "s?^port.*?#&?g" /etc/my.cnf # we use unix socket only