Access denied for user 'homestead'@'localhost' (using password: YES)

前端 未结 29 1715
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-27 10:23

I\'m on a Mac OS Yosemite using Laravel 5.0.

While in my local environment, I run php artisan migrate I keep getting :

29条回答
  •  遥遥无期
    2020-11-27 10:37

    In my case the error was "caused" by my Homestead / Vagrant configuration about which I forgot :) trying to run the migration just from command line.

    In case of using Homestead Vagrant Box environment you should run your migration from within your Homestead machine (after connecting to it using ssh: vagrant@192.168.10.10:22) then the access rights will be OK and will allow the migration to run.

提交回复
热议问题