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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.