這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Database Debugging Tools for Developers

外掛說明

These tools are intended to be used by WordPress developers for testing and debugging.

The backup tool lets you do a quick backup of individual MySQL tables by duplication into the same database, i.e. using “CREATE TABLE copy LIKE orig; INSERT INTO copy SELECT * FROM orig;”.
Useful for testing when you know only some tables will be changed so you don’t have to save and restore the entire database.
Most useful for repeated testing, i.e. backup table(s), test, restore table(s), test, restore table(s), … test, restore table(s), delete backup.

The diff tool shows the rows in the selected tables that were inserted, updated or deleted.
For updated rows the columns that have changed values have the values highlighted – red for the original value and green for the new value.
Although large values are truncated in table cells the full value is available by clicking on the table cell.
Further, serialized values are prettified using JSON.stringify( value, 4 ).
The diff tool is intended for viewing the effect on the database tables of a small number of WordPress operations,
i.e. it is not suitable for testing a large number of WordPress operations.

Please visit https://wpdbdt.wordpress.com/ for a very quick introduction.

This plugin requires at least PHP 5.4.

螢幕擷圖

  • Backup Tool
  • Diff Tool
  • Diff Tool – Detail View

安裝方式

  1. Download the plugin from the WordPress repository.
  2. Open the ‘Plugins’ menu item and activate the plugin.
  3. Read the tutorial at https://wpdbdt.wordpress.com/

常見問題集

Can this be used for backing up a database?

No, the backup is done by creating additional tables in the same database so if the database is lost the backup is also lost.

使用者評論

2016 年 9 月 3 日
This is exactly what I needed, some way to monitor database changes to see what is happening under the hood … this plugin did exactly that, and provided an easy way to keep my database safe, and still have a full diff view of database changes!
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Database Debugging Tools for Developers〉的開發相關工作。

參與者

變更記錄

2.2.0.1

  • fix a small bug with SELECT with multiple primary keys

2.2

  • fix broken RegEx’s which failed to match some SQL operations as it should
  • support logging SQL SELECT operations
  • support recovery from backup/restore timeout failure

2.1.1

  • fix diff tool so that it correctly handles tables with multiple primary keys

2.1.0.2

  • bug fix

2.1.0.1

  • bug fix

2.1

  • improved user interface
  • code refactored to improve software quality

2.0.1.1

  • Fix HTML entities bug

2.0.1

  • Remember the table size, cell size and sort order for each table for the next session
  • Highlight the changed fields in serialized values

2.0.0.1

  • Fix readme tags

2.0

  • Added the diff tool

1.0

  • Initial release.