Cake bake on mac using mamp make an error

I have this error when i use this command
/Applications/MAMP/htdocs/jobfinder/bin/cake bake all admin

i obtain this error :
Exception: SQLSTATE[HY000] [2002] No such file or directory in [/Applications/MAMP/htdocs/jobfinder/vendor/cakephp/cakephp/src/Database/Driver/PDODriverTrait.php, line 48]

I am a student and at school we work with microsoft. And often when i need help my teacher can’t help me because i’m on a mac device.

Hi @igmz001 you can share result of php -v in your terminal ?