[GH-ISSUE #140] Support unix socket for database connection #116

Closed
opened 2026-02-25 21:34:12 +03:00 by kerem · 4 comments
Owner

Originally created by @Exagone313 on GitHub (Oct 16, 2016).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/140

Originally assigned to: @jasonmunro on GitHub.

Hi,

That would be nice to support connection to database using a unix socket. To do that, you just have to add a boolean ini setting to have the choice between host and unix_socket.

Originally created by @Exagone313 on GitHub (Oct 16, 2016). Original GitHub issue: https://github.com/cypht-org/cypht/issues/140 Originally assigned to: @jasonmunro on GitHub. Hi, That would be nice to support connection to database using a unix socket. To do that, you just have to add a boolean ini setting to have the choice between _host_ and _unix_socket_.
kerem 2026-02-25 21:34:12 +03:00
Author
Owner

@jasonmunro commented on GitHub (Oct 17, 2016):

I just pushed this out. I added 2 new ini file entries: db_connection_type (can be either "socket" or "host"), and db_socket which is used if the connection type is set to host. If you can give it a try that would be great! While I was looking at this code I realized that we should probably also add the ability to specify the port we connect to when using standard network connections. Should be easy enough to add. github.com/jasonmunro/cypht@092afb52a3

<!-- gh-comment-id:254262144 --> @jasonmunro commented on GitHub (Oct 17, 2016): I just pushed this out. I added 2 new ini file entries: db_connection_type (can be either "socket" or "host"), and db_socket which is used if the connection type is set to host. If you can give it a try that would be great! While I was looking at this code I realized that we should probably also add the ability to specify the port we connect to when using standard network connections. Should be easy enough to add. https://github.com/jasonmunro/cypht/commit/092afb52a3a5d72e2297ca93dffd359354cb6d99
Author
Owner

@Exagone313 commented on GitHub (Oct 17, 2016):

I didn't install Cypht yet (please see the email I sent), but I will try it directly.

<!-- gh-comment-id:254263178 --> @Exagone313 commented on GitHub (Oct 17, 2016): I didn't install Cypht yet (please see the email I sent), but I will try it directly.
Author
Owner

@jasonmunro commented on GitHub (Oct 17, 2016):

No problem. I'm still getting caught up on my E-mail after being offline for a few days :) I will get back to you on that today.

<!-- gh-comment-id:254265119 --> @jasonmunro commented on GitHub (Oct 17, 2016): No problem. I'm still getting caught up on my E-mail after being offline for a few days :) I will get back to you on that today.
Author
Owner

@jasonmunro commented on GitHub (Oct 25, 2016):

Using this now so I know it works :) feel free to re-open if you run into trouble.

<!-- gh-comment-id:256066134 --> @jasonmunro commented on GitHub (Oct 25, 2016): Using this now so I know it works :) feel free to re-open if you run into trouble.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#116
No description provided.