简体   繁体   中英

How Do I Restore WP site from unzipped files and SQL dump?

I have a site I am supposed to migrate. The previous developer did not give me access to the Wordpress backend or a Wordpress back up file. I do, however, have access to FTP for the site. I've downloaded all of the site files including Wordpress, plugins, the theme, and I have a SQL dump file of the database. How can I restore the site (at another location) with these elements?

Assuming you have the previous site's root in tact, meaning you extracted ALL the files, and not just wp-content (if you only did this, you should just download everything from the previous root).

1) Upload zipped file to new root directory
2) Unzip the file
3) Create new database and database user
4) Import SQL dump to new database
5) In wp-config file, adjust settings to point to new database
6) In database, change primary site URL to the new site domain (may be multiple instances so do search/replace)
7) In database, create a WP user so you can log in to Wordpress backend
8) Remove original zip file from root

假设您有权访问数据库,则可以使用MD5哈希生成器来更改admin用户的密码,然后使用复制程序包插件将站点复制和迁移到所需的任何地方。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM