0

我已将一个正在工作的 zend 项目转移到另一台服务器。这是一个主域,一切都设置正确(我认为)。页眉和页脚运行良好,但在中间内容区域显示错误消息。

Server IP: 67.225.249.200
User agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
Server time: 2013-07-10 02:50:43
RequestURI: /
Message: SQLSTATE[HY000] [2054] The server requested authentication method umknown to the client

Trace:
#0 /home/xienc2/public_html/library/Zend/Db/Adapter/Pdo/Mysql.php(109): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /home/xienc2/public_html/library/Zend/Db/Adapter/Abstract.php(459): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /home/xienc2/public_html/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DESCRIBE `page`', Array)
#3 /home/xienc2/public_html/library/Zend/Db/Adapter/Pdo/Mysql.php(169): Zend_Db_Adapter_Pdo_Abstract->query('DESCRIBE `page`')
#4 /home/xienc2/public_html/library/Zend/Db/Table/Abstract.php(835): Zend_Db_Adapter_Pdo_Mysql->describeTable('page', NULL)
#5 /home/xienc2/public_html/library/Zend/Db/Table/Abstract.php(874): Zend_Db_Table_Abstract->_setupMetadata()
#6 /home/xienc2/public_html/library/Zend/Db/Table/Abstract.php(982): Zend_Db_Table_Abstract->_setupPrimaryKey()
#7 /home/xienc2/public_html/library/Zend/Db/Table/Select.php(100): Zend_Db_Table_Abstract->info()
#8 /home/xienc2/public_html/library/Zend/Db/Table/Select.php(78): Zend_Db_Table_Select->setTable(Object(Application_Model_DbTable_Page))
#9 /home/xienc2/public_html/library/Zend/Db/Table/Abstract.php(1018): Zend_Db_Table_Select->__construct(Object(Application_Model_DbTable_Page))
#10 /home/xienc2/public_html/library/Zend/Db/Table/Abstract.php(1326): Zend_Db_Table_Abstract->select()
#11 /home/xienc2/public_html/application/models/PageMapper.php(57): Zend_Db_Table_Abstract->fetchAll()
#12 /home/xienc2/public_html/application/controllers/IndexController.php(7): Application_Model_PageMapper->fetchAll()
#13 /home/xienc2/public_html/library/Zend/Controller/Action.php(133): IndexController->init()
#14 /home/xienc2/public_html/library/Zend/Controller/Dispatcher/Standard.php(268): Zend_Controller_Action->__construct(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http), Array)
#15 /home/xienc2/public_html/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#16 /home/xienc2/public_html/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#17 /home/xienc2/public_html/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#18 /home/xienc2/public_html/public/index.php(30): Zend_Application->run()
#19 {main}

Request data: array (
'controller' => 'index',
'action' => 'index',
'module' => 'default',
)

Session data:


Last database query: connect

Last database query params: array (
)

我的主机是 Liquidweb。

php 版本是 5.4.16 并且还安装了 pdo 扩展。请帮忙。

4

1 回答 1

0

您可能会遇到PHP 版本 >= 5.3的向后不兼容问题之一。

最可能的原因是:

新的 mysqlnd 库需要使用 MySQL 4.1 更新的 41 字节密码格式。继续使用旧的 16 字节密码将导致 mysql_connect() 和类似函数发出错误,“mysqlnd cannot connect to MySQL 4.1+ using old authentication。”

检查您的 MySQL 服务器版本。然后检查您的 MySQL 密码存储。这个答案提供了更多的洞察力

于 2013-07-11T07:24:03.950 回答