将 WordPress 站点从本地主机移动到实时服务器 [英] Moving WordPress site from localhost to a live server

查看:37
本文介绍了将 WordPress 站点从本地主机移动到实时服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将我的 WordPress 网站从我的本地主机服务器移至实时服务器.我对 wp-config.php 文件进行了很好的编辑,并将站点 url 添加到数据库中的 home 和 SiteURL 列,但我仍然无法在线访问我的管理页面,我的站点仍然显示错误消息(错误建立一个数据库连接)

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 迁移的简单清单是:

Simple checklist for wordpress migration is:

  • 编辑数据库表 wp-options 和选项 siteurlhome 在那里
  • 编辑 wp-config.php(DB_NAME、DB_USER、DB_PASSWORD 和 DB_HOST)
  • 使用此替换脚本替换所有其他出现相对路径的绝对路径足以将您的旧站点名称 http://yoursite.com 替换为/"
  • 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 站点从本地主机移动到实时服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆