Fatal error: Uncaught mysqli_sql_exception: Access denied for user 'root'@'127.0.0.1' (using password: NO) in C:\wamp\www\testmysql.php:11 Stack trace: #0 C:\wamp\www\testmysql.php(11): mysqli->__construct('127.0.0.1', 'root', Object(SensitiveParameterValue), '', NULL) #1 {main} thrown in C:\wamp\www\testmysql.php on line 11