SQL 错误消息: "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)" SQL 语句: "mysql_connect('localhost', 'root') failed!" SQL 错误代码: "7335941".

错误原因:

您看到这个错误页面是因为应用程序抛出了没有捕获的异常。

异常的详细内容: exception 'FLEA_Db_Exception_SqlQuery' with message 'SQL 错误消息: "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"
SQL 语句: "mysql_connect('localhost', 'root') failed!"
SQL 错误代码: "7335941".' in /usr/local/apache/htdocs/gp/FLEA/FLEA/Db/Driver/Mysql.php:69
Stack trace:
#0 /usr/local/apache/htdocs/gp/FLEA/FLEA.php(752): FLEA_Db_Driver_Mysql->connect()
#1 /usr/local/apache/htdocs/gp/FLEA/FLEA/Db/TableDataGateway.php(301): FLEA->getDBO()
#2 /usr/local/apache/htdocs/gp/FLEA/FLEA.php(422): FLEA_Db_TableDataGateway->FLEA_Db_TableDataGateway()
#3 /usr/local/apache/htdocs/gp/FLEA/FLEA/Compatibility.php(115): FLEA::getSingleton('model_userop')
#4 /usr/local/apache/htdocs/gp/app/ctl/login.php(17): get_singleton('model_userop')
#5 /usr/local/apache/htdocs/gp/FLEA/FLEA/Dispatcher/Simple.php(106): ctl_login->ctl_login('login')
#6 /usr/local/apache/htdocs/gp/FLEA/FLEA/Dispatcher/Auth.php(127): FLEA_Dispatcher_Simple->_executeAction('login', 'index', 'ctl_login')
#7 /usr/local/apache/htdocs/gp/FLEA/FLEA.php(816): FLEA_Dispatcher_Auth->dispatching()
#8 /usr/local/apache/htdocs/gp/index.php(14): FLEA::runMVC()
#9 {main}

Exception: FLEA_Db_Exception_SqlQuery
Message: SQL 错误消息: "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)" SQL 语句: "mysql_connect('localhost', 'root') failed!" SQL 错误代码: "7335941".


Filename: /usr/local/apache/htdocs/gp/FLEA/FLEA.php [752]
#9 FLEA_Db_Driver_Mysql::connect()

Filename: /usr/local/apache/htdocs/gp/FLEA/FLEA/Db/TableDataGateway.php [301]
#8 FLEA::getDBO()

Filename: /usr/local/apache/htdocs/gp/FLEA/FLEA.php [422]
#7 FLEA_Db_TableDataGateway::FLEA_Db_TableDataGateway()

Filename: /usr/local/apache/htdocs/gp/FLEA/FLEA/Compatibility.php [115]
#6 FLEA::getSingleton('model_userop')

Filename: /usr/local/apache/htdocs/gp/app/ctl/login.php [17]
#5 get_singleton('model_userop')

Filename: /usr/local/apache/htdocs/gp/FLEA/FLEA/Dispatcher/Simple.php [106]
#4 ctl_login::ctl_login('login')

Filename: /usr/local/apache/htdocs/gp/FLEA/FLEA/Dispatcher/Auth.php [127]
#3 FLEA_Dispatcher_Simple::_executeAction('login', 'index', 'ctl_login')

Filename: /usr/local/apache/htdocs/gp/FLEA/FLEA.php [816]
#2 FLEA_Dispatcher_Auth::dispatching()

Filename: /usr/local/apache/htdocs/gp/index.php [14]
#1 FLEA::runMVC()