in php mysql_connect returns error message but mysql.exe appears to be working

Discussion in 'PHP' started by richardbc, Apr 13, 2011.

  1. #1
    "No connection could be made because the target machine actively refused it"

    I ran a test "mysql.exe -u root -p" and it shows mysql to be working.

    I ran the socket test and it shows port 80 to be working but when I use port 8080 it returns the above error message. So I set mysql.default_port =80 in php.ini. The response was the page was loading very slowly and not completing the load.

    Any ideas how to fix the error message?
     
    richardbc, Apr 13, 2011 IP