error!

SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

trace:

1 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Adapter/Pdo/Abstract.php w linijce 144 :
138: ...
139:         } catch (PDOException $e) {
140:             /**
141:              * @see Zend_Db_Adapter_Exception
142:              */
143:             require_once 'Zend/Db/Adapter/Exception.php';
144: throw new Zend_Db_Adapter_Exception($e->getMessage(), $e->getCode(), $e);
145: } 146: 147: } 148: 149: /** 150: ...


2 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Adapter/Pdo/Mysql.php w linijce 109 :
103: ...
104:         if (!empty($this->_config['charset'])) {
105:             $initCommand = "SET NAMES '" . $this->_config['charset'] . "'";
106:             $this->_config['driver_options'][1002] = $initCommand; // 1002 = PDO::MYSQL_ATTR_INIT_COMMAND
107:         }
108: 
109: parent::_connect();
110: } 111: 112: /** 113: * @return string 114: */ 115: ...


3 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Adapter/Abstract.php w linijce 459 :
453: ...
454:      * @return Zend_Db_Statement_Interface
455:      */
456:     public function query($sql, $bind = array())
457:     {
458:         // connect to the database if needed
459: $this->_connect();
460: 461: // is the $sql a Zend_Db_Select object? 462: if ($sql instanceof Zend_Db_Select) { 463: if (empty($bind)) { 464: $bind = $sql->getBind(); 465: ...


4 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Adapter/Pdo/Abstract.php w linijce 238 :
232: ...
233:                 }
234:             }
235:         }
236: 
237:         try {
238: return parent::query($sql, $bind);
239: } catch (PDOException $e) { 240: /** 241: * @see Zend_Db_Statement_Exception 242: */ 243: require_once 'Zend/Db/Statement/Exception.php'; 244: ...


5 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Adapter/Pdo/Mysql.php w linijce 169 :
163: ...
164:         if ($schemaName) {
165:             $sql = 'DESCRIBE ' . $this->quoteIdentifier("$schemaName.$tableName", true);
166:         } else {
167:             $sql = 'DESCRIBE ' . $this->quoteIdentifier($tableName, true);
168:         }
169: $stmt = $this->query($sql);
170: 171: // Use FETCH_NUM so we are not dependent on the CASE attribute of the PDO connection 172: $result = $stmt->fetchAll(Zend_Db::FETCH_NUM); 173: 174: $field = 0; 175: ...


6 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Table/Abstract.php w linijce 835 :
829: ...
830:         // If $this has no metadata cache or metadata cache misses
831:         if (null === $this->_metadataCache || !($metadata = $this->_metadataCache->load($cacheId))) {
832:             // Metadata are not loaded from cache
833:             $isMetadataFromCache = false;
834:             // Fetch metadata from the adapter's describeTable() method
835: $metadata = $this->_db->describeTable($this->_name, $this->_schema);
836: // If $this has a metadata cache, then cache the metadata 837: if (null !== $this->_metadataCache && !$this->_metadataCache->save($metadata, $cacheId)) { 838: trigger_error('Failed saving metadata to metadataCache', E_USER_NOTICE); 839: } 840: } 841: ...


7 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Table/Abstract.php w linijce 857 :
851: ...
852:      * @return array
853:      */
854:     protected function _getCols()
855:     {
856:         if (null === $this->_cols) {
857: $this->_setupMetadata();
858: $this->_cols = array_keys($this->_metadata); 859: } 860: return $this->_cols; 861: } 862: 863: ...


8 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Table/Abstract.php w linijce 897 :
891: ...
892:         } else if (isset($this->_primary[0])) {
893:             array_unshift($this->_primary, null);
894:             unset($this->_primary[0]);
895:         }
896: 
897: $cols = $this->_getCols();
898: if (! array_intersect((array) $this->_primary, $cols) == (array) $this->_primary) { 899: require_once 'Zend/Db/Table/Exception.php'; 900: throw new Zend_Db_Table_Exception("Primary key column(s) (" 901: . implode(',', (array) $this->_primary) 902: . ") are not columns in this table (" 903: ...


9 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Table/Abstract.php w linijce 982 :
976: ...
977:      * @return mixed
978:      * @throws Zend_Db_Table_Exception
979:      */
980:     public function info($key = null)
981:     {
982: $this->_setupPrimaryKey();
983: 984: $info = array( 985: self::SCHEMA => $this->_schema, 986: self::NAME => $this->_name, 987: self::COLS => $this->_getCols(), 988: ...


10 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Table/Select.php w linijce 100 :
94: ...
95:      * @return Zend_Db_Select This Zend_Db_Select object.
96:      */
97:     public function setTable(Zend_Db_Table_Abstract $table)
98:     {
99:         $this->_adapter = $table->getAdapter();
100: $this->_info = $table->info();
101: $this->_table = $table; 102: 103: return $this; 104: } 105: 106: ...


11 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Table/Select.php w linijce 78 :
72: ...
73:      */
74:     public function __construct(Zend_Db_Table_Abstract $table)
75:     {
76:         parent::__construct($table->getAdapter());
77: 
78: $this->setTable($table);
79: } 80: 81: /** 82: * Return the table that created this select object 83: * 84: ...


12 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Table/Abstract.php w linijce 1018 :
1012: ...
1013:      * @return Zend_Db_Table_Select
1014:      */
1015:     public function select($withFromPart = self::SELECT_WITHOUT_FROM_PART)
1016:     {
1017:         require_once 'Zend/Db/Table/Select.php';
1018: $select = new Zend_Db_Table_Select($this);
1019: if ($withFromPart == self::SELECT_WITH_FROM_PART) { 1020: $select->from($this->info(self::NAME), Zend_Db_Table_Select::SQL_WILDCARD, $this->info(self::SCHEMA)); 1021: } 1022: return $select; 1023: } 1024: ...


13 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Db/Table/Abstract.php w linijce 1326 :
1320: ...
1321:      * @return Zend_Db_Table_Rowset_Abstract The row results per the Zend_Db_Adapter fetch mode.
1322:      */
1323:     public function fetchAll($where = null, $order = null, $count = null, $offset = null)
1324:     {
1325:         if (!($where instanceof Zend_Db_Table_Select)) {
1326: $select = $this->select();
1327: 1328: if ($where !== null) { 1329: $this->_where($select, $where); 1330: } 1331: 1332: ...


14 plik /serv/vhosts/acsm.swspiz.pl/www/library/Koli/Model/Structure.php w linijce 50 :
44: ...
45:         if ($active_clause != 0)
46:             $where_clause[] = 'active = ' . ( (int) $active_clause);
47: 
48:         $where_clause[] = 'parent = ' . (intval($parent));
49: 
50: $rs = $this->fetchAll($where_clause, array('order asc'));
51: 52: if (empty($rs)) { 53: return array(); 54: } else { 55: return $rs->toArray(); 56: ...


15 plik /serv/vhosts/acsm.swspiz.pl/www/library/Koli/Model/Structure.php w linijce 149 :
143: ...
144: 
145:     public function getMenuStructure($startId=0, $active=0) {
146: 
147:         $readyItems = Koli_Tools::getCache($this->_cache_name . $startId . "_" . $active);
148:         if ($readyItems == FALSE) {
149: $items = $this->getAllByParent($startId, $active);
150: if (count($items) > 0) { 151: $readyItems = array(); 152: foreach ($items as $key => $item) { 153: $item['subs'] = $this->getMenuStructure($item['id'], $active); 154: $readyItems[] = $item; 155: ...


16 plik /serv/vhosts/acsm.swspiz.pl/www/application/Main_Controller.php w linijce 15 :
9: ...


17 plik /serv/vhosts/acsm.swspiz.pl/www/library/Koli/Controller/Standard/IndexController.php w linijce 15 :
9: ...


18 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Controller/Action.php w linijce 502 :
496: ...
497:     public function dispatch($action)
498:     {
499:         // Notify helpers of action preDispatch state
500:         $this->_helper->notifyPreDispatch();
501: 
502: $this->preDispatch();
503: if ($this->getRequest()->isDispatched()) { 504: if (null === $this->_classMethods) { 505: $this->_classMethods = get_class_methods($this); 506: } 507: 508: ...


19 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Controller/Dispatcher/Standard.php w linijce 295 :
289: ...
290:         if (empty($disableOb)) {
291:             ob_start();
292:         }
293: 
294:         try {
295: $controller->dispatch($action);
296: } catch (Exception $e) { 297: // Clean output buffer on error 298: $curObLevel = ob_get_level(); 299: if ($curObLevel > $obLevel) { 300: do { 301: ...


20 plik /serv/vhosts/acsm.swspiz.pl/www/library/Zend/Controller/Front.php w linijce 954 :
948: ...
949: 
950:                 /**
951:                  * Dispatch request
952:                  */
953:                 try {
954: $dispatcher->dispatch($this->_request, $this->_response);
955: } catch (Exception $e) { 956: if ($this->throwExceptions()) { 957: throw $e; 958: } 959: $this->_response->setException($e); 960: ...


21 plik /serv/vhosts/acsm.swspiz.pl/www/index.php w linijce 99 :
93: ...
94: 
95: function __($str){
96:     return $str;
97: }
98: 
99: $front->dispatch();