zend连接到具有不同主机名的数据库

时间:2014-10-16 08:02:13

标签: php zend-framework database-connection

我正在使用Zend Framework 1.12

我需要连接到不同主机中的数据库" abc.amazonaws.com "

我试过这个但没有成功

我的application.ini是

[production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0



resources.db.adapter = "PDO_MYSQL"
resources.db.isDefaultAdapter = true
resources.db.params.dbname = "taskmgr"
resources.db.params.username = "*******"
resources.db.params.password = "**********"
resources.db.params.host = "*********************.amazonaws.com"
resources.db.params.profiler = "true"




[staging : production]

[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1

[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1

任何身体都可以帮助我解决这个问题,

应用程序已准备好请指导我进行最少的更改

0 个答案:

没有答案