Home >Database >Mysql Tutorial >MySQL Connection Refused? Fix the 'No Connection Could Be Made' Error with This Simple Trick
No Connection to MySQL Server? Try This Simple Fix for 'No Connection Could Be Made' Error
If you're receiving the infamous "#2002 - No connection could be made because the target machine actively refused it" error while trying to connect to MySQL from your local WAMP server, don't despair. This issue can be resolved with a simple modification.
Follow these steps to solve the problem:
Navigate to the following directory on your Windows system:
C:\wamp\bin\mysql\mysql[your-version]\data
After completing these steps, you should be able to successfully establish a connection to your MySQL database. The "No connection could be made" error will no longer persist.
The above is the detailed content of MySQL Connection Refused? Fix the 'No Connection Could Be Made' Error with This Simple Trick. For more information, please follow other related articles on the PHP Chinese website!