From ad523641af993d68c72d8a08743c13a7fb6f3b12 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 5 Jun 2017 19:27:42 +0100 Subject: [PATCH] Allow mariadb logins separate from the OS --- src/freedombone-utils-database | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-utils-database b/src/freedombone-utils-database index 7a6fff11..aeefabfb 100755 --- a/src/freedombone-utils-database +++ b/src/freedombone-utils-database @@ -168,6 +168,11 @@ function install_mariadb { #fi systemctl restart mariadb + # See http://www.pontikis.net/blog/debian-9-stretch-rc3-web-server-setup-php7-mariadb + # https://mariadb.com/kb/en/mariadb/unix_socket-authentication-plugin + function_check run_query + run_query msql "update mysql.user set plugin = '' where User='root'; flush privileges;" + mysqladmin -u root password "$MARIADB_PASSWORD" mark_completed $FUNCNAME }