Skip to content
Advertisement

Database migration not working in Laravel 7

I get this type of exception in all my Laravel projects.

JavaScript

I tried to solve it through .env setup.

JavaScript

But it’s not working.

After then I installed composer require doctrine/dbal package in my Laravel project but it’s not working. I cannot understand how to solve it.

Advertisement

Answer

I try this solution. It helps me.

  1. Log in as root to mysql
  2. Run this sql command: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement