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

前端 未结 5 1474
一个人的身影
一个人的身影 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:11

    Just had the same problem and here is how I fixed it. I'm running on DSM 6.2.2-24922 Synology diskstation, i installed webstation with Nginx, PHP 5.6, as well as MariaDB 10 (and phpmyadmin).

    The fix I found was to first activate the pdo_mysql extension in the php configuration.

    Then go in the Core tab and look for the pdo_mysql.default_socket.

    Per default i had

    /tmp/mysql.sock
    in it but I changed it with
    /run/mysqldmysql10.sock
    I found this in the mariadb10 properties. It misteriously worked for me so i hope it will help somebody else as well :)

提交回复
热议问题