installing Wordpress on another hosting

人盡茶涼 提交于 2019-12-13 08:36:48

问题


Here's my scenario:

  1. I have to move a Wordpress site hosted on server A to server B. But I do not have the Wordpress admin login details.
  2. I have control of hosting server A as well as B
  3. I have also the FTP access for Server A
  4. I have exported the database from Server A but do not have the username or password for the database.

Is it possible to move the Wordpress site to server B ?


回答1:


You need to first transfer the files via FTP, which is easy enough. Then you'll have to upload the copy of the database to server B, usually via phpMyAdmin. This is where you'll have problems; you'll need the database connection details in order to do this. Once you've done that you'll need to update wp-config.php to match the new database details. Finally, if it is a new domain, you'll need to update a few fields in the wp_options table and all the guid values in the wp_posts table. This can be done using the SQL REPLACE() function. See here for more details.



来源:https://stackoverflow.com/questions/27343558/installing-wordpress-on-another-hosting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!