- Step one: Create a new Java Projekt.
- Tested Minecraft Versions:
- 1.8
- 1.9
- 1.10
- 1.11
- 1.12
- 1.13
- 1.14
- 1.15
- 1.16
- 1.17
- Contributors:
- CrAfTs_ArMy
- Languages Supported:
- This Plugin / Library dosen't need any language Supports.
- Step two: Right click your project
![]()
- Step four: Select "Build Path"
![]()
- Step five: Now click on "Configure Build Path..." and then select "Java Build Path" on the left.
![]()
- Step six: Now open the "Libraries" tab
![]()
- Step seven: Press the "Add External JARs" button
![]()
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
![]()
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
![]()
- Step eight: Now navigate to the file "MySQLAPI {VERSION}.jar". Select it and press "Open".
- Step nine: Now click on "Apply And Close
![]()
- Step ten: Now right click "src" and create a new class
- Step eleven: Create a database connection.
Without LoginListener:
With LoginListener:Code (Java):// Replace username, password, databasename, host, port
// with your MySQL Login Data!
MySQLObjectBuilder builder = new MySQLObjectBuilder();
builder.setUsername("username");
builder.setPassword("password");
builder.setDatabasename("databasename");
builder.setHost("host");
builder.setPort("port");
MySQLObject object = builder.build();
- Step twelve: Start the queries. You can use the following methods to create queries or perform updatesCode (Java):// Replace username, password, databasename, host, port
// with your MySQL Login Data!
MySQLObjectBuilder builder = new MySQLObjectBuilder();
builder.setUsername("username");
builder.setPassword("password");
builder.setDatabasename("databasename");
builder.setHost("host");
builder.setPort("port");
MySQLObject object = builder.build(new LoginListener() {
public void loginFailed() {
// TODO Auto-generated method stub
}
public void loggedInSuccessfully(Connection arg0) {
// TODO Auto-generated method stub
}
});
If you have any questions please contact CrAfTs_ArMyCode (Java):object.createTable(updateListener, tableName, dataTypes, ifNotExists);
object.dropTable(updateListener, tableName, ifExists);
object.getResult(resultListener, tableName, resultValue, resultConditions);
object.insertInto(updateListener, tableName, toInsert);
object.update(updateListener, tableName, updateValues, updateConditions);
object.deleteFrom(updateListener, tableName, deleteConditions);

[MySQL API/LIBRARY] MySQL in a Simple way | 100% FREE 1.0.1
Using MySQL in an simple Method