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

SQL Executioner

外掛說明

Instead of needing a tool like phpMyAdmin
or the mysql command line client to view and modify your WordPress database,
the SQL Executioner allows you to run arbitrary SQL queries against your
WordPress database from within the Admin. In many cases this allows you to bypass
the inherent limitations of the WordPress Admin interface, and use the full expressive
power of SQL to analyze and update your blog’s database.

To use simply install and visit the Tools > SQL Executioner page.

If you’re interested in contributing to the code behind this plugin, it’s also hosted on GitHub:
https://github.com/justincwatt/wp-sql-executioner

螢幕擷圖

  • This is what you get after describing the posts table.

安裝方式

Extract the zip file, drop the sql-executioner folder in your wp-content/plugins/
directory, and then activate from the Plugins page.

常見問題集

Does this plugin have any undo?

No. It executes SQL queries directly against your database. If in doubt, run a SELECT
query before attempting an UPDATE or DELETE query to confirm what
you are about to modify.

Can I irreparably damage my WordPress database using this plugin?

Yes.

Do I have to know SQL to use this plugin?

Yes. Other than a basic facility that will DESCRIBE each table for you, there
is no GUI (graphical user interface).

使用者評論

2019 年 7 月 31 日
I use this plugin on a daily basis to run quick queries in the database while developing. Very very helpful!!!
2016 年 9 月 3 日
This is a great general purpose plug-in. Unfortunately it is incompatible with Xenial Xerxus (or Ubuntu 16.04 LTS if you wish) – I had to remove it via command line as it was crashing my blog after OS upgrade. Will definitely reinstall once the issue is fixed.
閱讀全部 11 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈SQL Executioner〉的開發相關工作。

參與者

將〈SQL Executioner〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.4

  • Added CSV export format (hat tip: olarmarius)

1.3

  • Updated to work with PHP 7

1.2

  • Cleaned code up to submit to WP Plugin Repo
  • Wrapped functions in class

1.1

  • Add wp_nonce_field check, minor code cleanup

1.0

  • Initial version