int(2) string(106) "mysql_connect(): [2002] No such file or directory (trying to connect via unix:///var/lib/mysql/mysql.sock)" string(63) "/var/www/vhosts/innovarhomes.com/httpdocs/lib/pear/DB/mysql.php" int(237)

Error

 
[2] 
mysql_connect(): [2002] No such file or directory (trying to connect via unix:///var/lib/mysql/mysql.sock)
@line /var/www/vhosts/innovarhomes.com/httpdocs/lib/pear/DB/mysql.php in file 237

Debug Backtrace

#1  -- mysql_connect(...)

#2 mysql.php:237 -- call_user_func_array(...)
234:         $php_errormsg = '';
235:         if ($ini) {
236:             $this->connection = @call_user_func_array($connect_function,
237:                                                       $params);
238:         } else {
239:             ini_set('track_errors', 1);
240:             $this->connection = @call_user_func_array($connect_function,
#3 DB.php:556 -- DB_mysql->connect(...)
553:             }
554:         }
555: 
556:         $err = $obj->connect($dsninfo, $obj->getOption('persistent'));
557:         if (DB::isError($err)) {
558:             $err->addUserInfo($dsn);
559:             return $err;
#4 RDataConnection.php:52 -- DB->connect(...)
49: 		}
50: 	
51: 		
52: 		$this->Connection = DB::connect($ConnectionString);
53: 		if (DB::isError($this->Connection)) {
54: 			throw new RDataException('can not connect to db', $this->Connection);
55: 		}
#5 RMasterModel.php:20 -- RDataConnection->Connect(...)
17: 	{ 
18: 		$this->Connection = new RDataConnection();	
19: 		//Connect($Type, $User, $Password, $Database, $Host = null, $Port = null)
20: 		$this->Connection->Connect(CONNECTION_TYPE,DATABASE_USERNAME,DATABASE_PASSWORD,DATABASE_NAME,DATABASE_HOST,DATABASE_PORT);
21: 	}	
22: }
23: 
#6 CmsPageMaster.php:43 -- RMasterModel->__construct()
40: 	 */	
41: 	public function create()
42: 	{
43: 		$CmsPageMasterObj = new CmsPageMaster();
44: 		return  $CmsPageMasterObj;
45: 	}//create Function End
46: 	      
#7 index.php:8 -- CmsPageMaster::create()