Moving WordPress site from localhost to a live ser

2019-03-04 03:58发布

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)

标签: wordpress
1条回答
兄弟一词,经得起流年.
2楼-- · 2019-03-04 04:36

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 "/"
查看更多
登录 后发表回答