Adding Tunning Options

This commit is contained in:
2018-04-11 17:00:18 +02:00
parent edafc9a45e
commit 8b9bb4e7d7
5 changed files with 109 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash
todo=$(CreoleGet dbCreateFixAdmin 'non')
autoRepair=$(CreoleGet dbAutoOptimizeAndRepare 'non')
if [[ ${todo} != 'non' ]]
then
@ -60,5 +61,11 @@ then
chmod 600 ${readerfile}
rm -rf ${sqlFile}
fi
if [[ ${autoRepair} == "oui" ]]
then
mysqlcheck -u root --auto-repair --check --optimize --all-databases
fi
exit 0