lencicki
Member
Posted 3 years ago #
I've been experimenting with running wordpress on my local machine -
I recently imported a wp database into my local php, and after finding and replacing the url I was able to login to amin, and all posts appear.
My problem is that when I go to view the site, nothing loads. There's no error, just a blank screen with no source code.
I am able to run clean wordpress installs on this system, but I'd like to be able to import full PHP databases with settings.
Any one know what might be wrong?
Don't import the db. Try re-installing WP again but let it set up the local tables from scratch. Then use Tools/Export to download a file containing all of your posts, pages, comments, custom fields, categories, and tags. Import this into the local installation using Tools/Import/WordPress and you shouldn't have any problems.
Review Moving WordPress
Might also look at the Search and Replace plugin to make sure everything in your database does point to the correct domain.
http://wordpress.org/extend/plugins/search-and-replace/
lencicki
Member
Posted 3 years ago #
Thanks Esmi - That would work, but I have so much custom configuration going on I was hoping to figure out how to do it by just moving the whole database. The import export is great, but I end up having to reset all of the settings, which is tricky moving from a test server to a live envitonment.
MichaelH - I'll give the Search and Replace a try - thanks for the hint!