src/Dev/Install/MySQLDatabaseConfigurationHelper.php
public function requireDatabaseVersion($databaseConfig)
    {
        $version = $this->getDatabaseVersion($databaseConfig);
        $success = false;
        $error = '';
        if ($version) {
            $success = version_compare($version, '5.0', '>=');
            if (!$success) {
                $error = "Your MySQL server version is $version. It's recommended you use at least MySQL 5.0.";
            }
        } else {
            $error = "Could not determine your MySQL version.";
        }
        return array(
            'success' => $success,
            'error' => $error
        );
    }
public function requireDatabaseVersion($databaseConfig)
    {
        $version = $this->getDatabaseVersion($databaseConfig);
        $success = false;
        $error = '';
        if ($version) {
            $success = version_compare($version, '5.0', '>=');
            if (!$success) {
                $error = "Your MySQL server version is $version. It's recommended you use at least MySQL 5.0.";
            }
        } else {
            $error = "Could not determine your MySQL version.";
        }
        return array(
            'success' => $success,
            'error' => $error
        );
    }
public function requireDatabaseVersion ( $ databaseConfig ) { $ version = $ this -> getDatabaseVersion ( $ databaseConfig ) ; $ success = false ; $ error = '' ; if ( $ version ) { $ success = version_compare ( $ version , '5.0' , '>=' ) ; if ( ! $ success ) { $ error = "Your MySQL server version is $version. It's recommended you use at least MySQL 5.0." ; } } else { $ error = "Could not determine your MySQL version." ; } return array ( 'success' => $ success , 'error' => $ error ) ; }
Ensure that the MySQL server version is at least 5.0.

@param array $databaseConfig Associative array of db configuration, e.g. "server", "username" etc
@return array Result - e.g. array('success' => true, 'error' => 'details of error')
Ensure that the MySQL server version is at least 5 . 0 .