Pull-request: #18316 Fixes: #18210 Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
commit
cbad7c9198
@ -3524,7 +3524,7 @@ class Privileges
|
||||
|
||||
// MariaDB uses 'USING' whereas MySQL uses 'AS'
|
||||
// but MariaDB with validation plugin needs cleartext password
|
||||
if (Compatibility::isMariaDb() && ! $isMariaDBPwdPluginActive) {
|
||||
if (Compatibility::isMariaDb() && ! $isMariaDBPwdPluginActive && isset($_POST['authentication_plugin'])) {
|
||||
$createUserStmt .= ' USING \'%s\'';
|
||||
} elseif (Compatibility::isMariaDb()) {
|
||||
$createUserStmt .= ' IDENTIFIED BY \'%s\'';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user