将完整的本地 Wordpress 网站从一台计算机复制到另一台计算机 [英] copy full local Wordpress website from a computer to another

查看:47
本文介绍了将完整的本地 Wordpress 网站从一台计算机复制到另一台计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由 Microsoft Webtrix 安装在我的计算机 A 上的 wordpress 网站.我在我的电脑 B 上安装了 Microsoft Webmatrix,这样我就可以在电脑 B 上继续我的工作,这样我就可以在电脑 B 上继续工作了.我想将我的完整 wordpress 网站(网站内容 + 数据库)从计算机 A 复制到 B.

I have a wordpress website which is installed by Microsoft Webtrix on my computer A. I have installed Microsoft Webmatrix on my computer B so that I can continue my work on computer B so that I can continue work on computer B. I want to copy my full wordpress website (website content + database) from computer A to B.

我找不到教如何将数据库从计算机 A 复制到 B 的教程.我对创建网络完全陌生,所以请帮忙.谢谢

I can not find a tutorial which teaches how to copy database from computer A to B. I am totally new to creating web so please kindly help. Thanks

推荐答案

你最好的长期解决方案是学习如何将 WordPress 站点从本地导出到本地开发环境以及本地到实时主机.

Your best long term solution is to learn how to export WordPress sites from local to local development environments as well as local to live host.

  1. 在您当前的设置中,只需从网站的 wp-content 复制所有文件,然后将它们转移到您的新设置中.
  2. 将插件添加到您的原始站点,例如 WP 数据库备份.这将允许您转储 .sql(数据库)并保留副本作为备份.
  3. 转到新设置(B 计算机).创建一个新的 wordpress 网站.
  4. 将 wp-content 文件夹复制并粘贴到新站点中.
  5. 现在,您需要在新设置上检查网络矩阵.您需要确保 wp-config.php 文件具有正确的设置,例如数据库名称和密码用户等.
  6. 最后通过步骤 2 中提到的 db 插件上传备份 db .sql 文件.
  1. Within your present set up simply copy all files from wp-content of the site and transfer them to your new set up.
  2. Add a plugin to your original site such as WP Database Backup. This will allow you to dump the .sql (database) and keep a copy as a backup.
  3. Over to the new set up (B computer). Create a new wordpress site.
  4. Copy and paste the wp-content folder into the new site.
  5. Now this is where you need to check with web matrix on your new set up. You'll need to make sure the wp-config.php file has the correct settings such as db name and password user etc.
  6. Finally upload the backup db .sql file via the db plugin mentioned in step 2.

这篇关于将完整的本地 Wordpress 网站从一台计算机复制到另一台计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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