Yeah I know connecting to the localhost would be much easier. We actually want to host the site online and so wanted to install WordPress on our website domain and test it with the local database.
Is that a wrong approach or would there be a problem somewhere else ?