Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Zend SQLSTATE[HY000] error HELP!!!
#1
Hi Folks,

I operate web site build up on Zend Framework. It is hosted on VPS CentOS 5.0 where Omega is installed as the control panel. Recently it gave me such error that I can't solve myself and I need your help.

The error is as follows:
Code:
an unexpected error occurred.
Unexpected Exception: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

#0 /var/www/virtual/escape.ge/escape_core/library/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/virtual/escape.ge/escape_core/library/Zend/Db/Adapter/Abstract.php(444): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/virtual/escape.ge/escape_core/library/Zend/Db/Adapter/Pdo/Abstract.php(232): Zend_Db_Adapter_Abstract->query('DESCRIBE `event...', Array)
#3 /var/www/virtual/escape.ge/escape_core/library/Zend/Db/Adapter/Pdo/Mysql.php(156): Zend_Db_Adapter_Pdo_Abstract->query('DESCRIBE `event...')
#4 /var/www/virtual/escape.ge/escape_core/library/Zend/Db/Table/Abstract.php(727): Zend_Db_Adapter_Pdo_Mysql->describeTable('events', NULL)
#5 /var/www/virtual/escape.ge/escape_core/library/Zend/Db/Table/Abstract.php(753): Zend_Db_Table_Abstract->_setupMetadata()
#6 /var/www/virtual/escape.ge/escape_core/library/Zend/Db/Table/Abstract.php(793): Zend_Db_Table_Abstract->_getCols()
#7 /var/www/virtual/escape.ge/escape_core/library/Zend/Db/Table/Abstract.php(877): Zend_Db_Table_Abstract->_setupPrimaryKey()
#8 /var/www/virtual/escape.ge/escape_core/library/Zend/Db/Table/Select.php(100): Zend_Db_Table_Abstract->info()
#9 /var/www/virtual/escape.ge/escape_core/library/Zend/Db/Table/Select.php(78): Zend_Db_Table_Select->setTable(Object(EventManager))
#10 /var/www/virtual/escape.ge/escape_core/library/Zend/Db/Table/Abstract.php(912): Zend_Db_Table_Select->__construct(Object(EventManager))
#11 /var/www/virtual/escape.ge/escape_core/include/models/EventManager.php(1166): Zend_Db_Table_Abstract->select()
#12 /var/www/virtual/escape.ge/escape_core/library/Zend/Controller/Plugin/Footer.php(8): EventManager->getRandomReviewsEvents()
#13 /var/www/virtual/escape.ge/escape_core/library/Zend/Controller/Plugin/Broker.php(308): Zend_Controller_Plugin_Footer->preDispatch(Object(Zend_Controller_Request_Http))
#14 /var/www/virtual/escape.ge/escape_core/library/Zend/Controller/Front.php(932): Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http))
#15 /var/www/virtual/escape.ge/htdocs/index.php(169): Zend_Controller_Front->dispatch()
#16 {main}

Please help me solve this problem . . .

Thank you in advance . . .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)