Skip to content

Commit

Permalink
Fix retrieving MySQL version for checking as part of install requirem…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
seamuslee001 committed Jun 12, 2020
1 parent d4b99fb commit b18689e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Civi/Install/Requirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,10 @@ public function checkMysqlVersion(array $db_config) {
return $results;
}

if (version_compare($info, $min) == -1) {
$versionDetails = mysqli_query($conn, 'SELECT version() as version')->fetch_assoc();
if (version_compare($versionDetails['version'], $min) == -1) {
$results['severity'] = $this::REQUIREMENT_ERROR;
$results['details'] = "MySQL version is {$info}; minimum required is {$min}";
$results['details'] = "MySQL version is {$info}; minimum required is {$min}";;
return $results;
}

Expand Down

0 comments on commit b18689e

Please sign in to comment.