The mysql libraries will automatically use Unix sockets if the host of "localhost" is used. To force TCP/IP you need to set an IP address.
转载于:https://www.cnblogs.com/flytome/p/4366222.html
The mysql libraries will automatically use Unix sockets if the host of "localhost" is used. To force TCP/IP you need to set an IP address.
转载于:https://www.cnblogs.com/flytome/p/4366222.html