Linux 软件免费装
Banner图

Database Manager - WP Adminer

开发者 pexlechris
更新时间 2025年6月26日 15:54
PHP版本: 7.0 及以上
WordPress版本: 6.8.1
版权: GPLv2
版权网址: 版权信息

标签

sql mysql Database mariadb Adminer

下载

1.1.0 2.2.1 1.1.1 1.1.7 1.1.2 1.1.8 1.1.4 1.1.5 2.1.1 1.1.6 1.0.1 2.1.0 1.0.0 2.0.0 2.0.1 2.2.2 3.0.0 2.2.0 3.0.1 3.0.2 3.0.3 3.0.3.1 3.1.0 3.1.1 3.1.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.2

详情介绍:

The best database management tool for the best CMS. This plugin uses the tool Adminer, in order to give database access to administrators directly from the Dashboard. As simple as the previous sentence! I am not the author of Adminer. I am only the author who does the WordPress integration with Adminer. Author of Adminer is Jakub Vrana and you can donate him from there. Compatible also with WordPress Multisite installations

安装:

  1. Download the plugin from Official WP Plugin Repository
  2. Upload Plugin from your WP Dashboard ( Plugins > Add New > Upload Plugin ) the pexlechris-adminer.zip file.
  3. Activate the plugin through the 'Plugins' menu in WordPress Dashboard

屏幕截图:

  • The new dropdown admin_bar items

常见问题:

Is it safe?

Yes, because only administrators have access to WP Adminer. If a guest tries to access the WP Adminer URL, a 404 page will be shown up.

Who has access to WP Adminer?

 

  • In the case of single site WordPress installations, only Administrators have access in WP Adminer, because by default only administrator have the manage_options capability.
  • In the case of WordPress Multisite installations, only Super Admins have access in WP Adminer, because by default only Super Admins have the manage_network_options capability.

How to allow other capabilities or roles to have access to WP Adminer?

Just use the filter pexlechris_adminer_access_capabilities and return the array of desired capabilities that you want to have access to WP Adminer. For roles, just use the corresponding capabilities, while checking against particular roles in place of a capability is supported in part, this practice is discouraged as it may produce unreliable results.

WP Adminer is stuck in an endless loop, constantly refreshing the page without stopping. What is the issue?

This issue maybe is due to the caching engine that your browser OR server uses!

  • You can try to whitelist the WP Adminer URL, OR
  • You can change the WP Adminer URL to a URL that is already whitelisted. For example: define( 'PEXLECHRIS_ADMINER_SLUG', 'wp-admin/adminer');

How to add my own JS and/or CSS in adminer head?

You need to use action pexlechris_adminer_head as follows: add_action('pexlechris_adminer_head', function(){ // Use the appropriate get_nonce() function based on your WP Adminer version $nonce = function_exists('Adminer\get_nonce') ? Adminer\get_nonce() // For WP Adminer v4.0.0 and newer : get_nonce(); // For WP Adminer versions below 4.0.0 ?> <script nonce="<?php echo esc_attr( $nonce )?>"> // get_nonce is an adminer function // Place your JS code here </script> <style> /* Place your CSS code here */ </style> <?php });

How can I change the WP Adminer children items at the admin bar?

You can do this using WP filter: pexlechris_adminer_adminbar_dropdown_items. Filter's PHPDoc: ` /**

  • The dropdown items.
  • @param array $dropdown_items{
  • @type string $name. The table name.
  • @type string $label. The label of the dropdown item.
  • @type array $args. The array of extra url parameters. Parameters will not be encoded.
  • Developers could avoid defining args in the array
  • } */ $dropdown_items = apply_filters('pexlechris_adminer_adminbar_dropdown_items', $dropdown_items); `

How can I add other Adminer plugins or Adminer extensions?

In Adminer's website there is documentation about Adminer plugins and Adminer extensions. In order to define function adminer_object() before this plugin define it, you need to define it inside the hook pexlechris_adminer_before_adminer_loads. More in the phpDoc below: ` /**

  • adminer_object can be overridden, in WP action pexlechris_adminer_before_adminer_loads.
  • If a developer want to make his/her own changes (adding plugins, extensions or customizations),
  • it is strongly recommended to include_once the class Pexlechris_Adminer and extend it and
  • make adminer_object function return his/her new class.
  • It is strongly recommended, because Pexlechris_Adminer class contains WordPress/Adminer integration (auto login with WordPress credentials)
  • If a developer want to add just JS and/or CSS in head, he/she can just use the action pexlechris_adminer_head.
  • See plugin's FAQs, for more.
  • @since 2.1.0
  • @link https://www.adminer.org/en/plugins/#use Documentation URL.
  • @link https://www.adminer.org/en/plugins/ Adminer' plugins Documentation URL.
  • @link https://www.adminer.org/en/extension/ Adminer' extensions Documentation URL. */ `

Can I limit access to some table/DB ?

The answer in this question is complicated. The best solution is to create a Database User with the appropriate privileges. Maybe you can do it also with WordPress actions. Read more in this support ticket.

How can I access other databases in the same server and same database user?

By default, you haven't access to any database other than the site's database. In order to enable access, you need to add the following line code define('PEXLECHRIS_ADMINER_HAVE_ACCESS_ONLY_IN_WP_DB', false); in the wp-config.php file.

Why is Adminer better than phpMyAdmin?

Replace phpMyAdmin with Adminer and you will get a tidier user interface, better support for MySQL features, higher performance and more security. See detailed comparison. Adminer development priorities are: 1. Security, 2. User experience, 3. Performance, 4. Feature set, 5. Size.

更新日志:

4.1.2 4.1.1 4.1.0 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.1.2 3.1.1 3.1.0 3.0.3.1 3.0.3 3.0.2 3.0.1 3.0.0 2.2.2 2.2.1 2.2.0 2.1.1 2.1.0 2.0.1 2.0.0 1.0.0