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

后端 未结 10 1894
长情又很酷
长情又很酷 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 12:56

    I had the same problem. The issue was that MySql was not running on Xampp so I had to run it for everything to work.

    So kindly ensure MySql is running on your localhost. Go to Xampp [or other localhost] control panel and click start/run under Mysql ].

提交回复
热议问题