问题
Here's my scenario:
- I have to move a Wordpress site hosted on server A to server B. But I do not have the Wordpress admin login details.
- I have control of hosting server A as well as B
- I have also the FTP access for Server A
- 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