Skip to content
Snippets Groups Projects
Commit 5cf9fdd9 authored by Bob Mottram's avatar Bob Mottram
Browse files

Try to keep mariadb running

parent 88083cc1
No related branches found
No related tags found
No related merge requests found
...@@ -177,6 +177,10 @@ function install_mariadb { ...@@ -177,6 +177,10 @@ function install_mariadb {
systemctl daemon-reload systemctl daemon-reload
systemctl restart mariadb systemctl restart mariadb
# mariadb daemon seems to occasionally crash
# This is a crude attempt to keep it running
add_watchdog_daemon mariadb
run_query mysql "CREATE USER 'root@localhost' IDENTIFIED BY '${MARIADB_PASSWORD}'; flush privileges;" run_query mysql "CREATE USER 'root@localhost' IDENTIFIED BY '${MARIADB_PASSWORD}'; flush privileges;"
run_query mysql "update mysql.user set plugin = '' where User='root@localhost'; flush privileges;" run_query mysql "update mysql.user set plugin = '' where User='root@localhost'; flush privileges;"
run_query mysql "GRANT ALL PRIVILEGES ON * TO 'root@localhost'; flush privileges;" run_query mysql "GRANT ALL PRIVILEGES ON * TO 'root@localhost'; flush privileges;"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment