Getting Error SQLSTATE[HY000] [2002] Connection refused on NAS Synology

前端 未结 5 1496
一个人的身影
一个人的身影 2021-01-14 05:37

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

5条回答
  •  失恋的感觉
    2021-01-14 06:18

    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

提交回复
热议问题