Exception - Hurrican Framework

Exception: Database_Model


Line:


#20

File Name:


/data/www/data/www.andrearost.com/www.andrearost.com/System/library/db.class.php

Error Message:


Could not connect to server: 192.168.1.191 as user: z10051

Source Code:


#18         parent::__construct($parentController);
#19         if(!$this->link = @mysql_connect($this->config['db_host'],$this->config['db_username'],$this->config['db_password'],true)) {
#20             throw new Database_Model("Could not connect to server: <b>".$this->config['db_host']."</b> as user: <b>".$this->config['db_username']."</b>");
#21         }
#22         $db_selected mysql_select_db($this->config['db_database'],$this->link);
#23         if(!$db_selected) {
#24             throw new Database_Model('Can\'t use <b>'.$this->config['db_database'].'</b> : '.mysql_error($this->link));

Trace:


#0 /data/www/data/www.andrearost.com/www.andrearost.com/System/core/model_base.sysclass.php(37): db->__construct(Object(newsController))
#1 /data/www/data/www.andrearost.com/www.andrearost.com/System/library/jplayer.class.php(32): Model->__get('db')
#2 /data/www/data/www.andrearost.com/www.andrearost.com/EN-Front-end/controllers/newsController.php(99): Jplayer->getHead()
#3 /data/www/data/www.andrearost.com/www.andrearost.com/System/core/router.sysclass.php(112): newsController->index()
#4 /data/www/data/www.andrearost.com/www.andrearost.com/System/init.php(93): router->loader()
#5 /data/www/data/www.andrearost.com/www.andrearost.com/index.php(64): require('/data/www/data/...')
#6 {main}