April 24, 2015 · Public
I watched your video series "How to Install Apache, MySQL, and PHP". And the installs were successful. However when I try to use PHP to connect to the MySQL database, it fails without an error message:
echo "connect.php 020!";
mysql_connect(DATABASE_HOST, DATABASE_USERNAME, DATABASE_PASSWORD)
or die("Error connecting to database: " . mysql_error() . "");
echo "connect.php 030!";
The first echo displays but nothing else displays. It just "dies" there. Is there a step or 2 that I am missing? Thanks.