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

MrLukman's avatar

upload laravel 5.4 to shared hosting

hi guys i wanna ask, i face problem said.

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

i already settings my .env to be the same with the database setting in cPanel. Thanks

0 likes
3 replies
ajitdas's avatar

Check your password for your server database, The error saying you don't have any password for your database.

1 like
MrLukman's avatar
MrLukman
OP
Best Answer
Level 1

thank you for the answer, all is fixed when i run php artisan config:clear and config:cache

Please or to participate in this conversation.