Failed to connect to the database: SQLSTATE[HY000] [1045] Ac

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
rajugvb
User
Posts: 9

Failed to connect to the database: SQLSTATE[HY000] [1045] Ac

Post by rajugvb »

Hi Guys,
I am getting below error. I don't use root as user id for connection. I use different userid and password for connection.

Error : Failed to connect to the database: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

i use below for connection: I still can't understand why get this error. Please help

array (size=10)
'conn' => null
'id' => string 'DB' (length=2)
'type' => string 'MYSQL' (length=5)
'host' => string 'localhost' (length=9)
'port' => int 3306
'user' => string 'mbihandidb' (length=10)
'pass' => string '**********' (length=16)

Thanks in advance.
'db' => string 'ination_db' (length=10)
'qs' => string '' (length=1)
'qe' => string '
' (length=1)


mobhar
User
Posts: 11723

Post by mobhar »

Make sure your connection info is already correct. Try also to connect to another database in the same server to make sure your connection info is valid.


Post Reply