简体   繁体   English

将Wordpress从Xampp移至Xampp

[英]Moving wordpress from xampp to xampp

I'm not a programer I just play around html and css. 我不是程序员,我只是玩html和CSS。 Few weeks ago I was asked to make a Wordpress site for a friend. 几周前,我被要求为一个朋友建立一个Wordpress网站。 Thinking that the best idea would be to do it on XAMPP and then move it to live, I worked on it for quite some time. 想到最好的主意是在XAMPP上进行处理,然后将其投入使用,我花了相当长的时间进行研究。

Just when I was about to finish, something happened with powersurge and my computer got totaled, motherboard, graphics, power, all fried, all except for hard disc that somehow survived. 就在我快要结束的时候,电源浪涌发生了一些事情,我的计算机被总计了,主板,显卡,电源,所有东西都炸了,除了硬盘以某种方式可以幸免。

Now I got a laptop and new XAMPP instalation, but I have no idea how to transfer site from my old Hard disc to new. 现在我有了笔记本电脑和新的XAMPP安装,但是我不知道如何将站点从旧的硬盘转移到新的硬盘。 Any ideas? 有任何想法吗?

Thanks in advance! 提前致谢!

  • Edit: I have moved files from old xampp folder to new, but problem is database. 编辑:我已经将文件从旧的xampp文件夹移到新的,但是问题是数据库。

Usually(default) xampp is installed on the C drive, you can find it at: 通常(默认)xampp安装在C驱动器上,您可以在以下位置找到它:

C:\\xampp\\

projects are stored in the htdocs file inside of that, move the project(or projects if you have multiple) in its entirety from the old htdocs file to the new one. 项目存储在其中的htdocs文件中,将整个项目(或多个项目,如果您有多个项目)从旧的htdocs文件移动到新的htdocs文件中。

C:\\XAMPP\\mysql\\data获取MySQL数据文件,然后按照此处的说明进行操作

You can do this by following this steps: 您可以按照以下步骤进行操作:

1) copy your site from c:/xampp/htdocs/[copy your site name folder] (before just check that your xampp install in which drive. common is C drive). 1)从c:/ xampp / htdocs / [复制您的站点名称文件夹]复制您的站点(在检查您的xampp安装在哪个驱动器之前,通常是C驱动器)。

2)export database from phpmyadmin type in URL : http://localhost/phpmyadmin/ then select your database and export it. 2)从phpmyadmin导出数据库,输入URL: http:// localhost / phpmyadmin /,然后选择数据库并导出。

3)paste your folder in new PC's xampp/htdocs 3)将文件夹粘贴到新PC的xampp / htdocs中

4)import your database in your new Xampp. 4)将数据库导入新的Xampp中。

I tried this way and its working good. 我尝试过这种方式,并且效果很好。

  1. Install xammp and wordpress on new computer. 在新计算机上安装xammp和wordpress。
  2. copy wordpress folder from C:\\xampp\\apps folder 从C:\\ xampp \\ apps文件夹复制wordpress文件夹
  3. Export wordpress folder from phpmyadmin. 从phpmyadmin导出wordpress文件夹。
  4. replace the wordpress folder to new system and drop all table from wordpress db and import the old db datas. 将wordpress文件夹替换到新系统,然后从wordpress db中删除所有表并导入旧的db数据。 Notes: 笔记:
    1. If you config or merge other tools like phpbb means you have to change that also to the new location. 如果您配置或合并phpbb之类的其他工具,则意味着您还必须将其更改为新位置。

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

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