Database connection failed. Ensure MySQL is running (e.g. start Apache & MySQL in XAMPP), then run database.sql in phpMyAdmin to create the database and tables.