Beginner: Database connection. Persistence (or another library)?

Discussion in 'Plugin Development' started by Remi1115, Aug 8, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Remi1115

    Hello.

    This is (probably) a newby question, that's why I put 'Beginner' in the title. I wanted to ask this question for a few days now, but wasn't sure if it was too newby to ask. Also I wasn't sure if I should have put this in the 'Bukkit help' or 'Plugin Development' forums, but since I saw that most posts in 'Bukkit help' don't have much to do with the programming, I've put it here ('Plugin Development').

    Around a week ago I started to experiment with making Bukkit plugins, just for fun. I'm not very experienced with Java, but I have experience with another language (most people think it's easier than Java, but I can't judge about that because I'm not an expert in either of the languages) and also (My-) SQL.

    I want to connect the simple plugins to a MySQL database, so I can store some user (probably only me lol) data in there. As I said I already have some experience with (My-) SQL, so that's not really a problem (although I still use a webapplication to administrate the databases). I also have seen some tutorials on YouTube how to connect to a SQL database with Java in general (this one for example) with JDBC. But on the Bukkit side I see that people use something called 'persistence' (I coudn't find a tutorial that is more aimed for beginners) or another library (like this one).

    What would you advice me to use?
    If it's a different library than I linked (this), could you link me a tutorial for it please? Or where I can find one?

    Sorry for my bad English.

    Remi1115
     
  2. Offline

    agd555

    PatPeter's library will be good choice, it is easy to use, maybe it don't have some methods, but for beginner it'll be good.
     
  3. Offline

    Remi1115

    Thank you. I'll try it out (you mean this one, am I right?) when I got the time (will probably be in a few hours, or tomorrow), and let you know if I can get it to work lol.
     
  4. Offline

    agd555

    Yes, I mean that one, I like it, it's very easy to use.
     
  5. Offline

    Royal_Soda

    Ohai.
     
  6. Offline

    Remi1115

    I got it to work! And it was easier than I thought.
    Thanks for your help.
    I will now (try to) close this topic because my question has been answered.
    Edit: I can't seem to find a way to close this topic.

    Hey Royal.
     
Thread Status:
Not open for further replies.

Share This Page