类 MiniAdmin
- java.lang.Object
-
- com.mysql.cj.jdbc.admin.MiniAdmin
-
public class MiniAdmin extends Object
Utility functions for admin functionality from Java.
-
-
构造器概要
构造器 构造器 说明 MiniAdmin(String jdbcUrl)Create a new MiniAdmin, connecting using the given JDBC URL.MiniAdmin(String jdbcUrl, Properties props)Create a new MiniAdmin, connecting using the given JDBC URL and propertiesMiniAdmin(Connection conn)Create a new MiniAdmin using the given connection
-
-
-
构造器详细资料
-
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 useprops- the properties to use when connecting- 抛出:
SQLException- if an error occurs
-
-
方法详细资料
-
shutdown
public void shutdown() throws SQLExceptionShuts down the MySQL server at the other end of the connection that this MiniAdmin was created from/for.- 抛出:
SQLException- if an error occurs
-
-