在Wordpress本地建立一个网站 - 如何转移到网络主机? [英] Built a site locally on Wordpress - how do I transfer to the web host?

查看:108
本文介绍了在Wordpress本地建立一个网站 - 如何转移到网络主机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的电脑上使用WAMP为我的朋友建立了一个网站,并下载Wordpress。我的朋友已经有他的域名和网络主机在GoDaddy。一旦我完成了,我如何转移一切到他的网站主机?我必须在GoDaddy上手动创建一个与本地一样的数据库吗?或者有一种方法来上传MySQL数据库到Web主机上?此外,对于文件的路径和数据库列的路径有什么改变?

I built a site for my friend locally on my computer using WAMP and downloading Wordpress. My friend already has his domain and web host on GoDaddy. Once I'm all finished, how do I go about transferring everything to his web host? Do I have to manually create a database on GoDaddy that's exactly like the one locally? Or is there a way to "upload" a MySQL database onto the web host? Also, does anything change in regards to the path of the files and the path of the database columns?

请让我知道我要做的一切,因为这是我第一次这样做。

Please let me know everything I have to do as this is my first time doing this.

推荐答案

有一个名为wp migrate db的插件。
安装该插件,您可以在工具菜单下找到该插件。
通过使用该插件,您可以为您的新webhost迁移数据库。

There is a plugin named wp migrate db. Install that plugin and you can find that plugin under the tools menu. By using that plugin you can migrate the db for your new webhost.

使用该插件获取数据库后,只需创建一个数据库并导入migrtaed db。
然后将所有文件以zip格式上传并在webhost位置解压缩。

Once you get your db using that plugin, simply create a database and import the migrtaed db. Then upload all your files as zip and extract at the webhost location.

然后只需要更改dbusername,密码,数据库和

Then only thing you need to do is, change the dbusername, password, database and host in the file wp-config in the root folder.

如果您使用此方法,则不需要像在本地主机中那样重新安装wordpress,将获得整个内容。

If you are using this method, there is no need to install wordpress again like you did in your localhost and you will get the entire contents as well.

这篇关于在Wordpress本地建立一个网站 - 如何转移到网络主机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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