<?php
// enter correct MySQL server, user and password
$DBserver = 'localhost';
$DBuser = 'user';
$DBpassword = 'password';

$link = mysql_connect($DBserver, $DBuser, $DBpassword);

if (!$link) {
    die('Could not connect: ' . mysql_error());
}

$query = sprintf("SHOW VARIABLES LIKE 'innodb_version'");
$result = mysql_query($query);

if (!$result) {
    $message  = 'Invalid query: ' . mysql_error() . "\n";
    $message .= 'Whole query: ' . $query;
    die($message);
}

$InnoDBversion = mysql_fetch_row($result);

if (version_compare($InnoDBversion[1], '5.6') < 0) {

    die("Your current InnoDB version is $InnoDBversion[1]. Minimum required InnoDB version is 5.6.");

    }

mysql_free_result($result);

echo "Your InnoDB version matches the installation requirements. Feel free to proceed.";
?>