have you opened the wp-config.php file and checked that you have the hostname correct? for some reason, web hosts such as GoDaddy don’t like ‘localhost’ and instead require the entire hostname such as ‘xjsh4664fdvsb63.securehostingserver.com’
basically I had this problem yesterday and you just need to make sure that the settings (user, pass, hostname etc.) match the settings in your hosting account’s database settings. I wish there was a step by step guide I could point you to but unfortunately I couldn’t find anything concrete either!