protected function connectToMySql($mySQLconfig)
    {
        if (is_null($this->mySQLconnection)) {
            extract($mySQLconfig);
            $this->mySQLconnection = new \mysqli($host, $username, $password, $database, $port);
            if ($this->mySQLconnection->connect_error) {
                $this->mySQLconnection = null;
                $erNo                  = $this->mySQLconnection->connect_errno;
                $erMsg                 = $this->mySQLconnection->connect_error;
                $msg                   = $this->lclMsgCmn('i18n_Feedback_ConnectionError');
                return sprintf($msg, $erNo, $erMsg, $host, $port, $username, $database);
            }
            return '';
        }
    }
protected function connectToMySql($mySQLconfig)
    {
        if (is_null($this->mySQLconnection)) {
            extract($mySQLconfig);
            $this->mySQLconnection = new \mysqli($host, $username, $password, $database, $port);
            if ($this->mySQLconnection->connect_error) {
                $this->mySQLconnection = null;
                $erNo                  = $this->mySQLconnection->connect_errno;
                $erMsg                 = $this->mySQLconnection->connect_error;
                $msg                   = $this->lclMsgCmn('i18n_Feedback_ConnectionError');
                return sprintf($msg, $erNo, $erMsg, $host, $port, $username, $database);
            }
            return '';
        }
    }
protected function connectToMySql ( $ mySQLconfig ) { if ( is_null ( $ this -> mySQLconnection ) ) { extract ( $ mySQLconfig ) ; $ this -> mySQLconnection = new \ mysqli ( $ host , $ username , $ password , $ database , $ port ) ; if ( $ this -> mySQLconnection -> connect_error ) { $ this -> mySQLconnection = null ; $ erNo = $ this -> mySQLconnection -> connect_errno ; $ erMsg = $ this -> mySQLconnection -> connect_error ; $ msg = $ this -> lclMsgCmn ( 'i18n_Feedback_ConnectionError' ) ; return sprintf ( $ msg , $ erNo , $ erMsg , $ host , $ port , $ username , $ database ) ; } return '' ; } }
Initiates connection to MySQL

@param array $mySQLconfig

$mySQLconfig           = [
'host'     => MYSQL_HOST,
'port'     => MYSQL_PORT,
'username' => MYSQL_USERNAME,
'password' => MYSQL_PASSWORD,
'database' => MYSQL_DATABASE,
];

@return string
Initiates connection to MySQL