开发者

Find out the database connection details from an existing Zendframework project

开发者 https://www.devze.com 2023-02-15 09:28 出处:网络
I have a zendframework project. from this i want to know the database deta开发者_如何学Goils. i searched the code for it but no result. From where i will get the database username and password from th

I have a zendframework project. from this i want to know the database deta开发者_如何学Goils. i searched the code for it but no result. From where i will get the database username and password from the Zend project ?


Browse the /application/configs folder. You find a application.ini file where db connection details are stored:

resources.db.adapter = "pdo_mysql"
resources.db.params.host = "localhost"
resources.db.params.username = "root"
resources.db.params.password = ""
resources.db.params.dbname = "myproject"
resources.db.isDefaultTableAdapter = true
resources.db.params.charset = "UTF8"
0

精彩评论

暂无评论...
验证码 换一张
取 消