Database setup issue

I’m on step 2 of the Matomo installation process (Database setup) and getting this error:

Error while trying to connect to the database server: SQLSTATE[HY000] [2002] Permission denied

Any idea what the issue could be?