Allow mariadb logins separate from the OS
This commit is contained in:
parent
ec41237695
commit
ad523641af
|
@ -168,6 +168,11 @@ function install_mariadb {
|
||||||
#fi
|
#fi
|
||||||
systemctl restart mariadb
|
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"
|
mysqladmin -u root password "$MARIADB_PASSWORD"
|
||||||
mark_completed $FUNCNAME
|
mark_completed $FUNCNAME
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue