skip to Main Content

Edit
Laravel using homestead throw error like this after trying to run php artisan migrate while in vagrant ssh.

Some of the solution saying that i should change the port from 3306 to 33060. But even change it in env.file and config/database.php gave the same outcome.

I use phpmyadmin to see the database. Almost tried all the solution that i can find but still do not fix this problem.

2

Answers


  1. Chosen as BEST ANSWER

    I find the solution, it turns out for laravel/homestead you MUST use username 'homestead', database 'homestead' and password 'secret'. It never occurs to me this would be the problem since the tutorial and (solution online) change username, database, password. The tutorial i followed use valet.


  2. try to change :

    $cfg['Servers'][$i]['AllowNoPassword'] = false;

    to :

    $cfg['Servers'][$i]['AllowNoPassword'] = true;

    in your phpmyadmin config file

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search