多语言展示
当前在线:1905今日阅读:167今日分享:16

wordpress转移服务器教程

有时你需要在你的服务器上移动WordPress,或者将WordPress从一个服务器转移至另外一个服务器。你不必重新安装WordPress。 WordPress具有处理这类情形所需的高度灵活性。
工具/原料

WP-DB-Backup插件

步骤/方法
1

使用FTP下载网站目录下所有文件夹以及文件到本地电脑。

2

使用WP-DB-Backup插件备份数据库并下载到本地。

3

把本地备份的WP文件上传至新的空间

4

到新的主机空间,新建一个数据库,在PhpMyAdmin中选中新建的数据库,然后在Import选项卡下,选择你备份到本地的sql文件恢复到新主机空间的数据库中。

5

修改数据库配置文件wp-config.php 修改如下内容 // ** MySQL settings – You can get this info from your web host ** // /** The name of the database for WordPress */ define(‘DB_NAME’, ‘改成数据库名称’); /** MySQL database username */ define(‘DB_USER’, ‘改成数据库账号’); /** MySQL database password */ define(‘DB_PASSWORD’, ‘改成数据库密码’); /** MySQL hostname */ define(‘DB_HOST’, ‘localhost’); /** Database Charset to use in creating database tables. */ define(‘DB_CHARSET’, ‘utf8′); /** The Database Collate type. Don’t change this if in doubt. */ define(‘DB_COLLATE’, ”);

注意事项

此方法的条件是服务器改变而域名保持不变

推荐信息