Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
218 views
in Technique[技术] by (71.8m points)

mysql - Built a site locally on Wordpress - how do I transfer to the web host?

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

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.

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

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...