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

ayari.karim's avatar

after Laravel Migration from hosting to other host i get problem with database

hi, SQLSTATE[HY000] [1045] Access denied for user 'database_name'@'localhost' (using password: YES) (SQL: select count(*) as aggregate from meta_tags where page_type = page and page_name = homepage)

after migration i get this error i try lot of solution but no working , any one can help ?

0 likes
8 replies
jlrdw's avatar

Sounds like your credentials are wrong. Seems on a hosting provider localhost may be wrong.

ayari.karim's avatar

Yes i try also other there from hosting provide but is the same problem

ayari.karim's avatar

The problem in this host is no choice to change the privilege 😒 , without query.

jlrdw's avatar

@ayari.karim you should have a dashboard showing your mysql credentials. That's what you need to use.

ayari.karim's avatar

I don’t have permission to create user in database

ayari.karim's avatar

Thanks the problem was in the database self . I delete und create new database now that’s work .

Please or to participate in this conversation.