Homestead - Connecting to my database

前端 未结 6 1786
渐次进展
渐次进展 2021-01-17 23:52

I just created a fresh laravel project and I\'m using a Homestead vagrant box by running

vagrant init laravel/homestead

and aft

6条回答
  •  半阙折子戏
    2021-01-18 00:35

    [Official Doc][1]

    [1]: https://laravel.com/docs/5.8/homestead#connecting-to-databases is instructed to use port 33060 for MySQL and 54320 for PostgreSQL

    A homestead database is configured for both MySQL and PostgreSQL out of the box. To connect to your MySQL or PostgreSQL database from your host machine's database client, you should connect to 127.0.0.1 on port 33060 (MySQL) or 54320 (PostgreSQL). The username and password for both databases is homestead / secret.

提交回复
热议问题