Tiny Tiny RSS: Community

It is possible to use mysql via unix:socket instead of network?

#1

Hi;

I have sereval services (nextcloud, matomo, wordpress) which works well by using
localhost:/tmp/mysqld/suck which us connecting to mysql via unix:socket instead of using the network.

While tiny tiny rss works fine when I connect to 127.0.0.1:3306
it simply refuse to connect when I try localhost:/tmp/mysqld/suck

I wonder if it is supported and/or how to do this ??

this is my config

grep "DB" ./ttrss/public_html/config.php
    define('DB_TYPE', 'mysql');
    define('DB_HOST', '');
    define('DB_USER', 'TTUSER');
    define('DB_NAME', 'TTDB');
    define('DB_PASS', 'PASSELEMOT);
    define('DB_PORT', '');
#2

That’s a typo, yes? If not, I might have found your problem…

#3

Short answer: no

You would probably need to extend the database classes in ./classes/db.php and ./classes/db/mysqli.php as the connect functions lack do not pass the socket option.