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 made because the target machine actively refused it
This is code for dbconnect.php:
<?php
mysql_connect("localhost","root");
mysql_select_db("users");
?>
I tried to use this format before but I don't know what seems to be the problem with this code.
Thank you in advance.
$con = mysql_connect("localhost", "root", ""); mysql_select_db("users", $con);
– Automatize