Recently I had a problem on a site that I manage after an auto update went bad. The result was that I could not sign into the WordPress side of the site at all. I searched for a while and was unable to find anything that worked, although I did figure out a workaround, but I wanted to fix it. Go-Daddy suggested that I back up the whole site, delete it all, and then start over. I have done that before, and I know that the headache of connecting the Database files can be arduous.
After coming across this site: http://www.vashistha.in/2016/12/problem-solved-upgradephpwphttpreferer2.html I read what he had there, and I am putting what helped me below here
(Some of it was not grammatically correct, and I have updated that here)
How I solved my WordPress websites update problem in 2 Minutes upgrade.php?_wp_http_referer=%2Fw...

My history has brought me to do my latest work. I hope that it helps you. I have been working in the computer industry since the early 80′s. I have worked a wide spectrum from the mainframe computing right to the personal computers of today.
I would love to help you.
To contact me, feel welcome to email me, or call 250-307-7226.