恢复无DB备份的WordPress网站



我正在尝试还原我的文件备份的WordPress网站,但我手头上没有DB备份。

我通过恢复CPanel中的备份来部分启动该站点 - 该网站的所有页面现在都在工作,但是由于没有DB(WP -Config.php)指出了"我的DB")访问site.com/wp-admin呈现此错误:

Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
Are you sure you have the correct username and password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?
If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

我知道我没有备份我的网站DB犯了一个巨大的错误。

在这种情况下,有什么办法可以访问WP-Admin?我不能用新的DB嘲笑旧的DB吗?可以访问WP-ADMIN 的任何东西。

使用新的wordpress文件配置核心WordPress,您当前的WordPress文件刚刚创建了

您应该将所有设置(来自db_name,db_user,db_password ...... auth_key,secure_auth_key ..... toll table_prefix)从您的新安装wp-conf中复制到

您将失去几乎所有存储在DB的数据,例如用户等

这是Triel,我认为它应该可以在这种情况下没有其他任何方法。

"我不能用新的DB模拟'旧DB吗?只需在服务器上创建一个新的MySQL DB,然后将其信息放入您的wp-config.php文件中。

最新更新