I am making an under construction page which is hosted on my Synology NAS.
Visitors can subscribe with their email and get informed when the website will be availabl
What fixed it for me.
Go to Synology Apps > MariaDB
Ensure 'Enable TCP/IP connection' is enabled above Port 3306.
Note down Domain Socket: /run/mysqld/mysqld10.sock
And as comment above.
In Web Station > PHP Settings > Edit > Core tab
Search > socket
Enter domain socket example /run/mysqld/mysqld10.sock into default_sockets