且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

部署wordpress数据库设置而不是内容

更新时间:2023-02-02 23:42:22

您无法定义module,WordPress术语是插件,在 wp-config.php 插件设置存储在表_options表中,但一些插件使用多行,其他插件创建整个新表。

You can't define "module", WordPress term is plugin, in wp-config.php The plugin settings are stored in the table _options table, but some plugins use multiple rows, others create entire new tables.

如果插件没有导出/导入设置的选项,您几乎可以忘记它。您必须挖掘代码才能找出DB中行的名称,并且插件创建新表。

If the plugin doesn't have the option to export/import the settings, you can almost forget about it. You would have to dig in the code to figure out the names of the rows in the DB and if the the plugin creates new tables.