summaryrefslogtreecommitdiff
path: root/installer/installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-08-30 13:43:29 -0700
committerBharat Mediratta <bharat@menalto.com>2009-08-30 13:43:29 -0700
commitfd954fe86e2852c245dd599f9476fdf8ea3642e4 (patch)
tree5c8a91d7889f5e982eb23aaa1735ad7277a9f4ed /installer/installer.php
parentaf6bfa3c71ccc2d45d3029c96f934a7ecd2c2143 (diff)
Print out the version of MySQL that we found along with our error
message, which should resolve http://gallery.menalto.com/node/90646
Diffstat (limited to 'installer/installer.php')
-rw-r--r--installer/installer.php8
1 files changed, 6 insertions, 2 deletions
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) {