Title: [Plugin: Adminer] Database Name
Last modified: August 20, 2016

---

# [Plugin: Adminer] Database Name

 *  Resolved [Dinesh Kesharwani](https://wordpress.org/support/users/cyberwani/)
 * (@cyberwani)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-adminer-database-name/)
 * Currently the adminer is not showing current working database name when opening
   in tools menu. It is displaying only host, user and password.
 * And, after clicking the “Start Adminer inside” or “Start Adminer in a new tab”,
   it is showing the all database on current instead of displaying the current database.
   Here are the changes:
 * To display database name add these lines:
 *     ```
       <tr valign="top">
       	<th scope="row"><?php _e('Database', FB_ADM_TEXTDOMAIN); ?></th>
       	<td><?php echo DB_NAME; ?></td>
       </tr>
       ```
   
 * after:
 *     ```
       <tr valign="top">
       	<th scope="row"><?php _e('Server', FB_ADM_TEXTDOMAIN); ?></th>
       	<td><?php echo DB_HOST; ?></td>
       </tr>
       ```
   
 * And to display the current database after clicking the buttons. Find and replace
   the following codes:
 * Search this :
    `document.write('<a onclick="return false;" href="<?php echo WP_PLUGIN_URL.'/'.
   FB_ADM_BASEDIR; ?>/inc/adminer/loader.php?username=<?php echo DB_USER; ?>&?KeepThis
   =true&TB_iframe=true&height='+viewportheight+'&width='+viewportwidth+'" class
   ="thickbox button"><?php _e( 'Start Adminer inside', FB_ADM_TEXTDOMAIN ); ?></
   a>' );`
 * Replace with :
    `document.write('<a onclick="return false;" href="<?php echo 
   WP_PLUGIN_URL . '/' . FB_ADM_BASEDIR; ?>/inc/adminer/loader.php?username=<?php
   echo DB_USER; ?>&db=<?php echo DB_NAME; ?>&?KeepThis=true&TB_iframe=true&height
   ='+viewportheight+'&width='+viewportwidth+'" class="thickbox button"><?php _e('
   Start Adminer inside', FB_ADM_TEXTDOMAIN ); ?></a>' );`
 * And, Search this :
    `<a target="_blank" href="<?php echo WP_PLUGIN_URL . '/' .
   FB_ADM_BASEDIR; ?>/inc/adminer/loader.php?username=<?php echo DB_USER; ?>" class
   ="button"><?php _e( 'Start Adminer in a new tab', FB_ADM_TEXTDOMAIN ); ?></a>`
 * Replace with :
    `<a target="_blank" href="<?php echo WP_PLUGIN_URL . '/' . FB_ADM_BASEDIR;?
   >/inc/adminer/loader.php?username=<?php echo DB_USER; ?>&db=<?php echo DB_NAME;?
   >" class="button"><?php _e( 'Start Adminer in a new tab', FB_ADM_TEXTDOMAIN );?
   ></a>`
 * [http://wordpress.org/extend/plugins/adminer/](http://wordpress.org/extend/plugins/adminer/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * (@bueltge)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-adminer-database-name/#post-2306625)
 * Thanks for the hints; 1.1.1 have include this idea.
 *  Thread Starter [Dinesh Kesharwani](https://wordpress.org/support/users/cyberwani/)
 * (@cyberwani)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-adminer-database-name/#post-2306631)
 * Thanks buddy…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Adminer] Database Name’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/adminer_efefef.svg)
 * [Adminer](https://wordpress.org/plugins/adminer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adminer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adminer/)
 * [Active Topics](https://wordpress.org/support/plugin/adminer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adminer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adminer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dinesh Kesharwani](https://wordpress.org/support/users/cyberwani/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-adminer-database-name/#post-2306631)
 * Status: resolved