Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

286
Views
Laravel 7 - migrate:refresh got access denied

I start to work on a laravel project that start by colleage. once I pulled down the git I want to do migration:

php artisan migrate:refresh

Immediately I got an error:

SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.19.0.1' (using password: NO) (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE')

which seems odd because I checked all my config/database.php, .env, all point to 127.0.0.1 for mysql and not sure where 172.19.0.1 come from.

How can I debug this?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Please check your database, you have permissions issue for the database user.

Grant permissions for your db user root.

Execute the below command:

GRANT ALL PRIVILEGES ON dbname.* TO 'root'@'172.19.0.1';
FLUSH PRIVILEGES;
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!