I think s_ha_dum is in the right track, but I think he got it backwards.
You want to:
- develop/design locally
- connect to the REMOTE database and work with his content?
You need a remote (staging) installation of WordPress, where the client can create/enter his content.
You need your local WordPress site (localhost) to point to the remote database, to grab the content he is using.
So, you would have your http://example.com/wordpress set up for the client to edit – just even with a vanilla WP install. This site would be connected to it’s own database.
Your localhost site would have the REMOTE site’s database credentials, with the DB_HOST
set to http://example.com, or whatever the mySQL path is if it’s accessed another way through your hosting provider.
On your local site, keep the WP_SITEURL
and WP_HOME
set to localhost. Otherwise, you’ll get redirection loops.
Related Posts:
- Connect to live db whilst working locally
- How to re-connect WP files in lampp/htdocs to new SQL database to recover site under development
- Search and Replace in Windows XAMPP site
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Best way to move live site local
- Why can’t I swap a DB in a WP install? [closed]
- Import live site to local setup without access to live site
- Moving online website to MAMP or dumb idea?
- Moving minor updates between local and live sites – just database?
- Connect to a remote database for wordpress in my own hosting server
- Difficulty importing my live site to local
- Problem migrating to localhost
- Design problems when exporting remote database for local development
- How to transfer from localHost to live but use the already existing database on the server?
- Installing local to live WP into subdirectory
- Database migration issues – Error #1046 No database selected
- Getting “Error Establishing a Database Connection” on localhost in new Mac OSX Lion environment
- Cloning blog to localhost via WAMP
- Recovery – Restore Database after moving folder location locally
- Cloned site not connecting to database – MAMP
- Locally installing wordpress. Database problem
- I have my full special database from xampp how can i use this on wordpress?
- Local Content different from Remote Content
- Check if a database is well installed
- How can I work on a database along side a client?
- Restoring .sql backup results in “Error establishing a database connection”
- Theme Options – localhost to new url
- Can I connect WordPress website with an external database?
- Help required with local wordpress setup
- What is an ORM, how does it work, and how should I use one? [closed]
- What is the difference between an ORM and an ODM?
- What is this JavaScript “require”?
- Rename a table in MySQL
- How should I tackle –secure-file-priv in MySQL?
- What is this JavaScript “require”?
- How do I use MySQL through XAMPP?
- What is “Advanced” SQL?
- What’s the difference between identifying and non-identifying relationships?
- What are the differences between B trees and B+ trees?
- MySQL SELECT increment counter
- Cannot access to localhost/xampp/index.php
- Localhost is not working
- localhost/xampp/ or http://localhost/index.php can’t be accessed
- How to resolve ORA-011033: ORACLE initialization or shutdown in progress
- Example of a strong and weak entity types
- How do I run a file on localhost?
- Oracle SQL query for Date format
- phpMyAdmin – Error > Incorrect format parameter?
- Strange Characters in database text: Ã, Ã, ¢, â‚ €,
- Difference between partition key, composite key and clustering key in Cassandra?
- How SID is different from Service name in Oracle tnsnames.ora
- What is a relation in database terminology?
- Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user ‘root’@’localhost'(using password:YES)
- Database vs File system storage
- Can I have multiple primary keys in a single table?
- Exclude Statement in SQL
- How do you query for “is not null” in Mongo?
- What is a file based database?
- Is it fine to have foreign key as primary key?
- Storing Images in DB – Yea or Nay?
- Using wpdb to connect to a separate database
- how to Optimize WordPress database for 10 million post? [duplicate]
- MySQL Database User: Which Privileges are needed?
- Why is my database import losing text widget data?
- Database synchronization between dev/staging and production
- Keeping WP database synced across multiple developers using git
- WPDB Insert or if exists Update
- Multiple developers / editors working on a site in progress
- How can I make updates to a site, on a development copy, but then move updates back without overriding live site’s evolving database?
- get_results using wpdb
- Will it break my site if I delete all transient records in wp_options table?
- Checking if Database Table exists
- Why WordPress choose data serialization over json_encode?
- What’s the simplest way to backup my WordPress database?
- WordPress (MyISAM) database is slow, should I switch to InnoDB?
- $wpdb won’t insert NULL into table column
- Relaunch 4.2 utf8mb4 database upgrade
- Fastest way (least amount of steps) to locally import a remote database using WP-CLI
- Safest way to bulk delete post revisions
- Please explain how WordPress works with MySQL character set and collation at a low level
- Solution for database version control and deployment?
- The MySQL alternatives: Do Percona Server and MariaDB work well with WordPress, and do they make WordPress go better?
- How many users can WordPress handle?
- Get error messages when $wpdb->insert() returns false?
- Detecting errors generated by $wpdb->get_results()
- Staging sites, how do you manage synchronising updates in the DB?
- Does dbDelta delete columns as well?
- How to get the post publish date outside the loop?
- MariaDB as a backend database
- wpdb update add current timestamp not working
- Site stuck in “Database Update Required” loop
- How to fetch Data in WordPress using MySQLi or $wpdb
- WordPress Database lost auto increment
- Count & Display Database Queries
- Connect to database using wordpress wp-config file
- How can I make a WordPress database portable and url independent?
- Are There Any Plans for WordPress to Support Databases Other Than MySQL?
- wpdb->insert multiple record at once