Sitemap.xml Issue

I am trying to generate a sitemap but says processing and doesnt move.

in error log:

PHP Warning: mysqli::__construct(): (HY000/2002)such file or directory in /var/www/giftboundgifts/app/Tygh/Backend/Database/Mysqli.php on line 40

in error log:

PHP Warning: mysqli::__construct(): (HY000/2002)such file or directory in /var/www/giftboundgifts/app/Tygh/Backend/Database/Mysqli.php on line 40

Check your DB permissions and conecting credentials.

I was using php 7.1.13 maybe issue with that? I went down with php 7.0.27 error no longer but hangs at processing and does nothing. Ugh