From 6daa9664f17d24a658fb5681465914a296e4f2be Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 5 Jun 2017 21:34:20 +0100 Subject: [PATCH] mariadb root user --- src/freedombone-utils-database | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedombone-utils-database b/src/freedombone-utils-database index 3be013c6..4219a678 100755 --- a/src/freedombone-utils-database +++ b/src/freedombone-utils-database @@ -177,6 +177,9 @@ function install_mariadb { systemctl daemon-reload systemctl restart mariadb + run_query mysql "CREATE USER 'root@localhost' IDENTIFIED BY '${MARIADB_PASSWORD}'; flush privileges;" + run_query mysql "GRANT ALL PRIVILEGES ON * TO 'root@localhost'; flush privileges;" + mysqladmin -u root password "$MARIADB_PASSWORD" mark_completed $FUNCNAME }