A: PHP running
B: Port 3306 reachable
C: About to mysqli_init
D: About to connect via mysqli_real_connect

Fatal error: Uncaught mysqli_sql_exception: Access denied for user 'root'@'localhost' (using password: NO) in /home/apptrrgq/public_html/htdocs/db-where-hang.php:30 Stack trace: #0 /home/apptrrgq/public_html/htdocs/db-where-hang.php(30): mysqli_real_connect(Object(mysqli), '127.0.0.1', 'root', '', NULL, 3306) #1 {main} thrown in /home/apptrrgq/public_html/htdocs/db-where-hang.php on line 30