I think I may have figured this out. Everytime I start a new build in Wamp I got the error establishing connection to database. First, establish the database and THEN import the WordPress files. On the wp-config.php file (which you created by copying the wp-config-sampl.php file and deleting the "-sample" part, enter the name of the database you established here: define('DB_NAME', 'youdatabase'); where it reads 'youdatabase'.
Since the default username is 'root' and the password is blank, then the username is 'root' where it reads define('DB_USER', 'root'); and the password line should look like this: define('DB_PASSWORD', '');
Refresh the browser and then you should be led to complete the installation on your local host.
This could be the 1200th time that the answer has been posted, but maybe this will help.