admin管理员组文章数量:1295275
Okay so I have a wordpress website that I've been developing locally on my netbook. I want to be able to develop it both on my netbook and on my desktop so in order to ease the process and not have to reconfigure stuff each time I switch between the two, I decided to host my database remotely on my website, and then just configure the code for the local install to refer to the same database etc.
I've followed this guide:
and it does not seem to be working for me. I have gone on my host's control panel (Dreamhost) and put my local IP as an allowable host, and I've set my wp-config files to map to my domain. And yet it still will not go through.
Any clues on what I'm doing wrong?
The only step in that link I didn't follow was: --Replace each instance of 'localhost' with your 'Server Name' in MAMP. (localhost is default)
Because I don't actually know what that means exactly? I don't know what it means to replace localhost with Server Name in MAMP...
Okay so I have a wordpress website that I've been developing locally on my netbook. I want to be able to develop it both on my netbook and on my desktop so in order to ease the process and not have to reconfigure stuff each time I switch between the two, I decided to host my database remotely on my website, and then just configure the code for the local install to refer to the same database etc.
I've followed this guide:
https://coderwall/p/ck8v4a/remote-database-with-local-wordpress-instance
and it does not seem to be working for me. I have gone on my host's control panel (Dreamhost) and put my local IP as an allowable host, and I've set my wp-config files to map to my domain. And yet it still will not go through.
Any clues on what I'm doing wrong?
The only step in that link I didn't follow was: --Replace each instance of 'localhost' with your 'Server Name' in MAMP. (localhost is default)
Because I don't actually know what that means exactly? I don't know what it means to replace localhost with Server Name in MAMP...
Share Improve this question asked Sep 21, 2017 at 22:44 Aslan FrenchAslan French 2354 silver badges18 bronze badges 5 |1 Answer
Reset to default 1What you are trying to do will not work as you local PCs will most likely get different IP addresses from time to time which will mean that you will have to reconfigure your server.
Your solution is much simpler.... just host the development site on your server, use the hosts file of your PCs to map whatever domain name you use for development to the IP of the server. You will also need some server side configuration to support that domain name, but since you use relatively respectable company, I assume it is something that you can do without having actual control of the domain, or use a subdomain of your site
本文标签: localhostHow do I access a remote database with a local MAMP development install
版权声明:本文标题:localhost - How do I access a remote database with a local MAMP development install? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741617687a2388622.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
telnet DH_IP 3306
(via terminal), if it just hangs there then contact DreamHost about it. – Ismail Commented Sep 21, 2017 at 23:01