earthdoctor:
I am developing and maintaining a site for a customer. The customer will be adding (including images) / updating products and prices, and nothing else, on the 'live' site. I will be doing all other maintenance and development on my testing server, and then uploading the database when necessary.
If I upload the database from the dev. box to the live site, it will over-ride any amendments that have been made directly on the live site; it is not practical, nor desirable, for my completely non-technical customer to access my dev. box for product additions / amendments, as it is an old PC sat on my desk at home.
Is there any way around this problem (he asks, expecting the answer no....)?
Yes it will overwrite anything that was on the live site, with your dev site settings. unless you can figgure out a way to only update mysql with the tables you have changed, and first making sure no changes have been made since you last checked. Really, all-in-all this isnt the best way to do it.
i would have your dev site be a copy of the live site, and make your changes/additions to it, once you get to a point where you think you should update the live site, then download a copy of your live database and load it into your dev site, and see that everything is working good, then make the swap. this way your not loosing customer data, or new orders that where placed or newly added products. at least that is how we do it here.
i have a live site on one server, and another server which is only local. we use our staging server to build new features and so-on, and then just swap the live site for the newer staged one after we have imported the order/customer/product data into its corrisponding database. this way we not only have a backup of what was just released, but we can keep building off of it without worring about loss of data.
hope this helps
let me know if you need anything else