Skip to content

Commit

Permalink
Merge pull request #84 from bschmalhofer/issue-82-as_password
Browse files Browse the repository at this point in the history
Issue #82: Fix CREATE USER statement.
  • Loading branch information
svenoe authored Jun 8, 2020
2 parents ae6bb7f + 5b4dc79 commit 3f03df5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Kernel/Modules/Installer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -536,11 +536,11 @@ sub Run {
# a case switch must be used here.
my $CreateUserSQL = "CREATE USER `$DB{OTOBODBUser}`\@`$Host` IDENTIFIED WITH mysql_native_password";
{
if ( $DBH->{server_info} =~ m/mariadb/i ) {
$CreateUserSQL .= " BY '$DB{OTOBODBPassword}'",
if ( $DBH->{mysql_serverinfo} =~ m/mariadb/i ) {
$CreateUserSQL .= " AS PASSWORD('$DB{OTOBODBPassword}')",
}
else {
$CreateUserSQL .= " AS PASSWORD('$DB{OTOBODBPassword}')",
$CreateUserSQL .= " BY '$DB{OTOBODBPassword}'",
}
}

Expand Down

0 comments on commit 3f03df5

Please sign in to comment.