我使用 Laravel 宅基地
我正在尝试连接到数据库,但它说
Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
我使用 Laravel 宅基地
我正在尝试连接到数据库,但它说
Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
很可能指定了错误的主机/端口。作为主机,可以使用 Homestead.yaml 中指定的 IP,端口 - 3306