Class MiniAdmin

java.lang.Object
com.mysql.jdbc.MiniAdmin

public class MiniAdmin extends Object
Utility functions for admin functionality from Java.
  • Constructor Details

    • MiniAdmin

      public MiniAdmin(Connection conn) throws SQLException
      Create a new MiniAdmin using the given connection
      Parameters:
      conn - the existing connection to use.
      Throws:
      SQLException - if an error occurs
    • MiniAdmin

      public MiniAdmin(String jdbcUrl) throws SQLException
      Create a new MiniAdmin, connecting using the given JDBC URL.
      Parameters:
      jdbcUrl - the JDBC URL to use
      Throws:
      SQLException - if an error occurs
    • MiniAdmin

      public MiniAdmin(String jdbcUrl, Properties props) throws SQLException
      Create a new MiniAdmin, connecting using the given JDBC URL and properties
      Parameters:
      jdbcUrl - the JDBC URL to use
      props - the properties to use when connecting
      Throws:
      SQLException - if an error occurs
  • Method Details

    • shutdown

      public void shutdown() throws SQLException
      Shuts down the MySQL server at the other end of the connection that this MiniAdmin was created from/for.
      Throws:
      SQLException - if an error occurs