2017-02-21 76 views
0

我正在尝试恢复一个WordPress网站,我有备份文件,但我手边没有数据库备份。恢复WordPress网站无数据库备份?

我设法通过在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. 

我知道我做了一个巨大的错误,没有备份我的网站数据库。

在这种情况下有什么办法可以访问wp-admin吗?我不能用新的“嘲笑”旧的数据库吗? 任何能够访问wp-admin

+1

简短的回答是否 – PhpDude

+0

您可以重新安装WordPress,然后复制您恢复的'wp-content'文件夹。就是这样。 – Eamonn

回答

0

配置核心WordPress的新鲜安装点您当前使用的WordPress文件到刚刚创建

您应该复制的所有设置(从DB_NAME,DB_USER,DB_PASSWORD ...... AUTH_KEY,在SECURE_AUTH_KEY新的数据库。 ... until table_prefix)从你的新安装wp-conf到旧版本

你几乎会丢失存储在数据库中的所有数据,比如用户等等。但是,如果你的主题更多基于文件,你应该可以选择页面

这是Triel,我认为它应该在很大程度上看不到任何其他出路这种情况。

0

“我不能'嘲笑'一个新的旧数据库?任何能够访问wp-admin” 只需在您的服务器上创建一个新的mysql数据库,并将其信息放入您的wp-config。 PHP文件。