935,15 → 935,17 |
[ -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 |
$SED "s?^plugin-load.*?#&?g" /etc/my.cnf.s/feedback.cnf # remove the feedback plugin (ALCASAR doesn't report anything !) |
$SED "s?^;collation_server =.*?collation_server = utf8_unicode_ci?g" /etc/my.cnf |
$SED "s?^;character_set_server =.*?character_set_server = utf8?g" /etc/my.cnf # accentuated user names are allowed |
$SED "s?^plugin-load.*?#&?g" /etc/my.cnf.d/feedback.cnf # remove the feedback plugin (ALCASAR doesn't report anything !) |
/usr/bin/systemctl start mysqld.service |
nb_round=1 |
while [ ! -f /var/run/mysqld/mysqld.pid ] && [ $nb_round -ne 10 ] # we wait until mariadb is on |
while [ ! -f /var/lib/mysql/mysql.sock ] && [ $nb_round -ne 10 ] # we wait until mariadb is on |
do |
nb_round=`expr $nb_round + 1` |
sleep 2 |
done |
if [ ! -f /var/run/mysqld/mysqld.pid ] |
if [ ! -f /var/lib/mysql/mysql.sock ] |
then |
echo "Problème : la base donnée ne s'est pas lancée ! " |
exit |