Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database connection via socket #70

Open
afritsch opened this issue Sep 7, 2015 · 2 comments
Open

Database connection via socket #70

afritsch opened this issue Sep 7, 2015 · 2 comments

Comments

@afritsch
Copy link

afritsch commented Sep 7, 2015

I just downloaded readerself and tried to connect to my database through a socket and got an error.
Is it possible at all to connect through an socket?
socket

@stephanediondev
Copy link
Owner

you can try with empty hostname or "localhost"

http://php.net/manual/en/mysqli.construct.php
"Can be either a host name or an IP address. Passing the NULL value or the string "localhost" to this parameter, the local host is assumed. When possible, pipes will be used instead of the TCP/IP protocol."

@afritsch
Copy link
Author

afritsch commented Sep 7, 2015

Both leaving it empty or entering "localhost" will establish a local connection via tcp/ip. This is not what I want, that's why I entered the socket path (note the colon at the beginning). I think the problem is that something tries to append the standard mysql port to the socket path. A socket does not have a port. See the last line in my screenshot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants