Unhandled Error!

MySQL connection error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Hint

This problem could be caused by the LemonStand MySQL connection configuration errors. Please log into the LemonStand Configuration Tool and update the database connection parameters. Also please make sure that MySQL server is running.

Document /phproad/modules/db/classes/db_mysqldriver.php
Document type PHP document
Line 87
Exception class Phpr_DatabaseException

Code Highlight

				// Set SQL Mode
				@mysql_query('SET sql_mode=""');
 
				Phpr_ErrorLog::$disable_db_logging = false;
			} catch (Exception $ex)
			{
				$exception = new Phpr_DatabaseException($ex->getMessage());
				$exception->hint_message = 'This problem could be caused by the LemonStand MySQL connection configuration errors. Please log into the LemonStand Configuration Tool and update the database connection parameters. Also please make sure that MySQL server is running.';
				throw $exception;
			}
		}
 
		public function reconnect()
# Call Stack Code Document Line
22 Db_MySQLDriver->connect(()) /phproad/modules/db/classes/db_mysqldriver.php 107
21 Db_MySQLDriver->execute('SELECT core_configuration_records.* FROM core_configuration_records WHERE (core_configuration_records.record_code = 'maintenance_configuration') LIMIT 0, 1') /phproad/modules/db/classes/db_sqlbase.php 604
20 Db_SqlBase->execute('SELECT core_configuration_records.* FROM core_configuration_records WHERE (core_configuration_records.record_code = 'maintenance_configuration') LIMIT 0, 1') /phproad/modules/db/classes/db_sqlbase.php 437
19 Db_SqlBase->query('SELECT core_configuration_records.* FROM core_configuration_records WHERE (core_configuration_records.record_code = 'maintenance_configuration') LIMIT 0, 1') /phproad/modules/db/classes/db_sqlbase.php 499
18 Db_SqlBase->fetchAll('SELECT core_configuration_records.* FROM core_configuration_records WHERE (core_configuration_records.record_code = 'maintenance_configuration') LIMIT 0, 1') /phproad/modules/db/classes/db_activerecord.php 512
17 Db_ActiveRecord->find_all_internal(null, array(0)) /phproad/modules/db/classes/db_activerecord.php 599
16 Db_ActiveRecord->find_all_by('record_code', 'maintenance_configuration', array(0)) /phproad/modules/db/classes/db_activerecord.php 593
15 Db_ActiveRecord->find_by('record_code', 'maintenance_configuration')
14 call_user_func_array(array(2) [0 => object(Cms_MaintenanceParams), 1 => 'find_by'], array(2) [0 => 'record_code', 1 => 'maintenance_configuration']) /phproad/modules/db/classes/db_activerecord.php 1594
13 Db_ActiveRecord->__call('find_by_record_code', array(1) [0 => 'maintenance_configuration']) /modules/core/classes/core_configuration_model.php 35
12 Cms_MaintenanceParams->find_by_record_code('maintenance_configuration') /modules/core/classes/core_configuration_model.php 35
11 Core_Configuration_Model->load(()) /modules/cms/models/cms_maintenanceparams.php 10
10 Cms_MaintenanceParams::create(()) /controllers/application.php 10
9 Application->resolve_page(array(0)) /controllers/application.php 72
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/rss') /phproad/system/phproad.php 31
2 include('/home/ribbedt/public_html/phproad/system/phproad.php') /boot.php 114
1 require_once('/home/ribbedt/public_html/boot.php') /index.php 3