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?
- Connection refused on locahost after importing database?
- Setting up a local copy from a production site
- When to use custom DB tables or add_option?
- Have working sql query… trying to adjust it to use $wpdb
- Best host for running large mem and processor intensive WordPress sites?
- creating new field on mysql
- Does WordPress store the username as a primary key in the database?
- Strange characters added to the database
- $wpdb->query can’t insert data
- WSOD 3.9.1 – Tried Everything so far
- Database Update Required – Update from command-line
- Can you refresh ONLY the wordpress adminbar and not the whole page?
- Sending posts from Python to WordPress
- SQL query to set posts in bulk based on the post content
- Automate WordPress website setup with prefilled data
- How can I detect right db type?
- Add search bar to Custom Database Table in WordPress Dashboard
- Custom search query by category id
- How do you render posts from outside wordpress?
- Image link issues after importing a database backup to my local web server
- multiple wordpress installs w/shared user database but separate content databases
- A change in URL slug in database returns 404, how can I do auto-redirect?
- Second ezSQL initialization for MSSQL
- Fetch a single row from a custom table for to a given ID
- Database create or redirect
- Updating seperate database when post attachment is changed
- add featured image dialog box disappear
- Database structure cheatsheet
- White Screen in Home Page
- WordPress Database – wp_usermeta and the correct number of session_tokens rows
- Continuous SQL query errors from outside source
- How to escape percentage sign(%) in sql query with $wpdb->prepare?
- How to get a list of articles related to a particular category from my other WordPress website?
- Migrate Users From laravel to wordpress
- WordPress has been updated! Before we send you on your way, we have to update your database to the newest version
- how add more field to wp user and save it to database
- How do I cleanup my database with data that is no longer being used?
- Malware in old website – how to migrate?
- A WP dev site that displays content from a live site’s database but cannot write to wp_posts?
- error establishing database connection (WAMP + filezilla)
- Is there a way for two deferent themes to consume two different DB on a same WP instance?
- How do I update a WordPress wp_postmeta meta_value that contains many options
- How can I get $wpdb to show MySQL warnings?
- About wp database hooks (error establishing connection)
- How to display $wpdb->insert_id; value on redirected page
- Should I Use only wpdb Class to Write Custom Queries?
- Auto populate form fields based on serial input or pull listings from other websites?
- How to extract some part of WordPress full source code
- Create Tables in WordPress
- Error establishing a database connection for some files
- Hash user emails in database?
- WordPress Failed to Login (DB Error)
- Sending WordPress database information to cross domain the safe way?
- Database Name Change
- Weird characters in title if it contain “ ”
- Share WordPress Database
- Where To Find bb_profile_data(); In bbPress?
- DB access blocked when initializing WP externally
- Saving data to database and exporting to excel
- Site does not work right, pages not showing up, even for root admin
- One information repeated on multiple locations on one site [closed]
- WordPress: Interact with Database Query Data and Login
- Showing Error(TAble already exist)
- Getting an error when trying to migrate to DV server from Grid with Media Temple [closed]
- Cant Connect to Database
- WordPress database connection failed, while mysql client is working [closed]
- update_post_meta returns ID, but nothing in the database
- Configure WordPress to use MariaDB over SSL?
- Combining two select posts from mysql – to get least viewed posts
- DB table creation on reactivation – dbDelta errors on CONSTRAINTS