ruby-mysql
ruby-mysql copied to clipboard
Error when using 'localhost' to connect in Windows
Windows can't use UNIXSocket, please fix, how to detect windows env?
This fix actually work in Windows, but I understand that it would be better to detect Windows environment, because otherwise you won't be able to use "localhost" under Linux, if you want to. Thanks for providing a hardcoded solution @steelywing.