SQL 错误消息: "Can't connect to MySQL server on 'localhost' (10061)" SQL 语句: "mysql_connect('localhost', 'sdxyt') failed!" SQL 错误代码: "7335941".

错误原因:

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

异常的详细内容: exception 'FLEA_Db_Exception_SqlQuery' with message 'SQL 错误消息: "Can't connect to MySQL server on 'localhost' (10061)"
SQL 语句: "mysql_connect('localhost', 'sdxyt') failed!"
SQL 错误代码: "7335941".' in D:\web\sdxyt\FLEA\FLEA\Db\Driver\Mysql.php:69
Stack trace:
#0 D:\web\sdxyt\FLEA\FLEA.php(752): FLEA_Db_Driver_Mysql->connect()
#1 D:\web\sdxyt\FLEA\FLEA\Db\TableDataGateway.php(301): FLEA->getDBO()
#2 D:\web\sdxyt\FLEA\FLEA.php(422): FLEA_Db_TableDataGateway->FLEA_Db_TableDataGateway()
#3 D:\web\sdxyt\APP\Controller\Post.php(25): FLEA->getSingleton('Model_Posts')
#4 D:\web\sdxyt\FLEA\FLEA\Dispatcher\Simple.php(106): Controller_Post->Controller_Post('Post')
#5 D:\web\sdxyt\FLEA\FLEA\Dispatcher\Simple.php(77): FLEA_Dispatcher_Simple->_executeAction('Post', 'Gsxwzz', 'Controller_Post')
#6 D:\web\sdxyt\FLEA\FLEA.php(816): FLEA_Dispatcher_Simple->dispatching()
#7 D:\web\sdxyt\index.php(78): FLEA::runMVC()
#8 {main}

Exception: FLEA_Db_Exception_SqlQuery
Message: SQL 错误消息: "Can't connect to MySQL server on 'localhost' (10061)" SQL 语句: "mysql_connect('localhost', 'sdxyt') failed!" SQL 错误代码: "7335941".


Filename: D:\web\sdxyt\FLEA\FLEA.php [752]
#8 FLEA_Db_Driver_Mysql::connect()

Filename: D:\web\sdxyt\FLEA\FLEA\Db\TableDataGateway.php [301]
#7 FLEA::getDBO()

Filename: D:\web\sdxyt\FLEA\FLEA.php [422]
#6 FLEA_Db_TableDataGateway::FLEA_Db_TableDataGateway()

Filename: D:\web\sdxyt\APP\Controller\Post.php [25]
#5 FLEA::getSingleton('Model_Posts')

Filename: D:\web\sdxyt\FLEA\FLEA\Dispatcher\Simple.php [106]
#4 Controller_Post::Controller_Post('Post')

Filename: D:\web\sdxyt\FLEA\FLEA\Dispatcher\Simple.php [77]
#3 FLEA_Dispatcher_Simple::_executeAction('Post', 'Gsxwzz', 'Controller_Post')

Filename: D:\web\sdxyt\FLEA\FLEA.php [816]
#2 FLEA_Dispatcher_Simple::dispatching()

Filename: D:\web\sdxyt\index.php [78]
#1 FLEA::runMVC()