Backup failed because The dump process failed with exitcode 2:Misuse of shell builtins:mysqldump: Got error: 2004: “Can’t create TCP/IP socket (10106)

I’m trying to create a database backup.
using spatie/laravel-backup LIB.

The backup using the Artisan command is working well, Which is (php artisan backup:run).
Also on Kernal schedule is working well.

The issue when I try to create an api to make backup.
The code of the API :-

Artisan::queue(‘backup:run’, [‘–only-db’ => true,’–disable-notifications’ => true ]);

or even I tried Call function instead of queue.
But also didn’t fixed the issue.
enter image description here