Exemple d’erreur :
Warning: mysqli::__construct(): (HY000/2002): Only one usage of each socket address (protocol/network address/port) is normally permitted. in D:\repertoire\apache\htdocs\myApp\config\datasource.php on line 6
Notice: Undefined variable: connMysql in D:\repertoire\apache\htdocs\myApp\config\datasource.php on line 10
Notice: Trying to get property 'connect_error' of non-object in D:\repertoire\apache\htdocs\myApp\config\datasource.php on line 10
MYSQL Connection failed:
C’est un souci Windows il vous faut modifier et ajouter des clés registre
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
TcpTimedWaitDelay
REG_DWORD: 0000001e (hex)
MaxUserPort
REG_DWORD: 0000fffe (hex)
TcpNumConnections
REG_DWORD: 00fffffe (hex)
TcpMaxDataRetransmissions
REG_DWORD: 00000005 (hex)