Sueta
SI

Simple&Easy MySQL API

1.0.0

It has never been so easy to create a MySQL connection!!

·Plugin

Header.png
Description.png

This API will help you to create a MySQL connection. You should have the opportunity to store data very easily. In the most cases, MySQL is the best way. Creating a working MySQL connection can be quite difficult and annoying. With this API, you can create a connection to your database just by using one method.

Instructions.png

Spoiler

Create a MySQL-Connection:

MySQL mysql = new MySQL("HOST", "DATABASE", "USER", "PASSWORD");

Open connection:

mysql.Connect();

Close connection:

mysql.Disconnect();

Check if connected:

if(isConnected() == true) {
System.out.println("Is connected");
}

Get an Result:

String strResult= "Text";
ResultSet rs = MainClass.main.mysql.GetResult("YOUR QUERY");
if (rs.next()) {
strResult = rs.getString("Table ColumnName");
}

Execute a normal command:

ExecuteCommand("Command");

Similar projects

Plugin →