Maison > Article > développement back-end > laravel - 执行:php artisan migrate时报错
执行:php artisan migrate时报错:
[PDOException]
SQLSTATE[HY000] [2002] Connection refused
执行:php artisan migrate时报错:
[PDOException]
SQLSTATE[HY000] [2002] Connection refused
已经解决了,是我.env文件下host配置错了,应该是虚拟上的mysql,所以host=192.168.10.10