소스 검색

Allow mariadb logins separate from the OS

Bob Mottram 7 년 전
부모
커밋
ad523641af
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5
    0
      src/freedombone-utils-database

+ 5
- 0
src/freedombone-utils-database 파일 보기

168
     #fi
168
     #fi
169
     systemctl restart mariadb
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
     mysqladmin -u root password "$MARIADB_PASSWORD"
176
     mysqladmin -u root password "$MARIADB_PASSWORD"
172
     mark_completed $FUNCNAME
177
     mark_completed $FUNCNAME
173
 }
178
 }