here is the code that I am using:
$dbhost = "localhost:8080";
$dbuser = "root";
$dbpass = "";
$dbname = "test";
$conn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
    if(! $conn){
        die('Could not connect:'. mysql_error());
    }
    else{
        echo "Connected Successfully";
    }
    ?> 
when I use include or require_once, I never get the echo "Connected successfully" I always receive the error. This is for a university project, and in uni the windows computers connect right away, using the same code. since i am using MacOSX is there anything i need to do? My server is also running on bitnami MAMP
