When I download a new wordpress from wordpress.org and then paste it into my www folder of WAMP, then create a new database in phpmyadmin, then go to localhost and click the
Verify the wp-config.php file. I had the same error and the problem was related with the quotes: ‘root’ vs 'root'
edit: the correct one is single quote
'