I have setup Laravel and trying to run the artisan migrate
command however I am getting the error below
[PDOException] SQLSTATE[HY000] [2002] Connection refused.
I am not sure how db is setup in Homestead. So I got the below questions.
- 默认数据库是由artisan migrate还是Homestead自动创建的?
- 如果是,它的名字是什么?
- 如果它不是默认创建的,我们应该在运行迁移之前创建它吗?
I tried logging in to MySQL db by connecting to Homestead VM using ssh and then running MySQL. However I get error Access denied for user....
for user name vagrant, Homestead and forge.
What is the default credentials? I understand that creating MySQL db is out of the scope of Laravel tutorial; So it would be helpful if anyone can answer these questions and point me in right direction.