|
@@ -168,6 +168,11 @@ function install_mariadb {
|
168
|
168
|
#fi
|
169
|
169
|
systemctl restart mariadb
|
170
|
170
|
|
|
171
|
+ # See http://www.pontikis.net/blog/debian-9-stretch-rc3-web-server-setup-php7-mariadb
|
|
172
|
+ # https://mariadb.com/kb/en/mariadb/unix_socket-authentication-plugin
|
|
173
|
+ function_check run_query
|
|
174
|
+ run_query msql "update mysql.user set plugin = '' where User='root'; flush privileges;"
|
|
175
|
+
|
171
|
176
|
mysqladmin -u root password "$MARIADB_PASSWORD"
|
172
|
177
|
mark_completed $FUNCNAME
|
173
|
178
|
}
|