Unable to connect to database in Linux Server.

Posted 4 months ago by gouseferoz

I have just moved my project to a vps server and made changes to all my files.

The only problem i am facing is unable to connect to the database.

SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

my env file:


I tried using tinker and I was able to save data into the tables. I was also able to migrate my tables.

But is unable to connect to the databases when trying to load something from db onto the page.

Is there anything i am missing?

Regards, Feroz.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.