Update minimal server requirements

This commit is contained in:
Kijin Sung 2016-01-24 10:20:35 +09:00
parent d1b0a7595d
commit d3c0e94b03
5 changed files with 45 additions and 32 deletions

View file

@ -67,7 +67,7 @@ class DBMysql extends DB
$result = @mysql_connect($connection["db_hostname"], $connection["db_userid"], $connection["db_password"]);
if(!$result)
{
exit('XE cannot connect to DB.');
exit('Unable to connect to DB.');
}
if(mysql_error())
@ -76,10 +76,10 @@ class DBMysql extends DB
return;
}
// Error appears if the version is lower than 4.1
if(version_compare(mysql_get_server_info($result), '4.1', '<'))
// Error appears if the version is lower than 4.1.13
if(version_compare(mysql_get_server_info($result), '4.1.13', '<'))
{
$this->setError(-1, 'XE cannot be installed under the version of mysql 4.1. Current mysql version is ' . mysql_get_server_info());
$this->setError(-1, 'RhymiX requires MySQL 4.1.13 or later. Current MySQL version is ' . mysql_get_server_info());
return;
}