Problems working with a Wordpress site on a local server -


i'm trying download large wordpress site , work on locally. exported/imported sql using phpmyadmin w/ xampp, , changed wp-config.php file match mysql login information , i'm no longer getting "error establishing database connection". far know, schemas , imported information should go, getting 404 error on main page. there anywhere else might need update database settings?

any appreciated.

you need update db :

update new location >

update wp_options set option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') option_name = 'home' or option_name = 'siteurl'; 

fix urls , post slugs >

update wp_posts set guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com'); 

then fix internal links >

update wp_posts set post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com'); 

in case http://www.new-domain.com http://localhost or http://localhost/your_wp_install_folder/

after running , make sure , go db , check options table siteurl , home options, , see point right place ...


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -