if($check_sql_mode['@@sql_mode']!=''&&$check_sql_mode['@@sql_mode']!='NO_ENGINE_SUBSTITUTION')die('Wrong SQL-mode. You should use NO_ENGINE_SUBSTITUTION');
//** Create the database
if(!$this->db->query('CREATE DATABASE IF NOT EXISTS ?? DEFAULT CHARACTER SET ?',$conf['mysql']['database'],$conf['mysql']['charset'])){
$this->error('Unable to create MySQL database: '.$conf['mysql']['database'].'.');
if($check_sql_mode['@@sql_mode']!=''&&$check_sql_mode['@@sql_mode']!='NO_ENGINE_SUBSTITUTION')die('Wrong SQL-mode. You should use NO_ENGINE_SUBSTITUTION');
//* Update $conf array with values from the server.ini that shall be preserved
$tmp=$inst->db->queryOneRecord("SELECT * FROM ?? WHERE server_id = ?",$conf["mysql"]["database"].'.server',$conf['server_id']);