MySQL-API for Devs 1.0.0

A simple MySQL-API for devs.

  1. sp33dy4ever
    Attention: This is no prepared statement example, you have to prevent against mysql injection by yourself :)

    Some developers have asked me if I could help them with MySQL.
    Here is my MySQL API for developers. You can find an example below.

    Simply copy the .jar in your server folder and all your plugins are ready for the MySQL API.

    Code-Example
    Code (Text):
    import de.renickbuettner.forDevs.api.mysql.MySQL;

    public class Example1 {

        public void useMySQLAPI(){
         
            MySQL con = new MySQL();
         
            con.host = "localhost";
            con.user = "root";
            con.passwort = "root";
            con.database = "minecraft-server";
         
            con.connect();
         
            if(con.countToBoolean("SELECT COUNT(player) FROM Players WHERE playername='sp33dy4ever'"))
                System.out.println("Oh!!! You´ve a sp33dy :o");
         
            con.disconnect();
        }
     
    }
     
    DSGDSR and dom133 like this.

Recent Reviews

  1. funmc
    funmc
    1/5,
    Version: 1.0.0
    download link not working... !!!!
    Please update this link for download ??????????
  2. EduardoKanp
    EduardoKanp
    1/5,
    Version: 1.0.0
    Sadly the download link dont work :(
    I need to put 100 characters... but i need your resource if you fix the download link i will change this rate
  3. DeudlyYT
    DeudlyYT
    1/5,
    Version: 1.0.0
    Download dont work :( If I could put 0 start and not 1 but I cannot XD.
    Please repair the download because I think this API is very useful
  4. Bananna
    Bananna
    5/5,
    Version: 1.0.0
    This is a great resource, don't hesitate to download! I can't wait to try it out :)
  5. Long
    Long
    5/5,
    Version: 1.0.0
    I really Don't Know How To Use This But If Can Automatic gather All My Plugin Into My SQL This Will Be Great, Please Update This !!! Thank You ^^
  6. dom133
    dom133
    5/5,
    Version: 1.0.0
    this plugin work fine, please add function autoreconnect
  7. Fr3akOrd3r
    Fr3akOrd3r
    5/5,
    Version: 1.0.0
    I think it is good because for me for example i don´t know how to use Database in general :)
    It would be nice if you could a wiki for it
    But good resource :D!