![]() | |
#11
| |||
| |||
|
|
You can always try to connect to the hostname of the machine (instead of localhost/127.0.0.1), then it should connect to the port instead of using the socket, which would be a work around for your configuration troubles. |
|
I don't think I changed anything and I thought it was working but I just started writing a script using mysqli. Using packages released by the OS maintainer are always better than using 3rd party packages or compile those yourself, as those official packages will always work. |
#12
| |||
| |||
|
|
You can always try to connect to the hostname of the machine (instead of localhost/127.0.0.1), then it should connect to the port instead of using the socket, which would be a work around for your configuration troubles. A hostname of 'localhost' uses the local socket. That exact string (case sensitive) is magic. A hostname of '127.0.0.1' uses TCP/IP. A hostname of 'Localhost' uses TCP/IP. A hostname of 'localHost' uses TCP/IP. A hostname of 'localhosT' uses TCP/IP. A hostname of the local IP address of the machine uses TCP/IP. A hostname that resolves in DNS to the local IP address of the machine uses TCP/IP. Using the local socket instead of TCP/IP is rumored to be faster. |
![]() |
| Thread Tools | |
| Display Modes | |
| |