Skip to content
Snippets Groups Projects
Commit 94dec625 authored by Prasad's avatar Prasad
Browse files

Fix #783: Plugged in db charset check during installation

parent a974a1ef
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
$languageStrings = array(
'ERR_DATABASE_CONNECTION_FAILED' => 'Unable to connect to database Server',
'ERR_DB_NOT_FOUND' => 'This Database is not found.Try changing the Database settings',
'ERR_DB_NOT_UTF8' => 'Database charset or collation not compatible with UTF8',
'ERR_INVALID_MYSQL_PARAMETERS' => 'Invalid mySQL Connection Parameters specified',
'ERR_INVALID_MYSQL_VERSION' => 'MySQL version is not supported, kindly connect to MySQL 5.1.x or above',
'ERR_UNABLE_CREATE_DATABASE' => 'Unable to Create database',
......
......@@ -414,6 +414,8 @@ class Install_Utils_Model {
$error_msg_info = getTranslatedString('MSG_DB_ROOT_USER_NOT_AUTHORIZED', 'Install');
} elseif(!$db_exist_status) {
$error_msg = $db_name.' -> '.getTranslatedString('ERR_DB_NOT_FOUND', 'Install');
} elseif(!$db_utf8_support) {
$error_msg = $db_name.' -> '.getTranslatedString('ERR_DB_NOT_UTF8', 'Install');
} else {
$dbCheckResult['flag'] = true;
return $dbCheckResult;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment