Jump to content

Zend Framwork app.ini DB connection help


nadeemshafi9

Recommended Posts

Hello guys

 

i am using teh default application wired up  structure  from framework.zend the latest one is quite different from peoples examples on the net.

 

anyways i am having dificulty in authenticating myself to my database, i know root@localhost is allowed to access the databse with that password because iv done it throgh normal php all teh time.

 

the default wired directory framwork from zend had an SQLITE db configured so it didnt have an example, so i used one of the net because they dont have one for mysql on the framwork site.

 

so here is my app.ini

 

[development : production]

database.adapter      = PDO_MYSQL

database.params.host  = localhost

database.params.username  = 'root'

database.params.password  = '*****'

database.params.dbname = 'demo_app1'

 

when i go to teh page that tries to access teh database it says

 

Message: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

with stack trace underneath

 

if i get rid of the '' single quotes it crashes my apache server.

 

any help much appreciated

Link to comment
https://forums.phpfreaks.com/topic/148337-zend-framwork-appini-db-connection-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.