Well just install the wordpress again.change the wp-config-sample.php to wp-config.php.Set up the database connection.open your database & copy the database name as well as you can see there a DB host.what ever IP will be written,just copy & paste it in your wp-config.php file as well as give the username & password.nothing more to be changed there.