-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
tidb-server options -socket and -host are incompatible #8459
Comments
I looked at
For simplicity, would it be okay to forward the unix socket to the tcp address? Unix socket is not a major use case for TiDB, and this solution looks quite straight forward to add. |
PTAL @jackysp |
I found the same thing some days before, and got the suggestion that it would not be fixed. I can't quite remember the reason. Please give me some time to find out the reason. |
@jackysp OK :-) I can fix it if you are okay with the suggested fix (redirection to tcp socket). It is an important fix for allowing local development (homebrew, dbdeployer) and have some apps use JDBC with others using PHP etc. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
I would expect it to listen on both. This is important because of MySQL's special handling of localhost:
So it is useful to be able to have the server listen on both for a fully local install.
It will only listen on one (the socket!)
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: