Use authentication_string for mysql-5.7 and mysql-8 (not password-field) - let's see what happens

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-11-17 14:29:37 +01:00
parent 605d2340d1
commit e6dad6c6d0

View File

@@ -247,7 +247,7 @@ class DbManagerMySQL
if ($user_only == false) { if ($user_only == false) {
if (! isset($allsqlusers[$row['User']]) || ! is_array($allsqlusers[$row['User']])) { if (! isset($allsqlusers[$row['User']]) || ! is_array($allsqlusers[$row['User']])) {
$allsqlusers[$row['User']] = array( $allsqlusers[$row['User']] = array(
'password' => $row['Password'], 'password' => $row['Password'] ?? $row['authentication_string'],
'hosts' => array() 'hosts' => array()
); );
} }