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

后端 未结 10 1873
长情又很酷
长情又很酷 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:11

    Changing "mysql://username:password@/databasename" to "mysql://username:password@localhost/databasename" fixed the issue for me.

提交回复
热议问题