//I'm trying to use the MYSQL_CONNECT to connect to the server(database) using php.
//I'm trying this for the first time; I created a file named connection.php with the following
<?php$con=mysql_connect("localhost,Jdoe,abc123");if(!$con{die('Could not connect: '.mysql_error());?>
//When I create the above I get a reponse,
Could not connect: php_network_getaddresses: getaddrinfo failed: No such host is known.
//or this
Could not connect: No connection could be made because the target machine actively refused it.
//I have little experience with connecting to a database.