I install wordpress on localhost then install wordpress on hosting. I want to access remote database on hosting from localhost environment. so whenever we add new page or post or change configuration it's has been set on hosting database, so we can make team work enviroment very well.
We use SVN and install it on hosting already and need remote database so every member can change configuration on Wordpress Administration Panel and other developer get latest configuration from remote database.
I try change wp-config.php to access remote database and it's work but whenever access frontend site on localhost it always redirect to actual website on hosting. I want to see frontend site on localhost with remote database.
I already check this on wordpress support and get this topic article, he ask it five years ago maybe now it's possible.
Could it possible ?
I need sync files and sync data using remote database so every developer can look the same website from functionality and data. every developer can insert / update / delete post or page and other developers get it too. We can't work with just sync files and have to insert data on hosting database later. We need sync files and data so we just upload files later after our work is finish.