SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.

The following may help:
- Is MySQL running?
- Have you entered the correct hostname and port number for your MySQL server (typically it might be localhost:3306 or 127.0.0.1:3306) Check the correct hostname and port to use.
- Check your firewall on the server, is it blocking MySQL's port?
Are you installing your site locally on your computer or hosting it somewhere?

Comments

Popular posts from this blog

Script For Login, Logout and View Using PHP, MySQL and Bootstrap

Real-Time Web Interface to MQTT using Socket.io and Node.js

Customize radio buttons and checkboxes with CSS sprites