From fd954fe86e2852c245dd599f9476fdf8ea3642e4 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 30 Aug 2009 13:43:29 -0700 Subject: Print out the version of MySQL that we found along with our error message, which should resolve http://gallery.menalto.com/node/90646 --- installer/installer.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'installer/installer.php') diff --git a/installer/installer.php b/installer/installer.php index 456cffaa..58d264ec 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -104,11 +104,15 @@ class installer { mysql_select_db($config["dbname"]); } - static function verify_version($config) { + static function verify_mysql_version($config) { + return version_compare(installer::mysql_version($config), "5.0.0", ">="); + } + + static function mysql_version($config) { $result = mysql_query("SHOW VARIABLES WHERE variable_name = \"version\""); $row = mysql_fetch_object($result); $version = substr($row->Value, 0, strpos($row->Value, "-")); - return version_compare($version, "5.0.0", ">="); + return $version; } static function db_empty($config) { -- cgit v1.2.3