Download the latest wordpress from;
Extract everything from the downloaded wordpress except “wp-content” files and folders by overwriting the existing installation;
Now, go ahead and see if everything is working by going into wordpress dashboard;
If you see this error message “Database Upgrade Required”, click the “Upgrade WordPress” link;
Just in case if you still have issues connecting with the database, simply modify the “wp-config.php” file with proper database user credentials.