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

后端 未结 10 1880
长情又很酷
长情又很酷 2020-11-30 12:41

I have this problem when I am trying to run my PHP MySQL script. When I try to run my .php file this is what I get.

mysql_connect(): No connection could be m         


        
10条回答
  •  一生所求
    2020-11-30 13:08

    Well sometimes even using localhost without any port number can help. E.g.

    $conn = mysql_connect("localhost","root","");//for no password
    

提交回复
热议问题