14,953
edits
(→Connection and Network Errors: Can't assign requested address) |
|||
| Line 405: | Line 405: | ||
</pre> | </pre> | ||
* If still not work, reboot the server and restart the MySQL service. | * If still not work, reboot the server and restart the MySQL service. | ||
=== SQLSTATE[HY000] [2002] Can't assign requested address === | |||
Error message | |||
<pre> | |||
Caught PDOException: /path/to/script.php ERROR: Cannot connect: SQLSTATE[HY000] [2002] Can't assign requested address | |||
utf8: SQLSTATE[HY000] [2002] Can't assign requested address | |||
Caught PDOException: /path/to/script.php ERROR: Cannot connect: SQLSTATE[HY000] [2002] Operation timed out | |||
utf8: SQLSTATE[HY000] [2002] Operation timed out | |||
</pre> | |||
Walkaround Solution: | |||
* You can extend the interval between each MySQL save operation. | |||
Explanation: | |||
It typically occurs when your application is unable to establish a connection to the specified database server. | |||
== Resource and Environmental Errors == | == Resource and Environmental Errors == | ||