Martin Sarsini

Bookmarklet for phpmyadmin

Although I don’t make a big use of bookmarklets, I must confess that I find them to be very powerful and useful for either personal and work navigation on the web.

Working as a web developer I have to access several times a back-end areas of web sites. Typing in the web address in the browser’s URL bar can be very time consuming, especially if the URLs conform to a pattern. And this is why I started to think at bookmarklets as a little help for this problem.

In my case I have to access MySql dtabases via phpMyAdmin and most of the websites I work on are hosted on servers using cPanel. This means that the URL to access the hosted databases are almost the same. Only the domain name in the URL changes (eg. www.domain.com:2082/3rdparty/phpMyAdmin/index.php).

The following code is the bookmarklet I have created.

javascript:window.location=%22http://%22+document.domain+%22:2082/3rdparty/phpMyAdmin/index.php%22;

The code can be copied and pasted in the browser bookmarks. To access phpMyAdmin you will just need to be on any page in the domain of the website you wish access the database… and launch the bookmark.

I have added the code in my my delicious account, and I must say that bookmarklets work very well using the delicious bookmarks browser add-on.

Leave a Reply