If you provide the wrong details of the database and database user, WordPress will be unable to connect with the database required for WordPress. If the above-mentioned process fails anywhere, reconfirm or recreate a new database and provide the same with the wp-config-sample.php file which is somewhere in the crowd of extracted files. First, you will need to change the name of wp-config-sample.php to wp-config.php Right-click and click on edit and provide the database details in it.