Home > Article > PHP Framework > Several ways to connect to the database in Laravel Homestead
Laravel Homestead is Laravel's official pre-packaged Vagrant Box. It provides you with a perfect development environment. So how to connect to the database smoothly? This article takes MySQL as an example to sort out several commonly used centralized methods.
1.Navicat for MySQL
## This is a common database management tool. How to use Navicat, please see the figure below:2.PhpStorm
This is a software developed by JetBrains A PHP integrated development tool with built-in connections## 3. Through internal connectionsvagrant up
vagrant ssh
//注:需要在homestead目录下执行
Related video tutorial recommendations:
LaravelThe above is the detailed content of Several ways to connect to the database in Laravel Homestead. For more information, please follow other related articles on the PHP Chinese website!