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 "/"