Magento Commerce

There has been an error processing your request.

SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Trace:
#0 /var/www/html/lojavirtual/lib/Varien/Db/Adapter/Pdo/Mysql.php(188): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/html/lojavirtual/lib/Zend/Db/Adapter/Abstract.php(441): Varien_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/html/lojavirtual/lib/Zend/Db/Adapter/Pdo/Abstract.php(230): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#3 /var/www/html/lojavirtual/lib/Varien/Db/Adapter/Pdo/Mysql.php(258): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#4 /var/www/html/lojavirtual/app/code/core/Mage/Core/Model/Resource/Type/Db/Pdo/Mysql.php(45): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#5 /var/www/html/lojavirtual/app/code/core/Mage/Core/Model/Resource.php(83): Mage_Core_Model_Resource_Type_Db_Pdo_Mysql->getConnection(Object(Mage_Core_Model_Config_Element))
#6 /var/www/html/lojavirtual/app/code/core/Mage/Core/Model/Resource/Setup.php(62): Mage_Core_Model_Resource->getConnection('core_setup')
#7 /var/www/html/lojavirtual/app/code/core/Mage/Core/Model/Resource/Setup.php(120): Mage_Core_Model_Resource_Setup->__construct('core_setup')
#8 /var/www/html/lojavirtual/app/code/core/Mage/Core/Model/Config.php(215): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#9 /var/www/html/lojavirtual/app/code/core/Mage/Core/Model/App.php(241): Mage_Core_Model_Config->init(Array)
#10 /var/www/html/lojavirtual/app/Mage.php(427): Mage_Core_Model_App->init('', 'store', Array)
#11 /var/www/html/lojavirtual/app/Mage.php(446): Mage::app('', 'store', Array)
#12 /var/www/html/lojavirtual/index.php(52): Mage::run()
#13 {main}