Class MySQLDatabase<T extends org.bukkit.plugin.java.JavaPlugin>

java.lang.Object
at.hugob.plugin.library.database.AbstractDatabase<T>
at.hugob.plugin.library.database.MySQLDatabase<T>

public abstract class MySQLDatabase<T extends org.bukkit.plugin.java.JavaPlugin> extends AbstractDatabase<T>
An implementation of the AbstractDatabase to handle MySQL Databases
  • Constructor Details

    • MySQLDatabase

      public MySQLDatabase(@NotNull T plugin, @NotNull @NotNull String user, @NotNull @NotNull String password, @NotNull @NotNull String database, @NotNull @NotNull String ip, int port, @NotNull @NotNull String tablePrefix)
      Instantiates a new MySQL Database connection
      Parameters:
      plugin - the plugin that instantiates this database connection
      user - the username from the database login
      password - the password from the database login
      database - the database name
      ip - the ip that points to the database
      port - the port that points to the database
      tablePrefix - the prefix for tables that are created in the database