[PDOException]
SQLSTATE[HY000] [2002] No such file or directory
mautic:leadlists:update [-b|--batch-limit[="..."]] [-m|--max-leads[="..."]] [-i|--list-id[="..."]] [-f|--force]
Because I get the “mastic:leadlists:update…” it tells me my path is correct. Any ideas on how I can resolve this before listing in CronTab?
In the config.php, Mautic was trying to connect to mysql using the the host: localhost. By updating to 127.0.0.1 and clearing the cache, this problem was solved.
In case someone else finds this and the current answer did not fix the problem: Another possible issue might be your path to PHP, so make sure you use the full path to php, for example: