如何创建一个插件来备份 wordpress 数据库中的特定表? [英] How to create a plugin for take a backup of speific table in wordpress database?

查看:35
本文介绍了如何创建一个插件来备份 wordpress 数据库中的特定表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上我下载了一个插件.这个插件在我的 wordpress 数据库中创建了一些新表.现在我需要创建另一个插件来备份表 &该表中的数据由我下载的插件创建.(例如:我下载了一个插件名称b"并激活它.它在我的 wordpress 站点数据库中创建了 table1、table2 表 3.我在该插件中工作以存储一些数据s in table1 ,table2,table3 等.我创建了一个其他插件,它链接到下载的插件 & 现在我需要备份 table1,table2 表 3.我的 php 页面中有一个表单,当单击表单上的提交按钮时,所选表的备份将作为 .sql 或 .sql zip 文件存储到我的计算机中.Ineed代码).

Actually i download a plugin .This Plugin create some new tables in my word press database.Now i need to create a another plugin for to take a backup of table & data in that table created by the plugin i down loaded .(eg: i download a plugin name "b" and i activate it.It create table1,table2 table 3 in my wordpress site database. I worked in that plug in store some data s in table1 ,table2,table3 etc.I create a other plug in and it is linked to the downloaded plugin & now I need to take a backup of table1,table2 table 3 .I have a form in my php page ,when clicking submit button on the form then the backup of selected table is stored to my computer as .sql or .sql zip file.Ineed the code) .

如果有人知道答案,请提出建议.

Please suggest if any one know the answer.

推荐答案

Wordpress 有很多插件可以创建 WP 数据库的备份.我使用的其中之一是this,因为它有很多安全的东西加上数据库备份工具.例如,如果您想要一个更具体的插件,您可以使用 this.这两个插件有支持,而且非常可靠.

There are lots of plugins for Wordpress that creates backups of your WP database. One of those I use is this, because it has a lot of security stuff plus the DB backup tool. If you want a more specific plugin you have this, for example. This two plugins has a support and they're very reliable.

这篇关于如何创建一个插件来备份 wordpress 数据库中的特定表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆