Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vplechuc's avatar

Mysql and php artisan

Hi, I just wondering what makes php artisan (or the project itself) asking to have MySql runnig while I run, in example, php artisan in a command line ,just to see the commands, and I get this error [PDOException] SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it., but if I turn on the MySql it works. I have a project on Laravel 5.2

0 likes
1 reply
vplechuc's avatar

any Idea of what could be happening? thanks

Please or to participate in this conversation.