Skip to content

Commit

Permalink
Revert "Fix #18210 - Add replica replication user on MariaDB doesn't …
Browse files Browse the repository at this point in the history
…work"
  • Loading branch information
williamdes committed Apr 28, 2024
1 parent 09f1c4e commit 87bbb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/classes/Server/Privileges.php
Original file line number Diff line number Diff line change
Expand Up @@ -3524,7 +3524,7 @@ public function getSqlQueriesForDisplayAndAddUser($username, $hostname, $passwor

// MariaDB uses 'USING' whereas MySQL uses 'AS'
// but MariaDB with validation plugin needs cleartext password
if (Compatibility::isMariaDb() && ! $isMariaDBPwdPluginActive && isset($_POST['authentication_plugin'])) {
if (Compatibility::isMariaDb() && ! $isMariaDBPwdPluginActive) {
$createUserStmt .= ' USING \'%s\'';
} elseif (Compatibility::isMariaDb()) {
$createUserStmt .= ' IDENTIFIED BY \'%s\'';
Expand Down

0 comments on commit 87bbb1d

Please sign in to comment.