简体   繁体   English

如何在没有wp的情况下从mysql db恢复wordpress博客-内容

[英]How to recover wordpress blog from mysql db without wp - content

Yes, as strange as it appears to be, due to an accident the entire site just blew away, including the wp-content, wp-include folders, etc. Only thing that remains with me is the mysql database through phpmyadmin. 是的,看起来很奇怪,由于意外,整个站点都被炸掉了,包括wp-content,wp-include文件夹等。唯一剩下的就是通过phpmyadmin的mysql数据库。 How can I retrieve posts, pages, etc from it? 如何从中检索帖子,页面等?

I usually use the script installers for wordpress such as fantastico, etc. , not exactly familiar with detailed ftp procedure to install wordpress manually 我通常使用脚本安装程序来安装wordpress(例如fantastico等),并不完全熟悉详细的ftp步骤来手动安装wordpress。

Any help would be grateful. 任何帮助将不胜感激。

Thanks in advance 提前致谢

As I said above, it is a case by case thing. 正如我上面所说,这是个案的情况。 Which version were you using? 您使用的是哪个版本? what were your plugins? 你的插件是什么? were there any special directories? 有什么特殊目录吗? were there any special/custom bits of code? 有什么特殊/自定义的代码位吗? etc etc etc. If you didn't install yourself, that's all things someone would have to consider when recreating the installation and test for since auto-install scripts can install just about anything. 等等等等等等。如果您没有自己安装,那么在重新创建安装并进行测试时,这就是所有用户必须考虑的所有事情,因为自动安装脚本几乎可以安装任何东西。 It's a pain, but at least your content isn't completely lost. 这很痛苦,但是至少您的内容并未完全丢失。

So try following the database recovery linked in the comments, then install a new wordpress, then reinsert those recovered lines. 因此,请尝试遵循注释中链接的数据库恢复,然后安装新的wordpress,然后重新插入这些恢复的行。 After all, your question isn't really tailored for stack overflow, it might (and I'm not fully sure here) yeild more precise answers and be better suited for Server Fault. 毕竟,您的问题并不是真正针对堆栈溢出而设计的,它可能(并且我在这里不确定)可以提供更精确的答案,并且更适合于服务器故障。

Keep a full DB backup (untouched) somewhere, I have a feeling you may need to hire someone in the end if you cant get it back up yourself by just recreating a new WP and reinserting the data. 将完整的数据库备份(未修改)保存在某个地方,如果您不能通过重新创建新的WP并重新插入数据来自己备份数据库,我觉得您最终可能需要雇用某个人。 It's just one of those things that sound simple to do, but it is very hard to explain because too much could go wrong. 这只是听起来很简单的事情之一,但是很难解释,因为太多的事情可能会出错。 After all, you should have backed up your site automatically, every day. 毕竟,您应该每天都自动备份网站。 That way, it would already be restored. 这样,它已经被还原。

Maybe you should try to make a new WP Website and install the plugins you used to have. 也许您应该尝试建立一个新的WP网站并安装以前拥有的插件。 And then replace the database tables by the ones you have saved. 然后将数据库表替换为已保存的表。

These guys seem to offer a plugin that may be able to help you import a database into a new site easily. 这些家伙似乎提供了一个插件,可以帮助您轻松地将数据库导入新站点。

WP Migrate DB Pro WP Migrate DB Pro

It isn't a free plugin but if it saves you a lot of time and allows you to import your old database. 它不是一个免费的插件,但是如果它可以节省大量时间并允许您导入旧数据库。

I'd do that first and then look at getting your old plugins reinstalled like the others mentioned. 我会先这样做,然后再看看如何像上述其他插件一样重新安装您的旧插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何渲染 Wordpress 博客列表以显示在 WP Bakery 内容下方 - How to render a Wordpress blog list to display below WP Bakery content 使用WP_Query从Wordpress废墟页面CSS中显示内容,不显示,内容不显示 - Showing content from Wordpress ruins page CSS using WP_Query, without, content does not show 来自 WP 文件和数据库备份的 Wordpress 娱乐 - Wordpress recreation from WP files & DB Backup 如何将博客从Wordpress迁移到Wordpress Mu - How to migrate a blog from Wordpress to Wordpress Mu 来自其他MYSQL DB的wp_insert_post,出现wordpress错误 - wp_insert_post from other MYSQL DB, getting wordpress error 阿帕奇。 如何将 wp-config.php 和 wp-content 从 wordpress 核心移出? - Apache. How to move wp-config.php and wp-content outside from wordpress core? 如何在wordpress中的wp-db文件中设置mysql_query('set Names utf8') - How to set mysql_query('set Names utf8') in wp-db file in wordpress 如何从自定义博客中导入wordpress中的标签 - how to import tags in wordpress from custom blog Wordpress包括(“../../../ wp-blog-header”);失败 - Wordpress include(“../../../wp-blog-header”); failing 如何在我的“index.php”中连接到wordpress的DB,我需要将其放在“wp-content”文件夹中 - how do i connect to DB of wordpress in my “index.php” which i need to place out of the “wp-content” folder
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM