|
|
|
|
177
|
systemctl daemon-reload
|
177
|
systemctl daemon-reload
|
178
|
systemctl restart mariadb
|
178
|
systemctl restart mariadb
|
179
|
|
179
|
|
|
|
180
|
+ # mariadb daemon seems to occasionally crash
|
|
|
181
|
+ # This is a crude attempt to keep it running
|
|
|
182
|
+ add_watchdog_daemon mariadb
|
|
|
183
|
+
|
180
|
run_query mysql "CREATE USER 'root@localhost' IDENTIFIED BY '${MARIADB_PASSWORD}'; flush privileges;"
|
184
|
run_query mysql "CREATE USER 'root@localhost' IDENTIFIED BY '${MARIADB_PASSWORD}'; flush privileges;"
|
181
|
run_query mysql "update mysql.user set plugin = '' where User='root@localhost'; flush privileges;"
|
185
|
run_query mysql "update mysql.user set plugin = '' where User='root@localhost'; flush privileges;"
|
182
|
run_query mysql "GRANT ALL PRIVILEGES ON * TO 'root@localhost'; flush privileges;"
|
186
|
run_query mysql "GRANT ALL PRIVILEGES ON * TO 'root@localhost'; flush privileges;"
|