MySQL Forums
Forum List  »  PHP

Re: Cannot connect to Database
Posted by: Peter Brawley
Date: December 10, 2014 09:39PM

> mysql_connect(): No connection could be made because the target machine actively refused it.

I've seen that caused by firewall settings, missing 127.0.0.1 entry in hosts file, bad password, mysql server not running, bin-address setting in my.cnf/ini

Can you connect from the mysql client program mysql?

Options: ReplyQuote


Subject
Written By
Posted
December 10, 2014 06:24PM
Re: Cannot connect to Database
December 10, 2014 09:39PM
January 06, 2015 02:08AM
December 20, 2014 02:28AM
December 20, 2014 10:04AM
December 30, 2014 10:18PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.