在另一个主机上安装Wordpress [英] installing Wordpress on another hosting

查看:278
本文介绍了在另一个主机上安装Wordpress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的情况:

  1. 我必须将服务器A上托管的Wordpress网站移动到服务器B.但是我没有Wordpress管理员登录详细信息.
  2. 我可以控制托管服务器A和B
  3. 我还具有服务器A的FTP访问权限
  4. 我已从服务器A导出数据库,但没有该数据库的用户名或密码.

是否可以将Wordpress网站移至服务器B?

Is it possible to move the Wordpress site to server B ?

推荐答案

您需要先通过FTP传输文件,这很容易.然后,您通常必须通过phpMyAdmin将数据库副本上载到服务器B.这是您遇到问题的地方; 您需要数据库连接详细信息才能做到这一点.完成后,您需要更新wp-config.php以匹配新的数据库详细信息.最后,如果这是一个新域,则需要更新wp_options表中的一些字段以及wp_posts表中的所有guid值.可以使用SQL REPLACE()函数来完成.有关更多详细信息,请参见此处.

You need to first transfer the files via FTP, which is easy enough. Then you'll have to upload the copy of the database to server B, usually via phpMyAdmin. This is where you'll have problems; you'll need the database connection details in order to do this. Once you've done that you'll need to update wp-config.php to match the new database details. Finally, if it is a new domain, you'll need to update a few fields in the wp_options table and all the guid values in the wp_posts table. This can be done using the SQL REPLACE() function. See here for more details.

这篇关于在另一个主机上安装Wordpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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