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?
- 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?
- Why WordPress choose data serialization over json_encode?
- Relaunch 4.2 utf8mb4 database upgrade
- Reset Post IDs to less than 64bit integer
- Does WordPress use the InnoDB engine for MySQL by default?
- $wpdb->prepare() warning in WordPress 3.5
- Best way to import users, post and categories from an external database
- Performance tips for a large user base [closed]
- Saving Metadata from the Gutenberg Editor Sidebar to the Database
- Prevent changing the length of post_name column on WordPress Update
- Migrate a Non WordPress database to wordpress [closed]
- Moving an entire wordpress site from one domain to a new domain and database
- error importing localhost export file to server
- Custom DB_COLLATE (collation) value not working on fresh install?
- What causes the “max_user_connections” warning on WordPress frontend?
- Get Database Credentials from within the themes file
- How does WordPress create its database during installation?
- Subscribers to posts
- $wpdb->update has finished saving trigger?
- WordPress site uses MyISAM, should I switch to InnoDB necessary?
- WP Database Table to CSV file
- For WordPress is there content in the database which I can safely ignore?
- How can I UN-orphan media files?
- Does WordPress always create unique passwords?
- Merge two WordPress installations into one, and keep posts separated?
- Export / import WordPress database
- WordPress choose wrong database
- How can I (semi) automate a database export and import to a different location?
- WordPress on a local machine redirecting to xampp dashboard page [closed]
- Is it safe to delete unnecessary user metadata?
- Improve performance by removing unnecessary database queries
- WordPress Relational Database
- Unable to set a default serialized array using dbdelta()
- Importing 10 Years of Media into the WP Database
- Is there a way to execute a php script outside WordPress?
- Make changes of wp-db.php file persistent against updates
- Change the default data installed when setting up WordPress
- $wpdb->get_var – What value is returned when zero records are found?
- SymmetricDS in dev + prod workflow?
- Fixing YARPP plugin FULLTEXT MySQL indexing
- Error establishing a database connection in wordpress site , website not opening
- Counting post and changing roles in mysql database. Query not code
- wpdb Insert unknown post data dynamic foreach loop
- How do I use a database in a custom theme?
- I imported an restore an database and It shows #1067 – Invalid default value for ‘user_registered’
- Migrating meta_key and meta_value from old theme to new one
- How do you enable scripts on a WordPress installation in Softaculous?
- How to rerieve comments and their replies from DB
- Inserting data with Geometry field
- Export only a part of the database for migration
- Page 404 Error on Localhost
- Why am I being prompted to reinstall wordpress?
- What’s the easiest way to connect external database and display data on wordpress?
- database error WordPress move from one hosting to other
- Select data from foreach loop and send it to wordpress database
- Same DB for live and dev versions
- update multiple user meta field based on another meta field
- After renaming MySQL database, I can no longer access my Blog page
- execute custom function on database connection error
- Call to a member function insert()
- Create a new table on the database and save parameters from a contact form
- not saving post in wp_post wordpress database table
- How to add data from wordpress tables to new database tables you have created
- Creating Tables in WordPress Database
- Calling update_user_meta inside of another function doesn’t work
- How to back-up a database on IIS
- Where are database files of a WordPress website?
- SQL query to rewrite all media URLs to end with .webp