Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

//I can not get a connection or create a database with PHP in webmatrix.

$
0
0

//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.

 


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>