Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

helpmyworld's avatar

SQLSTATE[HY000] [1044] Access denied

Good day

I uploaded my laravel project to my hosting server for production. However i get the following error,

" QueryException in Connection.php line 647: SQLSTATE[HY000] [1044] Access denied for user 'helpmfap_publish'@'localhost' to database 'helpmfap_publish' (SQL: select * from products)"

i filled my env file correct, where could i be going wrong?

0 likes
8 replies
helpmyworld's avatar

Tomi this is what i have

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=help
DB_USERNAME=helpuser
DB_PASSWORD=password
AddWebContribution's avatar

Once confirmed the permission for this user into your database. If not granted:

GRANT ALL on help.* to helpuser@localhost; 

in MYSQL and replace your correct db name for help and user name for helpuser

helpmyworld's avatar

@saurabdh where should i put this

"GRANT ALL on help.* to helpuser@localhost; in MYSQL"?

you will have to bear with me.

helpmyworld's avatar

Thank you all, the problem was with my hosting provider. I am using shared hosting, possibly the reason why i am facing challenges.

Please or to participate in this conversation.