Adminer - a fast MySQL administration tool


Posted in: mysql, tools | Save to del.icio.us | Twit This! 18 Aug 2009

adminer1Before you go ahead and think that you don’t need yet another MySQL management tool, I think you should at least take a quick look at this one. Adminer is a single file (yes! everything in a single php file) tool to manage all your MySQL related tasks. All you have to do is upload the adminer.php file to your server and voila! you are ready to go. No messing around with huge software’s to manage your database. Weighing only 170KB, its easy to upload to any server. A demo of the same is included on the Adminer site.

Of course other tools such as phpMyadmin, MySQL Workbench, SQLyog MySQL GUI have their advantages with the various advanced features they provide, but if you need a quick way to manage your database with all of the standard tasks, then Adminer will surely suit your purpose.

Let us take a quick look at some features Adminer provides:

# Connect to a database server with username and password
# Select an existing database or create a new one
# List fields, indexes, foreign keys and triggers of table
# Change name, engine, collation, auto_increment and comment of table
# Alter name, type, collation, comment and default values of columns
# Add and drop tables and columns
# Create, alter, drop and search by indexes including fulltext
# Create, alter, drop and link lists by foreign keys
# Create, alter, drop and select from views
# Create, alter, drop and call stored procedures and functions
# Create, alter and drop triggers
# List data in tables with search, aggregate, sort and limit results
# Insert new records, update and delete the existing ones
# Supports all data types, blobs through file transfer
# Execute any SQL command from a text field or a file
# Export table structure, data, views, routines, databases to SQL or CSV
# Print database schema connected by foreign keys
# Show processes and kill them
# Display users and rights and change them
# Display variables with links to documentation
# Manage events and table partitions (MySQL 5.1)

I don’t know about you but all this features will get me through the day.

Compiled files

But the most interesting idea I liked about Adminer is that if you download the source zip you will see that the software is actually composed of different files (which also are executable). The root folder contains a compile.php script that when executed combines all the required files in a single adminer.php file. During compilation all the php files are compressed (by removing the spaces), the images are base64 encoded and the javascript minified. In the true sense of the word the files are really not compiled but rather compressed and squeezed together in a single file.

Skining

You can also add your own skins to the application by creating a adminer.css file and putting it in the directory where adminer.php is located.

Extensions

Adminer also allows to to override some default functionality by writing your own custom code. Although I’ve not played much with this feature yet.

In conclusion

A fine product, which I find immensely helpful when I need to quickly perform some database task on a clients server.




Share this post

Share on Facebook
Share on Twitter
Share on StumbleUpon
Share on Delicious
Share on Digg
Share on Technorati
Share on Reddit
Feeds RSS Subscribe to site Feed

Other related posts



Comment Form

Use the html <code> tag to insert small source code snippets

For longer code examples use http://pastie.org/.

Get latest updates by E-mail

About this blog

This site is a digital habitat of Sameer, a freelance web developer working from Pune.More

Recent Comments

  • sameer: My apologies! I'm not conversant with SharePoint. [...]
  • avanthi: Is it possible to automate share point people picker control through selenium. When i record throug [...]
  • sameer: Check to see if the 'IDE > options > format' is set to HTML. [...]
  • sameer: Google strips any newline characters form the text. Although it does accept it with the online trans [...]
  • Arjan: Fiddler is a debugging tool for IE (not Microsoft's Fiddler) [...]
  • Susan Martin: while creating a test for site, command icons on IDE greyed out and do not respond when selected. I [...]
  • Saar: Thanks for this example. helped me a lot. I have 1 problem, I am translating chunks of code, but I [...]
  • sameer: You can add extra GET variables in the options array as below: $pager_options = array( 'mode [...]

  • Users Online

    • 9 Users Online
    • 8 Guests, 1 Bot