add the line to wbp-config.php to override what s set in the database following the codex documentation at http://codex.wordpress.org/Editing_wp-config.php#WordPress_address_.28URL.29
When you can get back in, you should be able to then change the setting in admin & remove the line in wp-config.php