Loading knowledgebase suggestions...
When trying to configure AMS with MySQL database,we got "Error: Unknown database 'test'".How can we resolve this error to finish AMS MySQL database configuration?
Solution
Issue: When trying to configure AMS with MySQL database,we got "Error: Unknown database 'test'".
Step-by-step solution:
Was this article helpful?
yes /
no
Article details
Article ID:
165
Category:
AMS Software
Views:
605
Rating (Votes):
(0)
« Go back
$s = 1;
if (file_exists(HESK_PATH . 'hesk_license.php'))
{
$h = (!empty($_SERVER['HTTP_HOST'])) ? $_SERVER['HTTP_HOST'] : ((!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : getenv('SERVER_NAME'));
$h = str_replace('www.','',strtolower($h));
include(HESK_PATH . 'hesk_license.php');
if (isset($hesk_settings['license']) && strpos($hesk_settings['license'],sha1($h.'h3&Fp2#LaA&59!w(8.Zc]*+uR512')) !== false)
{
$s = 0;
}
else
{
echo 'INVALID LICENSE (NOT REGISTERED FOR '.$h.')!
';
}
}
if ($s)
{
echo ' Powered by Help Desk Software HESK - brought to you by Help Desk Software SysAid
';
}
echo '