简体   繁体   English

将WordPress网站从本地主机移至实时服务器

[英]Moving WordPress site from localhost to a live server

I have moved my WordPress website from my localhost server to a live server. 我已经将WordPress网站从本地服务器移至实时服务器。 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) 我已对wp-config.php文件进行了精心编辑,并将站点URL添加到数据库的home和SiteURL列中,但是我仍然无法在线访问我的管理页面,并且我的站点仍显示错误消息(建立错误数据库连接)

Simple checklist for wordpress migration is: Wordpress迁移的简单清单为:

  • edit database table wp-options and options siteurl and home there 编辑数据库表WP-期权和期权SITEURL家庭
  • edit wp-config.php ( DB_NAME, DB_USER, DB_PASSWORD a DB_HOST ) 编辑wp-config.phpDB_NAME,DB_USER,DB_PASSWORD和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 "/" 使用此替换脚本将绝对路径的所有其他所有出现的相对路径替换为足以用“ /”替换旧站点名称http://yoursite.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM