类 MiniAdmin


  • public class MiniAdmin
    extends Object
    Utility functions for admin functionality from Java.
    • 构造器详细资料

      • MiniAdmin

        public MiniAdmin​(Connection conn)
                  throws SQLException
        Create a new MiniAdmin using the given connection
        参数:
        conn - the existing connection to use.
        抛出:
        SQLException - if an error occurs
      • MiniAdmin

        public MiniAdmin​(String jdbcUrl)
                  throws SQLException
        Create a new MiniAdmin, connecting using the given JDBC URL.
        参数:
        jdbcUrl - the JDBC URL to use
        抛出:
        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
        参数:
        jdbcUrl - the JDBC URL to use
        props - the properties to use when connecting
        抛出:
        SQLException - if an error occurs
    • 方法详细资料

      • 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.
        抛出:
        SQLException - if an error occurs