Moving WordPress site from localhost to a live ser

2019-03-04 04:29发布

问题:

I have moved my WordPress website from my localhost server to a live server. I have the wp-config.php file well edited and have added to the home and SiteURL columns in the database the site url, but i still can't access my admin page on line and my site is still displaying error message (Error establishing a database connection)

回答1:

Simple checklist for wordpress migration is:

  • edit database table wp-options and options siteurl and home there
  • edit wp-config.php (DB_NAME, DB_USER, DB_PASSWORD a DB_HOST)
  • use this replace script to replace all other occurences of absolute paths for relative path it is enough to replace your old site name http://yoursite.com with an "/"


标签: wordpress