Open tsroten opened 6 years ago
Hi! I have had a quick go at returning some extra context when failing to connect to the default socket - is this the sort of thing you were looking for? Just printing the path should be enough to help with debugging?
Currently, on a Linux system after installing MySQL and mycli, there is a cryptic message displayed when running
mycli
with the default config:The issue itself will be resolved by https://github.com/dbcli/mycli/issues/571, but the error message is unhelpful because it doesn't tell you anything about the socket that was tried. It just tells you the host name, which makes you think there is a problem with your server. Compare that to the official mysql client's message if you connect to a non-existent socket: