Your Moodle version

General plugins (Local): Moodle Adminer

local_adminer
Maintained by Picture of Andreas Grabs Andreas Grabs
This plugin is based on the great tool adminer. The main advantage of this plugin is, it can handle different types of database. So it works with MySQL, PostgreSQL, Oracle and MSSQL.
5k
5
This plugin is based on the great tool adminer. The main advantage of this plugin is, it can handle different types of database. So it works with MySQL, PostgreSQL, Oracle and MSSQL. Here are some of the key-features: 1) you can define trigger 2) you can change the order of fields 3) you can easy create or alter views 4) you can create stored procedures 5) if you rename a database so the database is altered and not copied like phpMyAdmin it does 6) you can define foreign key with referential integrity To install it you only have to copy it into the "local" folder in your moodle-installation and running the notification-page. After the installation you will find a new link "Moodle Adminer" below "Site administration -> Server".

Screenshots

Screenshot
Screenshot
Screenshot
Screenshot
Screenshot
Screenshot
Screenshot
Screenshot

Contributors

Picture of Andreas Grabs
Andreas Grabs (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Andreas Grabs
    Sat, Mar 9, 2013, 11:18 PM
    Hi Doug, I think so. I did some simple test and all looked fine.
  • David
    Sun, Mar 17, 2013, 6:57 AM
    The potential security hole in this is huge, which is why I am very hesitant to use this. If any role elevation or exploit is found in this, everything is accessible. PHPMyAdmin has much more possibilities to secure it, including special logins, specific apache config files and multifactor authentication methods. This plugin doesnt even require full admin role, it only requires the modify site permission, which means that role assignment can potentially expose your entire database.

    I think this plugin would need quite a bit more security measures (like additionally/separate login with db credentials) and what I am definitely not confident of, is that this is XSS safe. (what happens if I create a URL that will invoke the command to drop the database????)
  • Picture of Andreas Grabs
    Sun, Mar 17, 2013, 7:28 AM
    Hi David, I can not follow your minds. Adminer does not give you more access rights than phpmyadmin. Adminer has just like phpmyadmin the same right as the user account what is defined for. You are right that this plug-in needs the capability "moodle/site:config" for the system context. But I see no problem with this. I never said you should use this plug-in in all cases. If you are admin of the webspace and admin of the moodle installation so this should be ok. If you have multiple admins and a shared database account you should think about this.
    Can you tell me where you get the information that the currently used Adminer is not xss save?.
    Best regards
    Andreas
  • Picture of mark robinson
    Mon, Apr 22, 2013, 8:18 PM

    I use a free tool Valentina Studio http://www.valentina-db.com/en/valentina-studio-overview at the moment. Does everything you need, and does it very well.
  • Picture of MIke Buchanon
    Wed, Jun 5, 2013, 1:15 AM
    For some reason, we get 'Session expired, please login again.' no matter if we're using the database or files for sessions. Everything else works in our instances and sessions are getting created appropriately by Apache, so, I'm at a loss for why this wouldn't work. Any thoughts? I'd really like to use this Plugin if possible. Thanks!
    /mtb
  • Randy Thornton
    Thu, Jun 13, 2013, 5:57 AM
    Andreas,

    This is working great on my 2.4+ site. When do you expect a version out for 2.5?
  • Picture of Andreas Grabs
    Thu, Jun 13, 2013, 7:51 PM
    done smile
    Best regards
    Andreas
  • Picture of merrin bennett
    Tue, Sep 24, 2013, 2:01 PM
    Under SQL Command, might it be possible to have the data saved as xml?
  • Picture of Boaz Neeman_Golan
    Thu, Jan 16, 2014, 9:00 PM
    I tested it with version 2.6.0, it works okay
  • Picture of Matthew Koelling
    Tue, Jul 1, 2014, 7:29 AM
    Any plans to release this for 2.7
  • Picture of Rusty Hatchett
    Thu, Jul 24, 2014, 9:40 PM
    We have been using it with 2.7 since upgrade from 2.6
  • moi!!! it is what is is...
    Mon, Sep 15, 2014, 8:48 PM
    Andreas, what an excellent tool and can be installed easily. I like that it can only see the database of the Moodle that it is installed in, I don't want people accessing the other Moodles I have on the server, nor the wikimedia, or wordpress and so on...
    I must admit a security issue did come up, but I am hoping it can be fixed so that only the Admin User has rights to access it, if it can be done that way. If it can then I am going to have a discussion with a number of people about how useful it can be. I am thinking here of just how much easier it will be to restore deleted users. Thank you.
  • Picture of Andreas Grabs
    Wed, Nov 19, 2014, 7:01 AM
    Andreas Grabs
    Mi, 19. Nov 2014, 00:01
    Sorry for the long waiting. Now I updated the adminer plugin. The moodle part has no big changes. The adminer now is based on 4.1.0
  • Picture of Orestes Mas
    Mon, Dec 29, 2014, 6:32 AM
    Using this plugin directly from GitHub is awkward, because at present the 'master' branch is empty, and the other branches are such that the code is in local/adminer/xxxxxx. So, if you clone this repo into /local, the adminer is wrongly installed at /local/local/adminer.

    Please check and fix it if appropiate.

    Thanks.
  • Picture of Andreas Grabs
    Mon, Dec 29, 2014, 8:33 AM
    Hi Orestes, I am sorry but submodules are not suitable in the way we work.
    Yet you can simple integrate it in your repository by merging it. Use the steps below:
    1. Go into your moodle repository
    2. # git remote add adminer git://github.com/grabs/moodle-local_adminer.git
    3. # git fetch adminer
    4. # git merge adminer/v_27
    That's it.
    Best regards
    Andreas
1 2
Please login to post comments