Hi Christian,

Am 23.08.23 um 14:07 schrieb "ChristianTruee" (ch.tr...@trueeonline.de):
Hi all,
how can I use unix socket in the sogo.conf to connect to the mysql server?

At the moment I can use localhost:port.

Thanks
Christian

if your mysql socket is e.g. /var/run/mysql/mysql.sock, then this should work:

SOGoProfileURL = "mysql://sogouser:sogopass@%2Fvar%2Frun%2Fmysql%2Fmysql.sock/sogodbname/sogo_user_profile";

The trick is to escape the forward slashes '/'.

That being said, a lot of applications end up using mysql's unix socket instead of a TCP connection automatically, if you just specify localhost (without a port). I have not tested that, though.

Reply via email to