Local WP install / sharing remote database
-
I’ve got WP 2.7 installed on a server (MediaTemple Grid server, if it matters) and am trying to get my local WP installation to share the remote database. It seems like this can be done, something just isn’t clicking.
– I’m using MAMP to run the local install of WP
– I simply copied everything from my remote WP install to the local WP install
– I changed the following line in my local wp-config.php file:define('DB_HOST', $_ENV{DATABASE_SERVER});
to:
define('DB_HOST', 'external-db.s****.gridserver.com'); // **** added here because I'm paranoid :)
The DB_NAME, DN_USER, and DB_PASSWORD should all remain the same since I’m still connecting to the same database, right?
The error I get when I try to view the local WP index.php is:
Safari can’t connect to the server.
Safari can’t open the page “https://localhost:8888/wordpress/index.php” because Safari can’t connect to the server “localhost”.What am I missing? I was able to punch in the same database login info into Sequel Pro to connect to the remote database without any problem, so I’ve got the login info correct. Oh, and MAMP is also working correctly for other sites. Did I miss a step someplace?
Thanks for any help!
Erik
- The topic ‘Local WP install / sharing remote database’ is closed to new replies.