[英]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! 提前致谢!
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. 我尝试过这种方式,并且效果很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.